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

In the Divide and Conquer algorithm for finding the maximum and minimum elements,अधिकतम और न्यूनतम तत्वों को खोजने के लिए डिवाइड और विजय एल्गोरिथ्म में, बाएं और दाएं

In the Divide and Conquer algorithm for finding the maximum and minimum elements, how are the results from the left and right subarrays combined?
अधिकतम और न्यूनतम तत्वों को खोजने के लिए डिवाइड और विजय एल्गोरिथ्म में, बाएं और दाएं सबरेज़ से परिणाम कैसे संयुक्त हैं?
  1. ABy taking the average of the maximum and minimum valuesअधिकतम और न्यूनतम मानों का औसत ले जाकर
  2. BBy comparing the maximum of the left and right subarrays and the minimum of the left and right subarraysबाएं और दाएं सबरेज़ की अधिकतम और बाएं और दाएं सबरे के न्यूनतम की तुलना करके
  3. CBy adding the maximum of the left subarray to the minimum of the right subarrayदाएं सबर्रे के न्यूनतम को कम से कम लेफ्ट सबर्रे के लिए लेफ्ट सबरे को जोड़कर
  4. DBy multiplying the maximum of the left subarray with the minimum of the right subarrayदाएं सबरे के न्यूनतम के साथ बाएं सबरे को गुणा करके।
Show answerHide answer

Correct answer: (B) By comparing the maximum of the left and right subarrays and the minimum of the left and right subarraysबाएं और दाएं सबरेज़ की अधिकतम और बाएं और दाएं सबरे के न्यूनतम की तुलना करके

Explanation

Each half returns its own max and min; the overall max is the larger of the two maxima and the overall min is the smaller of the two minima, costing 2 comparisons per combine.हर आधा हिस्सा अपना max और min लौटाता है; कुल max दोनों max में बड़ा और कुल min दोनों min में छोटा होता है, और हर मेल पर 2 तुलनाएँ लगती हैं।

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

This is question 85 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.