Examples of algorithms and proofs that seem correct, but aren't(cstheory.stackexchange.com)
cstheory.stackexchange.com
Examples of algorithms and proofs that seem correct, but aren't
https://cstheory.stackexchange.com/questions/40478/examples-of-algorithms-and-proofs-that-seem-correct-but-arent
Also, see ”Nearly All Binary Searches and Mergesorts are Broken” (https://research.googleblog.com/2006/06/extra-extra-read-all...), which is caused by the difference between mathematical integers and computer ‘ints’.