Live Quiz Arena
🎁 1 Free Round Daily
⚡ Enter ArenaQuestion
← Logic & PuzzlesA database search algorithm is designed to locate a specific record among 'n' entries. What happens to the worst-case execution time as 'n' doubles?
A)Remains constant: O(1)
B)Increases linearly: O(n)
C)Increases logarithmically: O(log n)✓
D)Increases quadratically: O(n^2)
💡 Explanation
If a binary search algorithm is applied to a sorted database, its complexity is O(log n); because the search space halves with each step, therefore doubling 'n' increases the execution time by a logarithmic factor, rather than linearly or quadratically.
🏆 Up to £1,000 monthly prize pool
Ready for the live challenge? Join the next global round now.
*Terms apply. Skill-based competition.
Related Questions
Browse Logic & Puzzles →- If a robotic arm uses a rotational joint to precisely align a part for assembly, which consequence follows from exceeding the joint's maximum rotation speed?
- A satellite antenna array uses beamforming to transmit signals. If one element fails, why does the system maintain partial functionality rather than complete signal loss?
- Which outcome occurs when a scheduling algorithm requires a chromatic number of four to resolve resource allocation conflicts in a factory assembly line?
- A signal interference analysis maps adjacent radio towers as a graph; which outcome occurs if the chromatic number exceeds available channels?
- Which mechanism allows a compiler to convert human-readable code into machine-executable instructions, ensuring the formal structure is preserved?
- An engineer increases the gain of a linear amplifier in a hearing aid. Which effect dominates?
