हिंदी

Binary search looks for the element to search in position:

Advertisements
Advertisements

प्रश्न

Binary search looks for the element to search in position:

विकल्प

  • First

  • Middle

  • Last

  • Any random

MCQ
Advertisements

उत्तर

Middle

Explanation:

  • Binary search first checks the middle element of the sorted array.
  • Based on the comparison, it searches either the left half or the right half.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 8: Arrays - Sort & Search - Exercises [पृष्ठ १९७]

APPEARS IN

रुपा पंडित Computer Applications [English] Class 10 ICSE
अध्याय 8 Arrays - Sort & Search
Exercises | Q 1. (iv) | पृष्ठ १९७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×