1. Computer Science Engineering (CSE)
  2. Design and Analysis of Algorithms
  3. What is the time complexity of the brute...
Q.

What is the time complexity of the brute force algorithm used to solve the balanced partition problem?

A. o(1)
B. o(n)
C. o(n2)
D. o(2n)
Answer» D. o(2n)
Explanation: in the brute force implementation, all the possible subsets will be formed. this takes exponential time.

Discussion