Search problems

2 problems match “worst-case reasoning”. Clear

Visitors search a sample. Sign in for free to search every problem. Sign in

  1. 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 kk such that a red ball is guaranteed to have been drawn by the kk-th draw (on the kk-th draw or earlier).
  2. 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?