| ▲ | twright0 21 hours ago | |||||||
This is the snippet that made me put this article down. An implementation of a standard bubble sort simply cannot do what is described, and the idea of introducing immovable elements to a bubble sort doesn't really make sense - there's no such concept. Bubble sort is, what, five lines of code? And exceedingly simple. The most charitable read is that they introduced a new concept of immovable items in the array and then wrote new code to do something bubble-sort-ish to solve around it, like exploring a tree of possible swap options and picking a promising line like a chess engine, which might satisfy the idea that nobody explicitly programmed "delayed gratification" but definitely does not mean that bubble sort itself somehow learned or expressed that concept on its own (again, what would that mean?). So it feels like either the author of the article misunderstood, there was a miscommunication with the subject, or the subject actively misled the author on this particular point, which ends my desire to try to read and understand the rest (which is less in my wheelhouse and therefore harder for me to evaluate). | ||||||||
| ▲ | patcon 20 hours ago | parent [-] | |||||||
He converted bubble sort to agent-based, as in, inverted the algorithm to be from the POV of the digits instead of the god-view of the algorithm that sees the digit set as a whole. Like drawing a circle with a protractor (view of whole), vs drawing circle with instruction "step fwd, then turn 1 degree left" (local view) After rewriting the algo in a functional form, they then made it fail in certain conditions, e.g., "a 1 to the left of a 4 gets the equality relationship backward" or things like that. it's quite a clever approach as I recall. Worth reading his papers and not dismissing him out of hand | ||||||||
| ||||||||