|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Test Your Script on This Map
php Code:
I get 3,412. |
|
#2
|
|||
|
|||
|
RE: Test Your Script on This Map
870, but i think 830 is minimum
|
|
#3
|
|||
|
|||
|
RE: Test Your Script on This Map
now my script gets the 830, but optimum would be 828 i think now...
00000000000000000000001110000000000000000000000000 00000000000000000000001110000000000000000000000000 00001110000000000000000020000000000000000000000000 00001110000000000000000020000000000000000000000000 00000100000000000000000020000000000000000000000000 00000200000000000000000001100000000000000000000000 00000200000000000000000000112222222000000000000000 00000200000000000000000002000000000200000000000000 00000200000000000000000020000000000020000000000000 00000200000000000000000200000000000002000000000000 00000200000000222111102000000000000000110000000000 00000200000002000001111000000000000000110000000000 00000200000020000000011110000000000002000000000000 00000011110200000000000110000000000002000000000000 00000011111000000000000000000000000002000000000000 00000111111000000000000000000000000002000000000000 00000011110000000000000000000000000002000000000000 00000000000000000000000000000000000002000000000000 00000000000000000000000000000000000002000000000000 00000000000000000000000000000000000002000000000000 00000000000000000000000000000000000002000000000000 00000000000000000000000000000000000002000000000000 00000000000000000000000000000000000002000000000000 00000000000000000000000000000000000011000000000000 00000000000000000000000000000000000011000000000000 00000000000000000000000000000000000020000000000000 00000000000000000000000000000000000020000000000000 00000000000000000000000000000000000011000000000000 00000000000000000000000000000000000011000000000000 00000011110000000000000000000000000020000000000000 00000000111000000000000000000000000011010000000000 00000000000110000000000000000000000001110000000000 00000000002000000000000000000000000000110000000000 00000000020000000000000000000000000002000000000000 00000000200000000000000000000000000020000000000000 00000011000000000000000000000000000200000000000000 00000011000000000000000011111111111000000000000000 00000011000000000000000011111111111000000000000000 00000011000000000000000001111111111000000000000000 00000011000000000000000000111111111222220000000000 00000011000000000000000000200000000000002000000000 00000011111222222000000000200000000000000200000000 00000000110000000200000000200000000000000020000000 00000000110000000020000000200000000000000001100000 00000000110000000001111111100000000000000001100000 00000000110000000000000001100000000000000000000000 00000000110000000000000001100000000000000000000000 00000000110000000000111111100000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 |
|
#4
|
|||
|
|||
|
RE: Test Your Script on This Map
I get 826, but most of optimizations are left. BTW, time summary must in millisecs rather than secs, thought.
|
|
#5
|
|||
|
|||
|
RE: Test Your Script on This Map
I, too, get 826. But the best solution is 822.
Another question, how long do your scripts calculate? |
|
#6
|
|||
|
|||
|
RE: Test Your Script on This Map
< 1 sec ;)
|
|
#7
|
|||
|
|||
|
RE: Test Your Script on This Map
(<1 sec was me, sorry)
|
|
#8
|
|||
|
|||
|
RE: Test Your Script on This Map
< 1 sec as well
i suspect that there's going to be quite a number of scripts using the standard mst and getting the same ranking ... |
|
#9
|
|||
|
|||
|
RE: Test Your Script on This Map
Can someone post the solution for 826, please ?
I get this score even not manual by hand ? <1 sec ???? Is this possible ? Or did you do a joke ? Or do you work on a 10 Ghz machine ? |
|
#10
|
|||
|
|||
|
RE: RE: Test Your Script on This Map
Quote:
i need 6 seconds, but get also 826. what is 'standard mst'? and how do you get 822, i cant see it. 00000000000000000000001110000000000000000000000000 00000000000000000000001110000000000000000000000000 00001110000000000000000020000000000000000000000000 00001110000000000000000002000000000000000000000000 00000100000000000000000002000000000000000000000000 00000200000000000000000001100000000000000000000000 00000200000000000000000000112000000000000000000000 00000200000000000000000002000200000000000000000000 00000200000000000000000020000020000000000000000000 00000020000000000000000020000002000000000000000000 00000020000000000111100200000000222222110000000000 00000020000000002001111000000000000000110000000000 00000020000000020000011110000000000000200000000000 00000011110000200000000110000000000000200000000000 00000011111222000000000000000000000000200000000000 00000111111000000000000000000000000000200000000000 00000011110000000000000000000000000000200000000000 00000000000000000000000000000000000000200000000000 00000000000000000000000000000000000000200000000000 00000000000000000000000000000000000002000000000000 00000000000000000000000000000000000002000000000000 00000000000000000000000000000000000002000000000000 00000000000000000000000000000000000002000000000000 00000000000000000000000000000000000011000000000000 00000000000000000000000000000000000011000000000000 00000000000000000000000000000000000002000000000000 00000000000000000000000000000000000002000000000000 00000000000000000000000000000000000011000000000000 00000000000000000000000000000000000011000000000000 00000011110000000000000000000000000002000000000000 00000000111000000000000000000000000011010000000000 00000000200110000000000000000000000001110000000000 00000000200000000000000000000000000000110000000000 00000000200000000000000000000000000002000000000000 00000002000000000000000000000000000020000000000000 00000011000000000000000000000000000200000000000000 00000011000000000000000011111111111000000000000000 00000011000000000000000011111111111000000000000000 00000011000000000000000001111111111000000000000000 00000011000000000000000000111111111200000000000000 00000011000000000000000000200000000020000000000000 00000011111000000000000000200000000002000000000000 00000000110000000000000000200000000000200000000000 00000000110000000000000000200000000000022221100000 00000000112222222221111111100000000000000001100000 00000000110000000000000001100000000000000000000000 00000000110000000000000001100000000000000000000000 00000000110000000000111111100000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 |
|
#11
|
|||
|
|||
|
RE: Test Your Script on This Map
I think this is the best solution:
correct me if I'm wrong! |
|
#12
|
|||
|
|||
|
RE: Test Your Script on This Map
I too need < 1 sec.
Has somebody tried to calculate a steiner tree? |
|
#13
|
|||
|
|||
|
RE: Test Your Script on This Map
On these small maps (50x50) max 1-2 sec (depends on your algorithm
|
|
#14
|
|||
|
|||
|
RE: Test Your Script on This Map
mst = minimum spanning tree
proven to be at least 3/2 as good as the optimal steiner tree |
|
#15
|
|||
|
|||
|
RE: Test Your Script on This Map
You are going to need a map bigger than 100x100. Try about 5000x5000. That will be big enough to allow competition for algorithmic speeds, and implementations.
|
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Current Contest > Test Your Script on This Map |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|