That means I didn't miss any obvious optimizations in there. I'm happy to see that nobody changed the core math code. So the EXAs are literally playing an elimination tournament against each other, the last one standing will have the high score. Another EXA will be ready to send its M and the pattern repeats. At that point the other EXA will be waiting to TEST and since it will have the smaller value, it will die. Otherwise, it jumps back to CHIPOTLE and sends its high score again. If there a value on M, this EXA tests if it has a greater algorithm result than the incoming value. ![]() The timing works out quite precisely - if there's nothing on M this is the last remaining EXA, and the DISJUNCTION jump makes sure the name is written to the file by XB. It then checks if another one is sending on M. The very first one gets voided by XC to prevent the solution from getting stuck. After running the algorithm, each EXA sends the result on local M. Joking aside, this solution hurts my head. I'm pretty sure this one gets its high score because of the veggie-themed labels. I actually thought of that but couldn't get it to work because it kept throwing off the timing. As soon as it's done, XB switches back to global and gets the next value.Īs a side effect, this makes the timing independent of the number of EXAs, meaning that TEST X > 341 trick can be used so EXAs with a score that never wins die immediately. That means all other XA REPLs just have to wait their turn while this particular XA can safely send the name of the player to XB without interruptions. They start in global mode, but as soon as an XA REPL sends the first value they both immediately switch to local mode. And that's possible because both the algorithm EXA (XA) and the comparator (XB) are in the same host. ![]() This solution is so fast because there's the minimum amount of waiting between EXAs. The sound like a simple solution but they really aren't.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |