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

Statement I: If f and g are two functions and f = O(g) but g ≠ o(f), we say that the growth rate of g is smaller than that of f.
Statement II: The class of all decision problems decided by a TM in exponential time is O(2ᵏ), k being a constant.

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

Show answer & explanation

Correct answer: B. Both Statement I and Statement II are incorrect

Explanation

If f = O(g) and g ≠ O(f), then g grows faster than f, not slower (I false). EXPTIME is the class decided in O(2^(nᵏ)) time, and the statement as written is meaningless (II false).

More Data Structures and Algorithms questions