Question 78Asked in Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)

What is the time complexity of the Divide and Conquer algorithm for finding theआकार "एन" की एक सरणी में अधिकतम और न्यूनतम तत्वों को खोजने के लिए विभाजन और विजय

What is the time complexity of the Divide and Conquer algorithm for finding the maximum and minimum elements in an array of size "n"?
आकार "एन" की एक सरणी में अधिकतम और न्यूनतम तत्वों को खोजने के लिए विभाजन और विजय एल्गोरिथ्म की समय जटिलता क्या है?
  1. AO(n)ओ (एन)
  2. BO(log n)ओ (लॉग एन)
  3. CO(n log n)ओ (एन लॉग एन)
  4. DO(n^2)ओ (एन^2)
Show answerHide answer

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

Explanation

The divide-and-conquer max-min algorithm makes about 3n/2 - 2 comparisons (T(n) = 2T(n/2) + 2), which is O(n).Divide-and-conquer max-min एल्गोरिदम लगभग 3n/2 - 2 तुलनाएँ करता है (T(n) = 2T(n/2) + 2), जो O(n) है।

From Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 1 (9:00 AM)

This is question 78 of Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 1 (9: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.