Which of the following algorithm design techniques is used in the quicksort…

20182018

Which of the following algorithm design techniques is used in the quicksort algorithm?

Answer: C. Divide and conquerQuicksort works by dividing the array around a pivot element into two subarrays and then recursively conquering (sorting) those subarrays. Hence, it follows…

  1. A.

    Dynamic programming

  2. B.

    Backtracking

  3. C.

    Divide and conquer

  4. D.

    Greedy method

Attempted by 1511 students.

Show answer & explanation

Correct answer: C

Quicksort works by dividing the array around a pivot element into two subarrays and then recursively conquering (sorting) those subarrays. Hence, it follows the divide and conquer strategy.

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…