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:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old November 13th, 2002, 02:12 AM
diclophis diclophis is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Tampa. FL, USA
Posts: 35 diclophis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to diclophis Send a message via AIM to diclophis Send a message via Yahoo to diclophis
test files?

anyone want to post some test files... i think my algorithm works but i would like to check it against someone elses.

Reply With Quote
  #2  
Old November 13th, 2002, 05:52 PM
jorgen jorgen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Hardenberg, Holland<marquee>
Posts: 284 jorgen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: test files?

explain your algorithm... Flip the greatest value to the top and than flip the whole stack, is NOT the fastest. That's the reason why I quit this contest. Now I'm building a script that searches in the Google database with SOAP

Reply With Quote
  #3  
Old November 13th, 2002, 07:28 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: test files?

You quit the contest because it was challenging?

Reply With Quote
  #4  
Old November 13th, 2002, 08:00 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: test files?


Quote:
anyone want to post some test files... i think my algorithm works but i would like to check it against someone elses.


do you want input files or the actual algorith script?

php Code:
Original - php Code
  1.  
  2. /*  This outputs a list of (500) numbers between 1 and 1000
  3.     in random order. One number per line.*/
  4.  
  5. $range = range(1, 1000);
  6. srand((float)microtime()*1000000);
  7. $range = array_rand($range, 500);
  8.  
  9. shuffle($range);
  10.  
  11.  
  12. foreach($range as $value) {
  13.     print $value."n";
  14. }


you won't get my algorithm ;o)

Reply With Quote
  #5  
Old November 13th, 2002, 10:09 PM
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: RE: test files?

Quote:
You quit the contest because it was challenging?


I think the algorithm part is WAY beyond coding now. Just making an algorithm now is a task in itself. I'm also not sure if I'll do this contest. Matt's idea of running a "dual contest" with a GUI part too is novel, but I think that detracts. I would rather there be two "normal" contests. So, possibly have another contest that's not so algorithmic. I mean, the last contest I knew how to approach it: a DFS tree.

This contest, I have no idea what to do. I think one could practically write a research paper on the topic of prefix reversals before they'll beat the guaranteed 2*n-move algorithm.

In other words, if someone does come up with a new algorithm, there's no reason to even code it. Just publish it!

Then again, it's possible someone's going to do a search tree for a smaller test-case (only 50 or so discs is still quite a large number though...) and the search result will be enough to beat everyone else who is only using the guaranteed algorithm

It's possible the move-sums will be something like:
990, 1002, 1002, 1002, and everyone else has 1002 because they're all using the 2*n-move way.

Reply With Quote
  #6  
Old November 14th, 2002, 09:37 PM
diclophis diclophis is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Tampa. FL, USA
Posts: 35 diclophis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to diclophis Send a message via AIM to diclophis Send a message via Yahoo to diclophis
RE: test files?

I have been able to get #flips < n using an optmized version of my original algorithm. the only problem i have is that sometimes its off by one, i verified my flips using my gui counterpart.. but i cant figure out what is the case that its off by one.. thus i was asking if someone had a complex stack that they knew 100% what the shortest # of moves is i would like to check against that to verify my code is working before i submit it and bother matt with the task of verifying that the method by which i am counting my flips is correct. about the gui part of the contest i hope matt will focus on the coding of the gui and not the appereance... that is if some person has a bloated up 4bazillion line flash movie that used a 3d cook flipping pancakes would be just as plausible to win as a 100 line pure html+javascript version, but like he said.. that part of the contest is all subjective. I also dont think there is a 1 step method to know the exact # of flips by just looking at the inital stack... so you would have to actually run through the flips and what not and make your script intellgient enough to know what is the best flip to make. maybe matt you could post a couple test files by which we can test our script.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > test files?


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 |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway