Improving Saddleback Search: A Lesson in Algorithm Design
Over the past twenty-five years or so Saddleback search has been used as an paradigm of how methods of formal program construction can quickly lead to a simple and effective algorithm for searching an ordered table. In this paper we revisit the problem and show that saddleback search is not in fact the best algorithm when one dimension of the table is much smaller than the other. The paper is structured in the form of a classroom discussion involving a teacher and four very clever students.
KeywordsAlgorithm Design Formal Program Binary Search Classroom Discussion Good Algorithm
Unable to display preview. Download preview PDF.