Given an unlimited number of light bulbs (that break at a certain height), and a building with 100 floors, how do you determine the height that the light bulb breaks?

The solution is a binary search algorithm (where you start on floor 50th and move up or down depending if the bulb breaks or not, always picking the middle floor of your option range).

Answered by Diana G. Computing tutor

1412 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

Represent the denary number 5.625 as an unsigned binary fixed point number with three bits before and five bits after the binary point.


Describe the operations of an optical disk drive used to read data from an optical disk, such as a CD or DVD.


What is the difference between a dynamic and a static data structure?


What is the difference between simplex, half duplex and full duplex?


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences