Match each sorting algorithm to its characteristic The term

Match each sorting algorithm to its characteristic. The term \"consistent\" means that the average, best, and worst case big-O runtime formulas are the same.

A consistent, log-linear, divide and conquer algorithm.

A less efficient quadratic average case algorithm.

A consistently quadratic algorithm.

A highly efficient quadratic average case algorithm.

A divide and conquer with quadratic worst case algorithm.

bubble sort

selection sort

insertion sort

merge sort

quicksort

The descriptions are on the left and the answers are on the right. They\'re not matched and need to be rearranged to be matched.

A consistent, log-linear, divide and conquer algorithm.

A less efficient quadratic average case algorithm.

A consistently quadratic algorithm.

A highly efficient quadratic average case algorithm.

A divide and conquer with quadratic worst case algorithm.

1.

bubble sort

2.

selection sort

3.

insertion sort

4.

merge sort

5.

quicksort

Solution

A

A consistent, log-linear, divide and conquer algorithm

4

merge sort

B

A less efficient quadratic average case algorithm.

1

bubble sort

C

A consistently quadratic algorithm.

2

selection sort

D

A highly efficient quadratic average case algorithm.

3

insertion sort

E

A divide and conquer with quadratic worst case algorithm.

5

quicksort

Explanation:

A: Merge sort is based on divide and conquer has the running time O(nlogn) in all cases so consistent and log linear

B. bubble sort gives us O(n2) running time in average case and O(n) in best case. So it is not consistent

It is less efficient than insertion sort.

C. Selection sort has the running time O(n2) in all cases. So consistently quadratic

D. Insertion Sort has the average case running time O(n2) . But in best case it gives   O(n) runningtime

E. Quick sort is based on divide and conquer approach. In worst case It run O(n^2) times.

A

A consistent, log-linear, divide and conquer algorithm

4

merge sort

B

A less efficient quadratic average case algorithm.

1

bubble sort

C

A consistently quadratic algorithm.

2

selection sort

D

A highly efficient quadratic average case algorithm.

3

insertion sort

E

A divide and conquer with quadratic worst case algorithm.

5

quicksort

Match each sorting algorithm to its characteristic. The term \
Match each sorting algorithm to its characteristic. The term \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site