Which of the following sorting algorithms has average-case and worst-case running time of O (n log n) ?
The sorting algorithms have average-case and worst-case running time of O (n log n): Merge sort, Heap sort, Smooth sort. In our case it is Merge sort.
Answer: (c) Merge sort.
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!