Machine-translated by Google. Questions are authored in English.
Top

Discussion

The Merger sort algorithm employs the design technique :

  • A.Backtracking
  • B.Dynamic programming
  • C.Divide and Conquer
  • D.Brute force

Answer: C

Merge sort uses divide and conquer.

It divides the array into two halves, sorts each half recursively, and merges the two sorted halves in linear time, giving \(O(n \log n)\) time.

It does not explore and undo choices (backtracking), it has no overlapping subproblems to store (dynamic programming), and it is far more efficient than trying all orderings (brute force).

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.