That's a pretty narrow set of circumstances, and since it relies on a potion you'd only set it up a handful of times in a run at best - probably zero or once, in the median case. If you're using Unceasing Top as your draw you also need to get the deck functionally empty except for the Searing Blow and some other zero cost cards so you can keep drawing it, plus something to generate block like Rage or Ornamental Fan. And if you have all that going for you it doesn't actually matter how much damage your attack card does, so having Searing Blow super upgraded doesn't do anything more than any other damage card. Strike would work about as well.
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).
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
The obvious implementation of bubble sort does not have a "god-view", it looks at pairs of adjacent elements and swaps them if they're out of order. The only global state is whether any swap happened on a single pass, which is equivalent to, in the inverted approach, some system for letting all the cells decide if they're done swapping (necessary to actually returning a sorted list). You can write a bubble-sort-ish kind of thing that tolerates immovable elements or errors in comparison but - I cannot emphasize this enough - bubble sort itself cannot. Anything you say about a re-implementation of bubble sort to tolerate such a thing is not a statement about bubble sort but rather about the thing you implemented that kind of looks like bubble sort.
I think I found the paper in question (https://arxiv.org/abs/2401.05375) and it is not supporting these claims about bubble sort at all (not going to try to dig in on the others right now). I cannot find a coherent interpretation of this paper that describes a sorting algorithm that is correct against arbitrary inputs and is also reasonably called "bubble sort".
The biological systems that support human intelligence are notoriously messy and work together only tenuously with a great many failure modes, including "process for the sake of process"
reply