Heuristics: CS 306 Lecture notes

Computer Algorithms II Lecture Notes

2 October 2008 • Heuristics


Outline

A Problem

Exhaustive Search

consolidation(towns)

  schools = { }
  
  for i = 2towns.size() - 1 to 0 do
    s = subset(i, towns)
    if covers(s, towns) 
       s.size() < schools.size()
      schools = s

  return schools

Oops

Greed

Greed Costs

Does Greed Work?

How Bad Is It?

Heuristics

The Problem

Heuristics

Heuristic Algorithms

Approximation Algorithms

Example

Average-Case Algorithms

Heuristic Tricks

Examples


This page last modified on 31 October 2007.

Creative
    Commons License