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
ریم سے کیا مراد ہے؟
- Random Access Memory
- Random Access Money
- Random Accurate Memory
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
لیزر پرنٹر پرنٹنگ کے لئے ______ استعمال کرتا ہے۔
- Liquid ink
- Laser
- Ink ribbon
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
- Hard drive disk
- High destination driver
- High destination disk
- None
اس سوال کو وضاحت کے ساتھ پڑھیں
الگ الگ نیٹ ورکس کے دو مختلف کنکشن کو کیا جوڑتا ہے؟
- Router
- Switch
- Hub
- Modem
اس سوال کو وضاحت کے ساتھ پڑھیں
- Bus topology
- Star topology
- Ring topology
- Hybrid topology