Practice free →
HomeGATE CSEcomputerscienceAlgorithms › Why does every recursive divide-and-conquer algo…

Why does every recursive divide-and-conquer algorithm need an explicit base case?

Ato satisfy the SQL standard
Bto make the algorithm stable
Cwithout a base case the recursion never terminates
Dthe master theorem requires a finite a
Answer & Solution
Correct answer: C. without a base case the recursion never terminates
Recursion stops only when a base case is reached (typically size 1 or 0). Without it, the recursive call keeps subdividing forever, crashing on stack overflow. SQL standards have nothing to do with algorithms; stability is a sorting property; master-theorem's `a` is unrelated to base cases.
Solve this in the app — GATE CSE practice & 24k+ MCQs →
Related questions