Pearls of Functional Algorithm Design
- 3h 36m
- Richard Bird
- Cambridge University Press
- 2010
Richard Bird takes a radically new approach to algorithm design, namely, design by calculation. These 30 short chapters each deal with a particular programming problem drawn from sources as diverse as games and puzzles, intriguing combinatorial tasks, and more familiar areas such as data compression and string matching. Each pearl starts with the statement of the problem expressed using the functional programming language Haskell, a powerful yet succinct language for capturing algorithmic ideas clearly and simply. The novel aspect of the book is that each solution is calculated from an initial formulation of the problem in Haskell by appealing to the laws of functional programming. Pearls of Functional Algorithm Design will appeal to the aspiring functional programmer, students and teachers interested in the principles of algorithm design, and anyone seeking to master the techniques of reasoning about programs in an equational style.
About the Author
RICHARD BIRD is Professor of Computer Science at Oxford University and Fellow of Lincoln College, Oxford.
In this Book
-
The Smallest Free Number
-
A Surpassing Problem
-
Improving on Saddleback Search
-
A Selection Problem
-
Sorting Pairwise Sums
-
Making a Century
-
Building a Tree with Minimum Height
-
Unravelling Greedy Algorithms
-
Finding Celebrities
-
Removing Duplicates
-
Not the Maximum Segment Sum
-
Ranking Suffixes
-
The Burrows–Wheeler Transform
-
The Last Tail
-
All the Common Prefixes
-
The Boyer–Moore Algorithm
-
The Knuth–Morris–Pratt Algorithm
-
Planning Solves the Rush Hour Problem
-
A Simple Sudoku Solver
-
The Countdown Problem
-
Hylomorphisms and Nexuses
-
Three Ways of Computing Determinants
-
Inside the Convex Hull
-
Rational Arithmetic Coding
-
Integer Arithmetic Coding
-
The Schorr–Waite Algorithm
-
Orderly Insertion
-
Loopless Functional Algorithms
-
The Johnson-Trotter Algorithm
-
Spider Spinning for Dummies