Transcript
CS 170 Section 5Greedy Algorithms II
Agenda
●○○○
●
Greedy Algorithms
Minimum Spanning Trees
●●
Kruskal’s Algorithm
●●●
●●
The Cut Property
●●●
Prim’s Algorithm
●○
●○ ∅
○■■ ∪ ∪
●●●
Huffman Encoding
●●●
○●
○
●●
Huffman Encoding, cont.
●○
●
Huffman Encoding, cont.
●
●●
○●
○
Horn Formulas
●○
■ ⇒
■○
■■
Horn Formulas, cont.
●
●○○○
∧ ∧ ⇒ ∧ ⇒ ⇒ ⇒ ∧ ⇒ ∨ ∨
∧ ∧ ⇒ ∧ ⇒ ⇒ ⇒ ∧ ⇒ ∨ ∨
∧ ∧ ⇒ ∧ ⇒ ⇒ ⇒ ∧ ⇒ ∨ ∨
∧ ∧ ⇒ ∧ ⇒ ⇒ ⇒ ∧ ⇒ ∨ ∨