subject
Engineering, 19.10.2019 03:30 genyjoannerubiera

Card flipper: you walk into a room, and see a row of n cards. each one has a number xi written on it, where i ranges from 1 to n. however, initially all the cards are face down. your goal is to find a local minimum: that is, a card i whose number is less than or equal to those of its neighbors, xi-1 > = xi < = xi+1. the first and last cards can also be local minima, and they only have one neighbor to compare to. there can be many local minima, but you are only responsible for finding one of them. obviously you can solve this problem by turning over all n cards, and scanning through them. however, show that you can find such a minimum by turning over only o(log n) cards.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Ariver flows from north to south at 8 km/h. a boat is to cross this river from west to east at a speed of 20 km/h (speed of the boat with respect to the earth/ground). at what angle (in degrees) must the boat be pointed upstream such that it will proceed directly across the river (hint: find the speed of the boat with respect to water/river)? a 288 b. 21.8 c. 326 d. 30.2
Answers: 3
question
Engineering, 06.07.2019 03:10
List and describe in sequence the operation process steps for boxf machine?
Answers: 1
question
Engineering, 06.07.2019 03:10
How to convert a friction to decimal ?
Answers: 1
question
Engineering, 06.07.2019 03:10
Oxygen at 300 kpa and 400 k is in a closed system with an initial volume of 0.1 m3. is now compressed in a polytropic process, with exponent of n 1.2, to a temperature of 500 k. calculate: a) the boundary work done during the compression, in kj b) the heat transfer during the compression, in kj
Answers: 3
You know the right answer?
Card flipper: you walk into a room, and see a row of n cards. each one has a number xi written on i...
Questions
question
Mathematics, 19.10.2021 09:30
question
Mathematics, 19.10.2021 09:30
question
Mathematics, 19.10.2021 09:30
question
Mathematics, 19.10.2021 09:30