Greedy Algorithms II CS 170 Section 5 170 Section 5.pdf · 2020. 5. 30. · Greedy Algorithms II....

Post on 02-Oct-2020

5 views 0 download

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.

●○○○

∧ ∧ ⇒ ∧ ⇒ ⇒ ⇒ ∧ ⇒ ∨ ∨

∧ ∧ ⇒ ∧ ⇒ ⇒ ⇒ ∧ ⇒ ∨ ∨

∧ ∧ ⇒ ∧ ⇒ ⇒ ⇒ ∧ ⇒ ∨ ∨

∧ ∧ ⇒ ∧ ⇒ ⇒ ⇒ ∧ ⇒ ∨ ∨