Question 17Asked in Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 1

.If an algorithm's behavior is bounded by "o(f(n)) if g(n)", what notation does it become when the condition is removed?यदि किसी एल्गोरिदम का व्यवहार "o(f(n)) if g(n)" से परिबद्ध है, तो शर्त हटा दिए जाने पर यह कौन-सा संकेतन बन जाता है?

यदि किसी एल्गोरिदम का व्यवहार "o(f(n)) if g(n)" से परिबद्ध है, तो शर्त हटा दिए जाने पर यह कौन-सा संकेतन बन जाता है?
  1. Ao(f(n))o(f(n))
  2. Bo(g(n))o(g(n))
  3. Co(f(n) + g(n))o(f(n) + g(n))
  4. Do(f(n) * g(n))o(f(n) * g(n))
Show answerHide answer

Correct answer: (A) o(f(n))o(f(n))

Explanation

Once the condition is dropped and the bound still holds generally, the conditional statement "o(f(n)) if g(n)" just becomes o(f(n)). The bound function stays f(n).जब शर्त हटा दी जाती है और सीमा फिर भी सामान्य रूप से सही रहती है, तो सशर्त कथन "o(f(n)) if g(n)" केवल o(f(n)) बन जाता है। सीमा फलन f(n) ही रहता है।

From Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 1

This is question 17 of Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 1. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.