Lecture Notes for Algorithm Design
Heuristic Algorithms, 21 October 1999
These are provisional lecture notes, expect changes.
- intractable problems still need to be solved
- exponential algorithms run on small or average cases
- polynomial algorithms to give non-optimal results - heuristic
algorithms
- heuristic algorithms giving boundedly non-optimal results
- using intractable algorithms
- for small inputs, the algorithm may be fast enough
- backtracking algorithms
- make a guess and see what happens
- on failure backtrack to the most recent guess and try again
- set partition
- branch and bound
- exhaustive search
- using heuristics - rules of thumb
- out of all possible next choices, take the best one - greed
- sometimes greed is optimal - dikjstra's shortest path; prim's or
kruskal's mst algorithm
- sometimes greed is good or bad - knapsack packing
This page last modified on 4 November 1999.