I just tried to find out more about the AZ convention machine, and it doesn't look like it was any kind of "algorithm" in that instance. As best as I could understand in the video (loud, unorganized, people yelling like in most of these convention videos), the Old Guard notated the "Romney Slate" with a "*" next to their names. *Coincidentally*, those names were placed right above those on the "Paul Slate". When the scanner was counting votes, it caught the asterisk and essentially counted the names right above the "Paul Slate" people instead of going on to count the actual intended vote.
I imagine they will make the argument that this was unintentional when it is brought up in the court case. I have a hard time swallowing that, personally, but then again I am rarely surprised by people's sheer stupidity either. Either way, they were either criminally intent or downright stupid, neither of which is something to be proud of. In either case, all involved officials should lose their positions over it.