It is currently Thu Sep 09, 2010 7:57 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Chestnuts T-4
PostPosted: Wed Dec 02, 2009 8:26 pm 
Offline
Hooloovoo
User avatar

Joined: Sun Apr 27, 2008 2:45 pm
Posts: 260
Location: Altdorf
So, what are your solutions to chestnuts?

In the worst case, I need to ask exactly 4n-8 questions 8-).


Top
 Profile  
 
 Post subject: Re: Chestnuts T-4
PostPosted: Wed Dec 02, 2009 8:34 pm 
Offline
Ravenous Bugblatter Beast of Traal

Joined: Thu May 15, 2008 3:24 pm
Posts: 26
Location: Sissach
My solution asks not more than 8(n-1) questions.

For Solutions PN me

greetz


Top
 Profile  
 
 Post subject: Re: Chestnuts T-4
PostPosted: Wed Dec 02, 2009 9:12 pm 
Offline
Bipedal Creature from Earth

Joined: Sat Jul 04, 2009 4:29 pm
Posts: 3
Location: Ecublens
My worst case is 5N - 10 questions ;)


Top
 Profile  
 
 Post subject: Re: Chestnuts T-4
PostPosted: Wed Dec 02, 2009 9:47 pm 
Offline
Vogon
User avatar

Joined: Sat Aug 30, 2008 12:24 pm
Posts: 188
Location: Rehetobel
Well my worst case is 6n-15 (but it's quite elegant).
To build up a copy of the whole Cat graph do this (asking always includes building an edge if the answer was yes):

Repeat 3 times:
- Find a chestnut that has no edges yet.
- Ask n-1 (or less, never ask the same question twice) questions to find out how many other chestnuts its connected to.
- If this number is one, do the same for it's parent.

Now you've got a copy of the whole graph and classifying the chestnuts is really easy (only chestnut of degree 2 is the neck, which is connected to head, degree 1 and the chest,..).


Top
 Profile  
 
 Post subject: Re: Chestnuts T-4
PostPosted: Tue Dec 08, 2009 2:12 pm 
Offline
Hooloovoo
User avatar

Joined: Sun Apr 27, 2008 2:45 pm
Posts: 260
Location: Altdorf
@richie & other admins:
What's the official solution?

I bet it's not better than 4n-8 8-)


Top
 Profile  
 
 Post subject: Re: Chestnuts T-4
PostPosted: Fri Jan 15, 2010 11:00 pm 
Offline
Hooloovoo
User avatar

Joined: Sun Apr 27, 2008 2:45 pm
Posts: 260
Location: Altdorf
I can't wait to see the official solution tomorrow.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group