Question 15Asked in Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)

Conditional asymptotic notation is used to analyze an algorithm's behavior under specific conditions. When removing the condition from "O(f(n)) if g(n)",…विशिष्ट परिस्थितियों में एक एल्गोरिथ्म के व्यवहार का विश्लेषण करने के लिए सशर्त स्पर्शोन्मुख संकेतन का उपयोग किया जाता है। "O (f (n)) से स्थिति को हटाते समय…

Conditional asymptotic notation is used to analyze an algorithm's behavior under specific conditions. When removing the condition from "O(f(n)) if g(n)", what notation is obtained?
विशिष्ट परिस्थितियों में एक एल्गोरिथ्म के व्यवहार का विश्लेषण करने के लिए सशर्त स्पर्शोन्मुख संकेतन का उपयोग किया जाता है। "O (f (n)) से स्थिति को हटाते समय यदि g (n)", तो क्या संकेतन प्राप्त होता है?
  1. AO(f(n))ओ (एफ (एन))
  2. BO(g(n))ओ (जी (एन))
  3. CO(f(n) + g(n))ओ (एफ (एन) + जी (एन))
  4. DO(f(n) * g(n))ओ (एफ (एन) * जी (एन))
Show answerHide answer

Correct answer: (A) O(f(n))ओ (एफ (एन))

Explanation

Removing the condition means the bound O(f(n)) holds for all n, not only when g(n) holds. The result is the plain unconditional notation O(f(n)), often obtained using smoothness of f.शर्त हटाने का अर्थ है कि सीमा O(f(n)) सभी n के लिए लागू होती है, केवल तब नहीं जब g(n) लागू हो। परिणाम सामान्य शर्तरहित notation O(f(n)) है, जो अक्सर f की smoothness का उपयोग करके मिलता है।

From Bihar STET 2024 Paper II Computer Science PYQ, 12 Jun 2024, Shift 1 (10:00 AM)

This is question 15 of Bihar STET 2024 Paper II Computer Science PYQ, 12 Jun 2024, Shift 1 (10:00 AM). 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.