CGI interview question

In which case binary search is the best algorithm?