18
Subway Network Subway Network Algorithm Algorithm Matt Freeburg Matt Freeburg ICS 311 Fall 2006 ICS 311 Fall 2006 University of Hawai’i at University of Hawai’i at Manoa Manoa

Subway Network Algorithm Matt Freeburg ICS 311 Fall 2006 University of Hawai’i at Manoa

Embed Size (px)

Citation preview

  • Slide 1
  • Subway Network Algorithm Matt Freeburg ICS 311 Fall 2006 University of Hawaii at Manoa
  • Slide 2
  • Table of Contents Introduction Introduction Correctness Correctness Algorithm Algorithm Complexity Complexity Conclusions Conclusions
  • Slide 3
  • Consider Vertex v, a child of t, with children ui, i from 1 to n Vertex v, a child of t, with children ui, i from 1 to n P(v) = p P(v) = p Each child is a subtree that requires ki machines to clean Each child is a subtree that requires ki machines to clean We order ui so ki are in decreasing order, without loss of generality We order ui so ki are in decreasing order, without loss of generality
  • Slide 4
  • Lemma 1 When cleaning subtrees ui from i = 1 to n, number of machines needed is K, such that k1