Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #16  
Old December 7th, 2002, 08:06 PM
Seadoo Seadoo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 133 Seadoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Pegs contest

I don't think it's luck. It's all about how really good your algorithm is.

Reply With Quote
  #17  
Old December 9th, 2002, 04:48 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Pegs contest

What is a lookup table exactly in context to your contest?

Reply With Quote
  #18  
Old December 9th, 2002, 01:55 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: RE: Pegs contest


Quote:
What is a lookup table exactly in context to your contest?


here

Reply With Quote
  #19  
Old December 11th, 2002, 10:08 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Pegs contest

How can we be sure/unsure that there isn't a solution that yields only 1 peg for any given initial configuration that starts out with only one missing?

*lacks the mathematical rigor, or time, to answer this question*

Reply With Quote
  #20  
Old December 11th, 2002, 10:14 PM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Pegs contest

In 18 cases a solution with 1 peg exists, and in 10 cases, with 2 pegs. You'll need to find the actual solutions yourself, though

Reply With Quote
  #21  
Old December 12th, 2002, 04:18 AM
webhappy webhappy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Silicon Valley, CA, USA
Posts: 203 webhappy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Pegs contest

Uh... there are 2^28 cases total, not just 28... BTW, Matt, you won't give us a case of only 1 peg or no pegs or all pegs right? IE, you won't give us one of the above tricks (with nothing to do)?

Reply With Quote
  #22  
Old December 12th, 2002, 04:37 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Pegs contest

i think xs0 was talking about there being 28 possible boards that start with only one peg missing....

And I usually don't pull tricks ;)

Reply With Quote
  #23  
Old December 12th, 2002, 05:02 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Pegs contest

xs0, how do you know that those 10 don't have a 1 peg solution? have you tried all branches?

Reply With Quote
  #24  
Old December 12th, 2002, 05:22 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Pegs contest

I don't think I'm going to enter. I can hold my own in algorithms and have an idea for an extremely efficient implementation which uses mostly ANDs and ORs with the right data structures to look ahead three or four moves (dynamic based on current time and progress). At any rate, I think that Gandolf has a point about it being relatively easy to find the best solution (...now if only I could do that in my mind @ Cracker Barrel ; ), even if you're using a greedy algorithm. : (

Reply With Quote
  #25  
Old December 12th, 2002, 10:48 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: RE: Pegs contest

Quote:
xs0, how do you know that those 10 don't have a 1 peg solution? have you tried all branches?


Yup. There's also another way of figuring that out, but I'll leave it for after the contest

Reply With Quote
  #26  
Old December 12th, 2002, 01:27 PM
uba uba is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 uba User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Pegs contest

can somebody give an example of situation with a realy long calculation.. i mean more than 30s..

Reply With Quote
  #27  
Old December 12th, 2002, 02:41 PM
Seadoo Seadoo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 133 Seadoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Pegs contest

I can't. My algorithm always find the optimal solution in just a second. Just kidding, of course.

I can't give you an exmaple, because my algorithm is designed to stop before...

Reply With Quote
  #28  
Old December 12th, 2002, 04:01 PM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: RE: Pegs contest

Quote:
can somebody give an example of situation with a realy long calculation.. i mean more than 30s..


No one can give you that example. It completely depends on what algorithm you use. I had one problem I thought was hard (originally took 45 secs), but just a slight change in algorithm made it solve in 2 secs...

Reply With Quote
  #29  
Old December 12th, 2002, 04:22 PM
-vertigo- -vertigo- is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Louth, Lincolnshire
Posts: 314 -vertigo- User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 24 sec
Reputation Power: 2
RE: Pegs contest

Of what relevance is it that 18 of the '1 peg missing' layouts have a 1 peg solution, and the rest have 2 peg solutions?

To my mind, you can't use that information because to do so would constitute being a lookup table.

You could only use that information to see how your algorithm fares. I don't see it as being much value.

Now, xs0 said there was another way to determine the minimal solution. If there was a method to examine the input and determine what the minimal solution is, without running through the moves, that would anihilate anybody else's efforts.

xs0 said he would reveal that after the competition. It could be that we of less intellect are doomed.

PS. Regardless of what anyone says, I will still enter. In the previous contest people had hugely smart ideas about how to sort the stacks, but the lean, minimalist solution by JoE beat them. Beware of the underdog...

Reply With Quote
  #30  
Old December 12th, 2002, 04:33 PM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: RE: Pegs contest

Quote:
Of what relevance is it that 18 of the '1 peg missing' layouts have a 1 peg solution, and the rest have 2 peg solutions?

Anonymous wondered about that. It is of no relevance, because it is indeed a lookup table.

Quote:
Now, xs0 said there was another way to determine the minimal solution. If there was a method to examine the input and determine what the minimal solution is, without running through the moves, that would anihilate anybody else's efforts.

I said no such thing. I just said that for the ten boards in question, it can be proved without running through all moves that a 1-peg solution is not possible. I still had to use the "hard way" to prove that 2 pegs were possible (and 1 peg in the other 18).
Quote:
xs0 said he would reveal that after the competition. It could be that we of less intellect are doomed.

Nonsense...

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > Pegs contest


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |