Search problems
2 problems match “worst-case reasoning”. Clear
Visitors search a sample. Sign in for free to search every problem. Sign in
- Guaranteeing a red ball in draws ●○○○○ 10 ptsA bag contains 10 red balls, 8 white balls and 7 black balls. The balls are drawn one by one at random, without replacement. Find the minimum value of such that a red ball is guaranteed to have been drawn by the -th draw (on the -th draw or earlier).
- Egg drop with two eggs ●●●○○ 50 ptsA building has 100 floors, numbered 1 to 100. You have two identical eggs. You need to find the highest floor from which an egg can be dropped without breaking. Assume: - if an egg survives a drop from a floor, it survives drops from all lower floors; - if it breaks, it breaks when dropped from any higher floor; - an egg that survives can be reused; - a broken egg is discarded; - all eggs behave the same way. What is the minimum number of drops that guarantees finding this floor in the worst case?