logo

Question detail

A recursive algorithm makes two recursive calls for every input element and continues until all elements have been processed. Which complexity is the most appropriate general classification?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Classification of algorithms

Exam-style question

Try this first

A recursive algorithm makes two recursive calls for every input element and continues until all elements have been processed. Which complexity is the most appropriate general classification?.

  1. A.O(1)
  2. B.O(log n)
  3. C.O(n)
  4. D.O(2^n)

Model answer

What a good answer should say

  • O(2^n)

Explanation

Why this works

When the number of calls branches into two calls at each level, the number of calls can grow exponentially with n. This is represented by O(2^n).

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.