EXAPUNKS

EXAPUNKS

View Stats:
TEC REDSHIFT - I don't get it
I don't get it how people can have scores lower than 3000. The worst case scenario is that you have to try all 1000 combinations and each combination takes 3 cycles to enter, so it shouldn't be possible to go below 3000 cycles? I was quite happy with my 3018 and then I saw that top was about 200 cycles lower. How is it even possible?
< >
Showing 1-4 of 4 comments
The worst case is 1000 attempts... in theory.
In the 100 tests there are of course only 100 combinations used.
Originally posted by shimmy:
The worst case is 1000 attempts... in theory.
In the 100 tests there are of course only 100 combinations used.
Oh... Now I get it, you adjust your algorithm to match the test data. That feels a little like "cheating", but I guess that's what you have to do.
Technically, if the WORST possible scenario is that the 3-cycle input gets repeated 1000 times, and there are 100 test cases, it's far from impossible to end up under 3000 cycles without "cheating" or tailoring your code to the test data. Even 100 random tests are not gonna end up with the worst case scenario very often.

That's all theoretical though, because I definitely have not gotten under 3000 cycles on that level.
Even if the combination was randomly generated, it wouldn't take 1000 entries to input every possible combination. You'd just be looking at a deBruijn sequence with k=10 and n=3. However, coding something with the available operations to actually enter numbers in this way in fewer cycles than just trying sequentially would probably be impossible.
< >
Showing 1-4 of 4 comments
Per page: 1530 50