tHeFiRsTiDioT
Disciple
...Fast forward to 2006. I was shocked to learn that the binary search program that Bentley proved correct and subsequently tested in Chapter 5 of Programming Pearls contains a bug. Once I tell you what the it is, you will understand why it escaped detection for two decades.
This is a snippet from the official google research blog. It seems that even the implementation of binary search in the Sun Java JDk contains a bug. And it lay dormant for 9 yrs. Here is the entire blog -
Official Google Research Blog: Extra, Extra - Read All About It: Nearly All Binary Searches and Mergesorts are Broken
Check out the last paragraph. Eternal vigilance blah blah blah.
Any comments software programmers?