UGC NET CS 2023Data Structures and Algorithms › Performance Analysis of Algorithms and RecurrencesVerified
UGC NET CS 2023 PYQ: Given below are two statements: Statement I: If $f$ and $g$ are two functions and $f=O(g)$ but $g \neq…
Given below are two statements:
Statement I: If $f$ and $g$ are two functions and $f=O(g)$ but $g \neq 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 $\text{TM}$ in exponential time, that is $\mathrm{O}\left(2^{\mathrm{k}}\right)$, $\mathrm{k}$ being a constant.
In the light of the above statements, choose the most appropriate answer from the options given below.
- ABoth Statement I and Statement II are correct
- BBoth Statement I and Statement II are incorrectCorrect answer
- CStatement I is correct but Statement II is incorrect
- DStatement I is incorrect but Statement II is correct
Answer
(B) Both Statement I and Statement II are incorrect
Approach
Check each statement against the definitions of asymptotic notation and complexity classes.
Reviewed by UGC IQ Editorial Team.