News for hackers. Stuff that matters.
Re:Show HN: Defrag the Game by marvinborner on Monday September 02, 2024 @07:41AM (#41424568)
I wonder what the optimal strategy is, optimize for speed with more fragmentation and fewer operations or for less fragmentation but more operations and time. For 1kb, optimizing for no fragmentation I can't seem to get below ~80.
Re:Show HN: Defrag the Game by v_b on Monday September 02, 2024 @07:45AM (#41424607)
That's the formular I am using to calculate the score: (elapsed seconds / 4) + operations + fragmentation
Re:Show HN: Defrag the Game by RA2lover on Monday September 02, 2024 @08:46AM (#41424952)
Seems like there's something off about that formula. This should have achieved 63 points instead of 79: https://i.imgur.com/QGEWpgO.png
Re:Show HN: Defrag the Game by v_b on Monday September 02, 2024 @08:50AM (#41424969)
Actually true. Thanks, will check this one