Subway Network Algorithm Matt Freeburg ICS 311 Fall 2006 University of Hawai’i at Manoa
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
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