All mock tests are FREE till 31 December — register to save your progress

Consider a Boolean function of ‘n’ variables. The order of an algorithm that determines whether the Boolean function produces a output 1 is :

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. Exponential

Explanation

Deciding whether a Boolean function of n variables can output 1 is SAT; known algorithms try up to 2ⁿ assignments, so it is exponential.

More Data Structures and Algorithms questions