Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > Smart?
Pages (12): « 1 [2] 3 4 5 6 7 8 9 10 11 12 »   Last Thread   Next Thread
Share
Author
Thread    Post A Reply
drizzt81
Professional Lamer



Registered: Nov 2001
Location: GTA #1 - At work
Re: Smart?

quote:
Originally posted by Flyboy217
1) There is a 100-story building. You have two identical eggs, each of which will break if dropped from some integer story N (or greater). You are allowed to drop each egg from any height you wish, until it breaks. By the time both eggs are broken, you must determine N. What is the fewest number of drops needed in the worst case? [10 min.]

log[base 2] of 100, think that is near 7...

quote:

2) There is a balance in front of you. I will first ask you to choose a set of integer weights. You will then be given a block of unknown integer weight from 1 to 100, and asked to balance it using only weights from your set. You will be allowed to place your weights on one or both pans at your discretion, until it balances. What is the fewest number of weights you need in your set to guarantee that you can balance the given weight? [15 min.]
um log[base2] of 100 again ? i think that is about 7 weights. 1,2,4,8,16,32,64

oops.. typo it's 16 of course

time to go back to my problem at work ... nice ones though!


___________________

get font

I see your 4 Crushs and raise you 3 As The Rush Comes. - Yan from PvD's first summerstage event in '03

Last edited by drizzt81 on Oct-10-2003 at 06:02

Old Post Oct-10-2003 05:42  Germany
Click Here to See the Profile for drizzt81 Click here to Send drizzt81 a Private Message Add drizzt81 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
drizzt81
Professional Lamer



Registered: Nov 2001
Location: GTA #1 - At work

quote:
Originally posted by biznology
why are these all math questions? is math the only difficult academy?


not really, but the idea is that math is simple enough that you can 'theoretically' solve all problems by just THINKING about them. None of these involve any really complicated mathematics. They are all basic logic/ reasoning type questions.


___________________

get font

I see your 4 Crushs and raise you 3 As The Rush Comes. - Yan from PvD's first summerstage event in '03

Old Post Oct-10-2003 05:44  Germany
Click Here to See the Profile for drizzt81 Click here to Send drizzt81 a Private Message Add drizzt81 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
DJ-Fuq
gone



Registered: Apr 2002
Location: nowhere

Ok i didnt go through every single number but im sure if u pick the weights 1 2 5 10 20 50 100 u can guarentee a balance

Old Post Oct-10-2003 05:45 
Click Here to See the Profile for DJ-Fuq Click here to Send DJ-Fuq a Private Message Add DJ-Fuq to your buddy list Report this Post Reply w/Quote Edit/Delete Message
biznology
Supreme tranceaddict



Registered: Dec 2000
Location:

quote:
Originally posted by drizzt81
not really, but the idea is that math is simple enough that you can 'theoretically' solve all problems by just THINKING about them. None of these involve any really complicated mathematics. They are all basic logic/ reasoning type questions.


but thats still not it...these are 'difficult' questions but they can be answered. not by everyone, necessarily, but still answered. what about everything else without an answer? sorry, im a philosophical asshole|


___________________
'That's like telling a Kodiak bear to stop fcking older men.'

Old Post Oct-10-2003 06:28  United States
Click Here to See the Profile for biznology Click here to Send biznology a Private Message Add biznology to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Flyboy217
Senior tranceaddict



Registered: Aug 2003
Location: In DEEP SPACE... Space... space... sp...
Re: Re: Smart?

quote:
Originally posted by drizzt81
log[base 2] of 100, think that is near 7...

um log[base2] of 100 again ? i think that is about 7 weights. 1,2,4,8,16,32,64

oops.. typo it's 16 of course

time to go back to my problem at work ... nice ones though!



Wrong and wrong . Thanks to modern-day CS, many people love thinking along the lines of log2. Get off your log2 horses and start THINKING, people! That's what's nice about these problems... they make you think in a way you're most likely not used to thinking.

C'mon, someone solve at least one!

Old Post Oct-10-2003 13:16  United States
Click Here to See the Profile for Flyboy217 Click here to Send Flyboy217 a Private Message Add Flyboy217 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
DigiNut
You kids get off my lawn!



Registered: Dec 2002
Location: Toronto, Self-proclaimed Centre of the Universe
Re: Re: Re: Re: Re: Smart?

quote:
Originally posted by Flyboy217
18 is not optimal for #1.

I suppose you could get it down to 17, if you used increments of 12. Once you hit floor 84 and it doesn't break, instead of going to 96, you go to 92. That way you only have to drop the next one 6 times.

This doesn't lower the worst case to 12, though, since this is no longer the worst case. The worst case will be when it does break at 84 (after 7 drops) and you need 10 to determine what's in between.

There is no possible way it can be lower unless there's a trick in the question. Here's the proof:

Assuming you drop the first egg at a regular interval n until it breaks, and I am sure that this is required, then the total number of drops required is going to be Floor[100 / n] + (n - 2). You can't make this lower than 18 for any value of n, unless you use the modification mentioned above, which nets you 17.

Flyboy, I'm bothered how you don't respond to any of my reasoning or proofs to tell me how the answers are wrong - I'm starting to wonder if you actually thought these questions through yourself or just dug them up somewhere along with the answers?


___________________
My party schedule:
2009-02-21 - DJ Attention @ I'm So Popular
2009-06-18 - DJ Annoying @ People Need To Know Where I'll Be
2012-11-32 - DJ Insufferable ɸ Or At Least the Stalkers I Complain About
2048-06-66 - Spastic & Whocares Although I'm Actually Flattered
9999-45-81 - Tweaker Gimp I Probably Won't Even Go To This But I Have To Make Sure I Fill Up All The Available Space Here

Old Post Oct-10-2003 14:16  Canada
Click Here to See the Profile for DigiNut Click here to Send DigiNut a Private Message Add DigiNut to your buddy list Report this Post Reply w/Quote Edit/Delete Message
whiskers
old skool



Registered: Sep 2001
Location: in your dreams

quote:
Originally posted by biznology
but thats still not it...these are 'difficult' questions but they can be answered. not by everyone, necessarily, but still answered. what about everything else without an answer? sorry, im a philosophical asshole|



what biz said.


___________________

Old Post Oct-10-2003 14:25  Ukraine
Click Here to See the Profile for whiskers Click here to Send whiskers a Private Message Add whiskers to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Flyboy217
Senior tranceaddict



Registered: Aug 2003
Location: In DEEP SPACE... Space... space... sp...
Re: Re: Re: Re: Re: Re: Smart?

quote:
Originally posted by DigiNut
I suppose you could get it down to 17, if you used increments of 12. Once you hit floor 84 and it doesn't break, instead of going to 96, you go to 92. That way you only have to drop the next one 6 times.

This doesn't lower the worst case to 12, though, since this is no longer the worst case. The worst case will be when it does break at 84 (after 7 drops) and you need 10 to determine what's in between.

There is no possible way it can be lower unless there's a trick in the question. Here's the proof:

Assuming you drop the first egg at a regular interval n until it breaks, and I am sure that this is required, then the total number of drops required is going to be Floor[100 / n] + (n - 2). You can't make this lower than 18 for any value of n, unless you use the modification mentioned above, which nets you 17.

Flyboy, I'm bothered how you don't respond to any of my reasoning or proofs to tell me how the answers are wrong - I'm starting to wonder if you actually thought these questions through yourself or just dug them up somewhere along with the answers?


I apologize for not responding sooner. In general, I prefer to simply say "wrong" so that the person may figure out the solution entirely by himself. In this case, your proof was a good idea, but it is flawed. While I would normally just leave it at that, I'll go one step further and tell you that you make a faulty assumption in your first sentence. Any more and I'd be telling you the solution.

I've got plenty more where these came from, if anyone is interested. Yes, I'm a big math nerd :-). Served me damn well in school though ;-)

Old Post Oct-10-2003 14:44  United States
Click Here to See the Profile for Flyboy217 Click here to Send Flyboy217 a Private Message Add Flyboy217 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
drizzt81
Professional Lamer



Registered: Nov 2001
Location: GTA #1 - At work
Re: Re: Re: Smart?

quote:
Originally posted by Flyboy217
Wrong and wrong . Thanks to modern-day CS, many people love thinking along the lines of log2. Get off your log2 horses and start THINKING, people! That's what's nice about these problems... they make you think in a way you're most likely not used to thinking.

C'mon, someone solve at least one!


ok ok, i agree I am stupid, but seeing how i have been up since noon yesterday (irish time, it's now 4pm) i guess we all make mistakes

I have done it out.. logically and not the idiot blind, it's 3am and i don't want to program anymore way..:

i think it is do-able with 5 weights:
1,3,7,17,24 How about that?


___________________

get font

I see your 4 Crushs and raise you 3 As The Rush Comes. - Yan from PvD's first summerstage event in '03

Old Post Oct-10-2003 14:58  Germany
Click Here to See the Profile for drizzt81 Click here to Send drizzt81 a Private Message Add drizzt81 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Flyboy217
Senior tranceaddict



Registered: Aug 2003
Location: In DEEP SPACE... Space... space... sp...
Re: Re: Re: Re: Smart?

quote:
Originally posted by drizzt81
ok ok, i agree I am stupid, but seeing how i have been up since noon yesterday (irish time, it's now 4pm) i guess we all make mistakes

I have done it out.. logically and not the idiot blind, it's 3am and i don't want to program anymore way..:

i think it is do-able with 5 weights:
1,3,7,17,24 How about that?


How do you plan on balancing my 100 weight with those? They sum up to only 52 :-)

Old Post Oct-10-2003 15:53  United States
Click Here to See the Profile for Flyboy217 Click here to Send Flyboy217 a Private Message Add Flyboy217 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
drizzt81
Professional Lamer



Registered: Nov 2001
Location: GTA #1 - At work
Re: Re: Re: Re: Re: Smart?

quote:
Originally posted by Flyboy217
How do you plan on balancing my 100 weight with those? They sum up to only 52 :-)
oops today isn;t my day, i was thinking that i had to DETERMINE the weight of yours.. not balance it..

with a sum of 52 i will be able to tell you how much your weight is :/

still not bad, if that had been teh question

try 1,3,7,17,31,79


___________________

get font

I see your 4 Crushs and raise you 3 As The Rush Comes. - Yan from PvD's first summerstage event in '03

Last edited by drizzt81 on Oct-10-2003 at 16:22

Old Post Oct-10-2003 16:10  Germany
Click Here to See the Profile for drizzt81 Click here to Send drizzt81 a Private Message Add drizzt81 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
AndiH
Currently not available.



Registered: Jan 2001
Location: Regensburg, Germany | GTA #15
Re: Smart?

quote:
Originally posted by Flyboy217
1) There is a 100-story building. You have two identical eggs, each of which will break if dropped from some integer story N (or greater). You are allowed to drop each egg from any height you wish, until it breaks. By the time both eggs are broken, you must determine N. What is the fewest number of drops needed in the worst case? [10 min.]


What's the "worst case"?

Old Post Oct-10-2003 16:24 
Click Here to See the Profile for AndiH Click here to Send AndiH a Private Message Add AndiH to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > Smart?
Post New Thread    Post A Reply

Pages (12): « 1 [2] 3 4 5 6 7 8 9 10 11 12 »  
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackTech-House Tune 1 Needs An ID! [2004] [0]

Click here to listen to the sample!Pause playbackMarkus Schulz feat. Andy Moor - "Daydream" [2008]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 13:32.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!