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 May 15th, 2002, 09:44 AM
jameadows jameadows is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ashland, OR US
Posts: 7 jameadows User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: The time draws near

Dang, that Dijkstra guy beat us to it!

Reply With Quote
  #17  
Old May 15th, 2002, 01:35 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: The time draws near

Ah well I've lost, lol.

Reply With Quote
  #18  
Old May 15th, 2002, 02:40 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: The time draws near

Here's a little something you all might be interested in:

http://www.skilldrill.com/LeaderBoardList.asp?htxtTestID=194&n=Foundation+Series%3A+PHP4

Skill Drill has a PHP4 Foundation series test - it's free to take and if you score high enough, they give you a certificate.

I should be ranked #1 but I'm currently ranked #3 ("meetraz") because they don't consider elapsed time in your ranking The guys in the #1 and #2 spot took so long they could have looked up every single answer.


Reply With Quote
  #19  
Old May 15th, 2002, 02:49 PM
catlingm catlingm is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 catlingm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: The time draws near

I ended up going with the A* algorithm, which does Dijkstra’s algorithm one better, by using a heuristic estimate to determine which nodes (squares in the maze) are closest to the goal (exit).

Theoritically, the A* algorithm will find the shortest path quicker because it will be following the path that seems to lead to the goal in less steps.

Unfortunately for me, I don't think I implemented it very efficiently, because it seems to be about 100 times slower on large maps than some of the Lee-Moore implementations that many of you have done.

Check it out at: http://codezilla.com/php/a-star/

Reply With Quote
  #20  
Old May 16th, 2002, 10:19 AM
Laxersaz Laxersaz is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Neuss, NRW, Germany
Posts: 21 Laxersaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Laxersaz Send a message via AIM to Laxersaz
RE: The time draws near

I used the Lee More algorithm... And I like it! Here's my solution: www.gemueseauflauf.de/maze and the code www.gemueseauflauf.de/maze/code.txt

Reply With Quote
  #21  
Old May 16th, 2002, 05:04 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: The time draws near

How about lines of code? Who has the shortest solution?

I didn't try to shorten mine at all, but I was suprised at how short the finished solution was. With HTML and fluff, I'm at ~150 lines, if I take that out, I'm at ~90 lines.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > The time draws near


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 5 hosted by Hostway
Stay green...Green IT