GATE / CS ARCHIVE

SUBJECT COLLECTION

Algorithms · Divide & Conquer

2 questions, newest first

GATE CSE has asked 2 questions on Divide & Conquer (Algorithms) from 1994 to 1995, in 2 of the 46 papers; the most recent is in GATE CSE 1995. In the last five years it carried 0 marks per 100-mark paper on average, against 0 since 2003.

Browse topics
1 mark · MCQ
Report issue

Merge-sort paradigm

Divide & Conquer

Question 1.5, GATE 1995: Does merge sort use divide and conquer, backtracking, heuristic search, or a greedy approach?
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Merge sort divides an input into smaller portions, recursively sorts each portion, then combines the sorted results using a merge. This division into subproblems and combination of their solutions is divide and conquer. It does not search and undo candidate choices as backtracking does, and it is not a sequence of locally optimal choices justified by a greedy exchange property. The merge step is linear, leading to the familiar Θ(n log n) recurrence for balanced splits.

Original paper, page 1

Report issue

Quicksort design strategy

Divide & Conquer

Question 1.19, GATE 1994: Does quicksort use dynamic programming, backtracking, divide and conquer, or greedy design?
Question 1.19, GATE 1994: Does quicksort use dynamic programming, backtracking, divide and conquer, or greedy design?
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Quicksort chooses a pivot, partitions the input into regions ordered relative to it, and recursively sorts those smaller regions. The resulting subproblem solutions combine to give the sorted whole, so the design is divide and conquer. It does not cache overlapping subproblems as dynamic programming does, and it does not search and undo candidate solutions as backtracking does. Good or bad pivot choices affect the balance and complexity, not this classification.

Original paper, page 2