Which of the following algorithms is an example of the divide and conquer…

2023

Which of the following algorithms is an example of the divide and conquer approach?

Answer: B. Quick sortQuick sort is a divide-and-conquer algorithm: it partitions the array and recursively sorts the subarrays.

  1. A.

    Matrix-chain multiplication

  2. B.

    Quick sort

  3. C.

    Prim's algorithm

  4. D.

    Longest common subsequence

Attempted by 967 students.

Show answer & explanation

Correct answer: B

Quick sort is a divide-and-conquer algorithm: it partitions the array and recursively sorts the subarrays.

Explore the full course: Coal India Management Trainee

Loading lesson…