Which of the following searching algorithms requires the data to be sorted?
مندرجہ ذیل میں سے کون سا سرچنگ الگورتھم ڈیٹا کے ترتیب شدہ ہونے کی ضرورت رکھتا ہے؟
- Depth First Search
- Linear Search
- Binary Search
- None of these
Explanation
- Binary Search requires the data to be sorted before searching.
- It repeatedly divides the data into two halves to find the target value.
- This makes it much faster than Linear Search on large datasets.
- If the data is not sorted, Binary Search cannot work correctly.
- It follows the divide-and-conquer technique.
Last verified on 10-06-2026
Related MCQs
- 2*4
- 4*4
- 4*8
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
مندرجہ ذیل میں سے کون سا سرچنگ الگورتھم ڈیٹا کے ترتیب شدہ ہونے کی ضرورت رکھتا ہے؟
- Depth First Search
- Linear Search
- Binary Search
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
مندرجہ ذیل میں سے کون سی غیر مستحکم میموری ہے؟
- RAM
- ROM
- Cache
- Both A and C
اس سوال کو وضاحت کے ساتھ پڑھیں
کون سا پروٹوکول غیر محفوظ نیٹ ورک پر محفوظ مواصلاتی چینل قائم کرنے کے لیے استعمال ہوتا ہے؟
- HTTPS (SSL/TLS)
- DHCP
- FTP
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- 11000
- 10000
- 11100
- None of these