Discrete Binary Search

Can someone explain please the discrete binary search with an example…
I read from here Topcoder and got the basic idea of what it is. But still I am unable to understand the code part and its implementation.