Merge sort demonstrates _______ behavior, making it a suitable choice for sorting large datasets.

  • Backtracking
  • Divide-and-conquer
  • Dynamic programming
  • Greedy
Merge sort demonstrates divide-and-conquer behavior, as it recursively breaks down the sorting problem into smaller sub-problems, making it efficient for handling large datasets.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *