سوال ۶۶ کنکور ارشد علوم کامپیوتر ۱۴۰۰
کدام گزارههای زیر درست است؟ (الف) برای هر تابع داریم . (ب) برای هر دو تابع و داریم .
پاسخ صحیح: گزینهٔ C — هر دو
Recall the definition: means there exist constants and such that for all . Because the codomain is , every value is non-negative: and . This non-negativity is what makes both statements hold.
Statement (a): . We need . Pick (or even ): which holds since . So (a) is true. (This is just the general fact that constant factors don't matter in -notation: for any constant .)
Statement (b): . We need . Pick : which holds since . So (b) is true. Intuitively, adding a non-negative term can only make the right side larger, so is an asymptotic upper bound for .
Both statements are true, so the answer is Both (option 3).
Pitfall: Statement (b) would fail if could take negative values (e.g. gives , and then unless ). The codomain guarantees , which is exactly why the bound goes through.