by devnonymous · 7y ago · 0 comments
https://ai.googleblog.com/2006/06/extra-extra-read-all-about...
Which reminds me just how young the field of computer science is and how even the ^well known^, fundamental algorithms might have buggy implementations.
They all submitted their implementation of binary search and he modelled them each in TLA+. The majority of them all had errors.
Popular problem with using unsigned : Write a reverse for loop from n (exclusive) to 0 (inclusive). See if you can do it without discarding your two most intuitive (but wrong) approaches.