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
- Supercomputers
- Minicomputers
- Microcomputers
- Mainframe computers
اس سوال کو وضاحت کے ساتھ پڑھیں
کیا ضرورت ہے جب ایک ہی وقت میں ایک سے زیادہ شخص مرکزی کمپیوٹر استعمال کرتا ہے۔
- Terminal
- Digitizer
- Mouse
- Light pen
- None
اس سوال کو وضاحت کے ساتھ پڑھیں
ٹھ کے ڈسپلے کی معیاری پکسل ریزولوشن کتنی ہوتی ہے؟
- 1920 x 1080
- 3840 x 2160
- 7680 x 4320
- 1024 x 768
اس سوال کو وضاحت کے ساتھ پڑھیں
ڈی وی ڈی کس چیز کی مثال ہے؟
- Hard disk
- Optical Disk
- Output devices
- Solis-State Storage Devices