What sorting algorithm has an average and worst-case time complexity of and is based on a divide-and-conquer paradigm?

Answer and explanation

Correct answer: D. Merge Sort

  1. Step 1: Merge Sort recursively divides an array into halves until single-element subarrays remain, then merges them in sorted order.
  2. Step 2: Because division takes levels and merging each level takes work, its time complexity is guaranteed in all cases.
Answer
Merge Sort.
Why not the others: 'Bubble Sort' has worst-case ; 'Insertion Sort' has worst-case ; 'Selection Sort' always runs in time.

Practise more Python Programming, Data Structures, Algorithms, Networks and Cybersecurity.

Free questions with an explanation for every one, and full timed Saudi Secondary School Certificate mock tests.