Go Back   Flash Flash Revolution > General Discussion > Chit Chat
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
Old 10-13-2009, 05:41 PM   #101
Dr Tran
Banned
 
Join Date: Aug 2008
Posts: 1,134
Default Re: Solve this equation for me

ethiopia
Dr Tran is offline   Reply With Quote
Old 10-13-2009, 05:43 PM   #102
Jtehanonymous
Hunger Games Hunty
FFR Veteran
 
Jtehanonymous's Avatar
 
Join Date: Jan 2007
Location: La Florida
Age: 32
Posts: 3,769
Send a message via Skype™ to Jtehanonymous
Default Re: Solve this equation for me

For the glass ball thing I'd get a friend to help. Then I'd have them drop the ball on floor 1 as I dropped it from 10. If neither ball broke then I'd move up to floor 20, and my friend could go to 11. In the worst case scenario I'd go 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, and in these ten actions, my friend would be simultaneously at 91 with me. Then together we'd drop 92 and 93 together, 94 and 95 together, until we got to 98 and 99 together. This would take us 14 drops total working together.

Edit: And I just decided that this sucks because if my ball broke at 90 or something, then we'd only have one ball to go up from 81-89. >=/

The maximum here is still 18 though...
__________________


I buy all FFR Trading Cards I don't own:
See My FFR TCG Binder





Quote:
Originally Posted by badman7772 View Post
Jtehanonymous

You have completed the Lucky Achievement and will be awarded 25k credits.

seriously what the fuck.

Last edited by Jtehanonymous; 10-13-2009 at 05:53 PM..
Jtehanonymous is offline   Reply With Quote
Old 10-13-2009, 05:44 PM   #103
super kid
FFR Player
 
super kid's Avatar
 
Join Date: Nov 2006
Location: fortress of solitude
Age: 32
Posts: 1,359
Send a message via AIM to super kid Send a message via Yahoo to super kid
Default Re: Solve this equation for me

Hahahaha. sorry...
__________________
Quote:
Originally Posted by KgZ View Post
next time instead of trying to talk to the girl acting like a sketchball just whip your dick and stick it in her mouth; dont even say anything
super kid is offline   Reply With Quote
Old 10-13-2009, 05:57 PM   #104
stargroup
FFR Player
 
stargroup's Avatar
 
Join Date: Jun 2007
Posts: 974
Default Re: Solve this equation for me

gg_guru as if I couldn't have any less respect for you

you went and proved me wrong
__________________
(´・ω・`)
stargroup is offline   Reply With Quote
Old 10-13-2009, 05:58 PM   #105
GG_Guru
Let em' do what they want
FFR Veteran
 
GG_Guru's Avatar
 
Join Date: Mar 2006
Posts: 3,219
Default Re: Solve this equation for me

Umm thanks?

I'm honored?

???

?????
__________________
GG_Guru is offline   Reply With Quote
Old 10-13-2009, 06:03 PM   #106
leonid
I am leonid
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
leonid's Avatar
 
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 35
Posts: 8,080
Default Re: Solve this equation for me

I wasn't able to solve this problem within 15 minutes how dumb =/

Is fourteen the optimal expected number of drops? Just to check whether I'm on the right track..

edit: nvm
__________________



Proud member of Team No

Last edited by leonid; 10-13-2009 at 06:07 PM..
leonid is offline   Reply With Quote
Old 10-13-2009, 06:06 PM   #107
stargroup
FFR Player
 
stargroup's Avatar
 
Join Date: Jun 2007
Posts: 974
Default Re: Solve this equation for me

also another math problem:

Prove



using induction.
__________________
(´・ω・`)
stargroup is offline   Reply With Quote
Old 10-13-2009, 06:07 PM   #108
MrRubix
FFR Player
FFR Veteran
 
MrRubix's Avatar
 
Join Date: Dec 1969
Location: New York City, New York
Posts: 8,340
Default Re: Solve this equation for me

Quote:
Originally Posted by leonid View Post
I wasn't able to solve this problem within 15 minutes how dumb =/

Is fourteen the optimal expected number of drops? Just to check whether I'm on the right track..

edit: nvm
Yes
MrRubix is offline   Reply With Quote
Old 10-13-2009, 06:13 PM   #109
leonid
I am leonid
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
leonid's Avatar
 
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 35
Posts: 8,080
Default Re: Solve this equation for me

Does this work?

Let x be the bottom floor of current searching space.
Divide current searching space into seven and drop the ball from the top of the bottommost divided area. Call it floor y.
If it breaks, drop the second ball through floor x to floor y-1.
If it doesn't break, set the searching space from y+1 to 100 and repeat the process.

Begin by setting searching space from floor 1 to 100
__________________



Proud member of Team No

Last edited by leonid; 10-13-2009 at 06:16 PM..
leonid is offline   Reply With Quote
Old 10-13-2009, 06:19 PM   #110
MrRubix
FFR Player
FFR Veteran
 
MrRubix's Avatar
 
Join Date: Dec 1969
Location: New York City, New York
Posts: 8,340
Default Re: Solve this equation for me

Quote:
Originally Posted by leonid View Post
Does this work?

Let x be the bottom floor of current searching space.
Divide current searching space into seven and drop the ball from the first divided area. Call it floor y.
If it breaks, drop the second ball through floor x to floor y.
If it doesn't break, set the searching space from y+1 to 100 and repeat the process.
A better way to think of it: Why not shorten your search spaces with each new interval? If you drop first at 14, then you know you only need to drop 1-13 if it broke at 14. But if it doesn't break at 14, drop at 14 + (14-1) = 27, and if it breaks, then you drop from 15 to 26 for a worse case scenario, here, of 2 + 12 = also 14...

The idea is that you are locking things into a worst-case drop of 14 no matter how many intervals you go up -- for each wasted "first-sphere drop" you expend with the interval search, you compensate by simply making the search space smaller for the second sphere.

Why 14? Because the sum from 1-14 is when you first break 100.

You're starting at 14 and working your way down... by the time you reach the end of the process, you've gone through all possible floors.
MrRubix is offline   Reply With Quote
Old 10-13-2009, 06:22 PM   #111
leonid
I am leonid
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
leonid's Avatar
 
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 35
Posts: 8,080
Default Re: Solve this equation for me

Damn apparently I thought way too complicatedly on this problem
__________________



Proud member of Team No
leonid is offline   Reply With Quote
Old 10-13-2009, 06:24 PM   #112
Niala
(╯°□°)╯︵ ┻━┻
Retired StaffFFR Simfile AuthorFFR Veteran
 
Niala's Avatar
 
Join Date: Jul 2007
Location: Fredericton
Age: 33
Posts: 1,696
Send a message via AIM to Niala Send a message via Skype™ to Niala
Default Re: Solve this equation for me

Quote:
Originally Posted by MrRubix View Post
You do not prepare for the Putnam -- the Putnam prepares YOU
Only in Soviet Russia. (Had to)
Niala is offline   Reply With Quote
Old 10-13-2009, 06:27 PM   #113
leonid
I am leonid
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
leonid's Avatar
 
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 35
Posts: 8,080
Default Re: Solve this equation for me

BTW, that algorithm I stated should probably work. Except that I had to calculate the expected number of drops with computer >_> so I wouldn't be able to get it right on the interview.


I'll work on that red/black deck problem.. Looks fun and awfully difficult.

I've always wanted to be a good problem solver, but I'm still not there x(
__________________



Proud member of Team No

Last edited by leonid; 10-13-2009 at 06:29 PM..
leonid is offline   Reply With Quote
Old 10-13-2009, 06:33 PM   #114
MrRubix
FFR Player
FFR Veteran
 
MrRubix's Avatar
 
Join Date: Dec 1969
Location: New York City, New York
Posts: 8,340
Default Re: Solve this equation for me

The algorithm seems okay btw, but I'm not confident in it because I don't understand how you derived it -- I personally just go for the "compensation logic" approach and finding the first top-floor-breaking 1-through-X sum.
MrRubix is offline   Reply With Quote
Old 10-13-2009, 06:37 PM   #115
MrRubix
FFR Player
FFR Veteran
 
MrRubix's Avatar
 
Join Date: Dec 1969
Location: New York City, New York
Posts: 8,340
Default Re: Solve this equation for me

Interested to know how you came about the div-7 logic in your algorithm... that seems really interesting to me.

I mean, like, 100/7 = roughly 14, so drop at 14. Say it doesn't break. So you drop at 14+(100-14)/7 = 26 (versus my 27)?
MrRubix is offline   Reply With Quote
Old 10-13-2009, 06:41 PM   #116
leonid
I am leonid
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
leonid's Avatar
 
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 35
Posts: 8,080
Default Re: Solve this equation for me

I haven't thoroughly tested edge cases. Could be 26 (if you get floor(14+(100-14)/7)) or 27 (if you get ceiling(14+(100-14)/7)).

I just went through div-2 to div-20 or something, calculating the expected value in floating number form, and div-7 happened to have smallest such value.

So yeah it required me a computer -_-
__________________



Proud member of Team No
leonid is offline   Reply With Quote
Old 10-13-2009, 06:43 PM   #117
MrRubix
FFR Player
FFR Veteran
 
MrRubix's Avatar
 
Join Date: Dec 1969
Location: New York City, New York
Posts: 8,340
Default Re: Solve this equation for me

Quote:
Originally Posted by leonid View Post
I haven't thoroughly tested edge cases. Could be 26 (if you get floor(14+(100-14)/7)) or 27 (if you get ceiling(14+(100-14)/7)).

I just went through div-2 to div-20 or something, calculating the expected value in floating number form, and div-7 happened to have smallest such value.

So yeah it required me a computer -_-
The problem I had is that even when I applied floors/ceilings, I ended up with, for the very first case for instance: ceiling(0+(100-0)/7) = 15, when a floor here would yield 14, but a floor would yield 26 in the next case and a 27 with a ceiling.
MrRubix is offline   Reply With Quote
Old 10-13-2009, 06:47 PM   #118
MrRubix
FFR Player
FFR Veteran
 
MrRubix's Avatar
 
Join Date: Dec 1969
Location: New York City, New York
Posts: 8,340
Default Re: Solve this equation for me

Also for floor versus ceiling scenarios:

14 15
26 27
36 37
45 46
52 53
58 59
64 64
69 69
73 73
76 76
79 79
82 82
84 84
86 86
88 88
89 89
90 90
91 91
92 92
93 93
94 94
94 94
94 94
94 94
94 94
94 94
94 94
94 94

Unless I am misunderstanding your algo lol
MrRubix is offline   Reply With Quote
Old 10-13-2009, 06:51 PM   #119
leonid
I am leonid
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
leonid's Avatar
 
Join Date: Oct 2008
Location: MOUNTAIN VIEW
Age: 35
Posts: 8,080
Default Re: Solve this equation for me

Looks like treating integers as real numbers caused a disaster -_-

I'll conclude that this algorithm works only if we have infinite number of floors **** (of course the optimal solution won't be div-7 in this case)
__________________



Proud member of Team No

Last edited by leonid; 10-13-2009 at 07:01 PM..
leonid is offline   Reply With Quote
Old 10-13-2009, 06:57 PM   #120
MrRubix
FFR Player
FFR Veteran
 
MrRubix's Avatar
 
Join Date: Dec 1969
Location: New York City, New York
Posts: 8,340
Default Re: Solve this equation for me

Do you mean "continuous floors" as opposed to discrete ones? lol


Reminds me of that one movie... can't remember the name of it. The one where there's like a Floor 7.5 or something (Being John Malkovich?)
MrRubix is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 02:34 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution