Welcome to Dream.In.Code
Getting Help is Easy!

Join 117,617 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,947 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Race Car Logic Question

 
Reply to this topicStart new topic

Race Car Logic Question, See what you get

jjsaw5
post 15 Apr, 2008 - 05:59 AM
Post #1


D.I.C. Face

Group Icon
Joined: 4 Jan, 2008
Posts: 1,074



Thanked 5 times

Dream Kudos: 125
My Contributions


A guy at work this morning gave us a brain teaser/logic problem.

There are 25 race cars. Only 5 cars can race at one time. How many times would it take to find the fastest three cars? He said it should be less then ten times. A couple people at work got 11, i think i figured it out but I'm curious to see what you guys come up with.

my answer:

25 cars 5 at a time = 5 sessions

1st place finisher from each session races thats 5 cars. Take the top 3 cars from that race. It only takes 6 races.


This post has been edited by jjsaw5: 15 Apr, 2008 - 05:56 AM
User is offlineProfile CardPM

Go to the top of the page


SebKom
post 15 Apr, 2008 - 06:49 AM
Post #2


New D.I.C Head

*
Joined: 16 Jun, 2007
Posts: 38


My Contributions


What about clocking these 5 sessions? You only need 5 times!
User is offlineProfile CardPM

Go to the top of the page

baavgai
post 15 Apr, 2008 - 07:26 AM
Post #3


Dreaming Coder

Group Icon
Joined: 16 Oct, 2007
Posts: 1,763



Thanked 70 times

Dream Kudos: 400

Expert In: C, C++, Java, C#, ASP.NET, PHP, Perl, Python, Oracle, SQL Server, MySql, HTML, JavaScript, Lua

My Contributions


Five races of five gets you the five fastest, then one last race for pole position, so six. It there some kind of trick question in here? Of course, if you were smart enough to bother with a stop watch, you woudln't need a last race...
User is offlineProfile CardPM

Go to the top of the page

jjsaw5
post 15 Apr, 2008 - 07:47 AM
Post #4


D.I.C. Face

Group Icon
Joined: 4 Jan, 2008
Posts: 1,074



Thanked 5 times

Dream Kudos: 125
My Contributions


QUOTE(baavgai @ 15 Apr, 2008 - 10:26 AM) *

Five races of five gets you the five fastest, then one last race for pole position, so six. It there some kind of trick question in here? Of course, if you were smart enough to bother with a stop watch, you woudln't need a last race...


Thats the answer i got as well. I'm not really sure if it is a trick question or not like I said, a co-worker asked us this morning and i haven't had the time to go and talk to him about it yet.
User is offlineProfile CardPM

Go to the top of the page

1lacca
post 15 Apr, 2008 - 07:59 AM
Post #5


code.rascal

Group Icon
Joined: 11 Aug, 2005
Posts: 3,804



Thanked 11 times
My Contributions


QUOTE(baavgai @ 15 Apr, 2008 - 04:26 PM) *

Five races of five gets you the five fastest, then one last race for pole position, so six. It there some kind of trick question in here? Of course, if you were smart enough to bother with a stop watch, you woudln't need a last race...

Nope, if the three fastest are in the first group, and you only qualify the first from each group, then you won't have the 3 fastest in the second round, just the fastest and two lucky ones.
User is offlineProfile CardPM

Go to the top of the page

baavgai
post 15 Apr, 2008 - 08:20 AM
Post #6


Dreaming Coder

Group Icon
Joined: 16 Oct, 2007
Posts: 1,763



Thanked 70 times

Dream Kudos: 400

Expert In: C, C++, Java, C#, ASP.NET, PHP, Perl, Python, Oracle, SQL Server, MySql, HTML, JavaScript, Lua

My Contributions


QUOTE(1lacca @ 15 Apr, 2008 - 10:59 AM) *

Nope, if the three fastest are in the first group, and you only qualify the first from each group, then you won't have the 3 fastest in the second round, just the fastest and two lucky ones.


Ack, you are correct. Five and a stop watch... which makes it far more entertaing if you don't have a stop watch...

If, in each race you take the top three, you'll be able to elimiate two per race.
Round 1 = 5 races of 5 (25)
Round 2 = 3 races of 5 (15)
Round 3 = 2 races of 5 (9) ( one from the first participates in the next)
Round 4 = 1 race of 5 (5) ( pole position! )

Looks like 11, no less, sans watch. Make sense?
User is offlineProfile CardPM

Go to the top of the page

1lacca
post 15 Apr, 2008 - 08:24 AM
Post #7


code.rascal

Group Icon
Joined: 11 Aug, 2005
Posts: 3,804



Thanked 11 times
My Contributions


I would go with 8 races.
Spoiler:

1-5: race in groups of five
6: 5 winner -> we have the fastest here
7: 4 runner up from 6th, and the 2nd from 1-5 where the winner comes from -> second fastest is found
8: 4 runner up from 7th, and the 2nd from 1-5 where the winner of 7 comes from (or the third if first and second fastest came from the same original group ) -> 3rd fastest
User is offlineProfile CardPM

Go to the top of the page

baavgai
post 15 Apr, 2008 - 09:11 AM
Post #8


Dreaming Coder

Group Icon
Joined: 16 Oct, 2007
Posts: 1,763



Thanked 70 times

Dream Kudos: 400

Expert In: C, C++, Java, C#, ASP.NET, PHP, Perl, Python, Oracle, SQL Server, MySql, HTML, JavaScript, Lua

My Contributions


Excellent! You win. tongue.gif
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/8/08 12:01AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month