Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 6 Dynamic Programming

Similar presentations


Presentation on theme: "Lecture 6 Dynamic Programming"— Presentation transcript:

1 Lecture 6 Dynamic Programming

2 Example 4 Viterbi’s Algorithm
Consider a simplified version of a voice recognition problem Goal: Given n segments of sounds, output the phonemes (e.g. /ˈfoʊniːm/) each sound might represent one of k phonemes. Input: For each sound segment, a list of scores for the k phonemes. For every pair of phonemes, a score for how likely one comes after the other Goal: Find a sequence of phonemes that has the highest score.

3 Example n = 3, k = 2 Input: Optimal solution: Score = ( ) + (5 + 4) = 21 Phoneme\Sound 1 2 3 5 4 Phoneme\Phoneme 1 2 5 4

4 Example 5:Max Independent Set on Trees
Input: a tree Independent Set: Set of nodes that are not connected by any edges Goal: Find an independent set of maximum size.

5 Max Independent Set on Trees
Input: a tree Independent Set: Set of nodes that are not connected by any edges Goal: Find an independent set of maximum size.


Download ppt "Lecture 6 Dynamic Programming"

Similar presentations


Ads by Google