wu :: forums
« wu :: forums - Glass Balls »

Welcome, Guest. Please Login or Register.
Nov 24th, 2024, 10:06pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   medium
(Moderators: towr, SMQ, Eigenray, william wu, Grimbal, ThudnBlunder, Icarus)
   Glass Balls
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Glass Balls  (Read 4881 times)
Garzahd
Guest

Email

Glass Balls  
« on: Oct 11th, 2002, 1:02pm »
Quote Quote Modify Modify Remove Remove

The other puzzle went over well, so I'll try another one that I like. (Forgive me if I've got the wrong forum; this could also be classified in CS, since it's originally from topcoder.com's programming contest. But I think it's more a problem-solving/math problem than a programming one.)
 
 
You have B identical glass balls, and an F story building. You want to find out how resilient the balls are. You know there exists some floor N<=F, such that a ball dropped out a window of floor N will not break, but a ball dropped from floor N+1 will break. (N may be 0, in which case all dropped balls will break.)
 
You want to find N in as few drops as possible. What's the worst-case number of drops you must use to find N, given B and F?
 
Clarifications: Dropped unbroken balls may be recovered and dropped again. Once N is found, it doesn't matter how many unbroken balls you have remaining, only the number of drops it took you to get there.
 
A couple hidden sample cases (depending on how much of a challenge you want):

With 1 ball and 42 floors, 42 drops are required.
 
With 2 balls and 100 floors, 14 drops are required.
 
 
With 3 balls and 92 floors, 8 drops are required.
« Last Edit: Oct 23rd, 2003, 7:40pm by Icarus » IP Logged
James Fingas
Uberpuzzler
*****





   
Email

Gender: male
Posts: 949
Re: New Puzzle: Glass Balls  
« Reply #1 on: Oct 11th, 2002, 1:12pm »
Quote Quote Modify Modify

Are the glass balls anything like eggs?
 
http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi?board=riddles_har d;action=display;num=1027808394
IP Logged

Doc, I'm addicted to advice! What should I do?
Garzahd
Guest

Email

Re: New Puzzle: Glass Balls  
« Reply #2 on: Oct 11th, 2002, 2:47pm »
Quote Quote Modify Modify Remove Remove

Man, I suck. I would have sworn I had read all those. Sorry about that.
IP Logged
william wu
wu::riddles Administrator
*****





   
WWW

Gender: male
Posts: 1291
Re: New Puzzle: Glass Balls  
« Reply #3 on: Oct 12th, 2002, 11:17pm »
Quote Quote Modify Modify

Not a problem Garzahd -- there's a lot to read on this forum! Smiley
IP Logged


[ wu ] : http://wuriddles.com / http://forums.wuriddles.com
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board