Question 75Asked in Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)

In an AVL tree, the balance factor of a node is the difference between the heights of its:एक एवीएल पेड़ में, एक नोड का संतुलन कारक इसकी ऊंचाइयों के बीच का अंतर है:

एक एवीएल पेड़ में, एक नोड का संतुलन कारक इसकी ऊंचाइयों के बीच का अंतर है:
  1. ALeft and right subtreesबाएं और दाएं उपप्रकार
  2. BLeft subtree and parentबाएं उपप्रकार और माता -पिता
  3. CRight subtree and parentराइट सबट्री और पेरेंट
  4. DLeft and right childrenबाएं और दाएं बच्चे
Show answerHide answer

Correct answer: (A) Left and right subtreesबाएं और दाएं उपप्रकार

Explanation

Balance factor = height of left subtree - height of right subtree. In an AVL tree it must be -1, 0 or +1 for every node.Balance factor = बाएँ उप-वृक्ष की ऊँचाई - दाएँ उप-वृक्ष की ऊँचाई। AVL वृक्ष में हर नोड के लिए यह -1, 0 या +1 होना चाहिए।

From Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 2 (2:00 PM)

This is question 75 of Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 2 (2:00 PM). 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.