Current Contest
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsCurrent Contest

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:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old October 9th, 2004, 08: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
Microseconds Or Seconds ?

Till Now, some of us get the same results on the testing maps, and our scripts take the same time which is less than a second.
Is that means, judgement will be on microseconds?
If So, I think it will be not fair, because the same script doesn't take exactly the same time (in Micros) every time it executes. My script on a sample map take from (0.400 ~ 0.750).

Reply With Quote
  #2  
Old October 9th, 2004, 08:55 PM
un_guru un_guru is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 9 un_guru User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Microseconds Or Seconds ?

yes that's true.
I think some new features must be added to the contest scripts because many of us will have the same script(same algorithm).

some condition like: make coridors so each room is connected and you can go from room[1] to room[50] never walking twice on a box.

-that's easy but ...
it's not much fun when the winner is chosen randomly because of those damn microseconds

Reply With Quote
  #3  
Old October 9th, 2004, 09:45 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Microseconds Or Seconds ?

you will be judged in microseconds..

but remember, that is the second judging criteria. first one is the cost of your corridors.

so, the short answer is: build a better script..

because this problem is NP-hard, there will not be a perfect script (because of time-constraints), so any algorithm even slightly better than the standard "minimum spanning tree" should put you ahead of all those that use that algorithm..

Reply With Quote
  #4  
Old October 10th, 2004, 10:05 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: Microseconds Or Seconds ?


An example
There are 2 scripts.
In 40 maps they will find exact path lenght, but 1st script always is faster than 2nd.
In 10 maps 2nd will find better solution.

so question:
what script will win? 1st as winner 40 times, or 2nd as it has found better paths in total?


Reply With Quote
  #5  
Old October 10th, 2004, 10:46 AM
un_guru un_guru is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 9 un_guru User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Microseconds Or Seconds ?

You get a score for each map
you get points for cost and score for time
I think the score will look something like
$score[$i] = 1/($cost+$time)
foreach ($score as $total){
$total += $total;
}
this is just an example. I think there is another algorithm , a bit different ...
so each of those 2 scripts can win

Reply With Quote
  #6  
Old October 10th, 2004, 01:31 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: RE: Microseconds Or Seconds ?

Quote:
so question:
what script will win? 1st as winner 40 times, or 2nd as it has found better paths in total?


i think it would depend on other scripts, but i think that the 1st script will have a higher score..

again, build a better script. on every map, there will always be a better solution that the standard MST..

Reply With Quote
  #7  
Old October 10th, 2004, 02:12 PM
ivo ivo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: cologne,germany
Posts: 126 ivo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: RE: RE: Microseconds Or Seconds ?


Quote:
there will always be a better solution that the standard MST..


i dont think so. i havent found the time yet, to find out, how mst exactly works, but i think its quite similar to what my script does (reinvented the wheel again :/).
and on most maps my script seems to work perfect (as far as i can tell; but i can surely tell for the maps in the example pack!).

in your scenario i think mst will always win.
what i would do:
first judge per map; score only points (so maybe you have 5 scripts on first place and continue scoring with 6th place).
if theres a draw after all maps are done, rank by the sum of the times per map.

and i dont think, that you can wait with the descision until you see the scripts...

with scoring with time per map, i would try to write the fastest mst.
with a scoring like i suggested, i would try to write the script, thet gets the shortest paths (and if it takes 29.9 seconds).
i think the second is more interesting ;-)

Reply With Quote
  #8  
Old October 10th, 2004, 08:47 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Microseconds Or Seconds ?

look, i will be making the maps used for judging, and i will try to make each map so that it has a better solution than the standard MST.

so, i think it is better to build a script that takes much more time, but always does at least 1% better than the standard MST..

Reply With Quote
  #9  
Old October 11th, 2004, 02:14 PM
un_guru un_guru is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 9 un_guru User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Microseconds Or Seconds ?

I got a perfect script. Never fails but it parses one map in 25-40 minutes.
Are you sure you want to constraint time to seconds and not minutes?

Reply With Quote
  #10  
Old October 11th, 2004, 02:36 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Microseconds Or Seconds ?

i doubt that it is "a perfect script", and yes, i am sure about the time limit of 30 seconds..

Reply With Quote
  #11  
Old October 11th, 2004, 03:19 PM
un_guru un_guru is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 9 un_guru User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Microseconds Or Seconds ?

it tries every combination excepting some "absurd" combinations. So the result will be the minimum cost.
it's not perfect because it takes too much time

Reply With Quote
  #12  
Old October 11th, 2004, 10:05 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Microseconds Or Seconds ?

so, what would be the fun of the contest if i changed the time limit so that it is possible to write a script that simply tries all combinations?

Reply With Quote
  #13  
Old October 12th, 2004, 02:29 PM
un_guru un_guru is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 9 un_guru User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Microseconds Or Seconds ?

hey, I was just kidding when I asked to change time. I'm not absurd. I just forgot to add a

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsCurrent Contest > Microseconds Or Seconds ?


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