Trellis Algorithms PowerPoint PPT Presentation

presentation player overlay
1 / 7
About This Presentation
Transcript and Presenter's Notes

Title: Trellis Algorithms


1
Trellis Algorithms
  • Array of states vs. time

2
Trellis Algorithms
  • Overlap in paths implies repetition of the same
    calculations
  • Harness the overlap to make calculations
    efficient
  • A node at (si , t) stores info about state
    sequences that contain Xt si
  • This is the basis of dynamic programming

3
Viterbi Algorithm
  • A node at (si , t) stores info about state
    sequences up to time t that arrive at si

s1
sj
Choose max path
s2
4
Viterbi Algorithm
  • Define

is the best score along a single path, at
time t, which accounts for the first t
observations and ends in state si
By induction we have
Efficiently implemented using a trellis structure
5
Viterbi Algorithm
6
Viterbi Algorithm
7
Implementation
function VITERBI(observations, a, b) returns
viterbi-probability num-states ?
NUM-OF-STATES(pi) num-obs ?
LENGTH(observations) Create and initialise
probability matrix viterbinum-states1,
num-obs1 viterbi0, 0 ? 1.0 for each
time t from 1 to num-obs for each state s
from 1 to num-states max ? 0
for each previous state p from 0 to
num-states max ? MAX(max,
viterbip, t-1 ap, s bs,
observationst) end
viterbis, t ? max end end max
? 0 for each previous state p from 0 to
num-states max ? MAX(max, viterbip,
num-obs ap, FINAL-STATE) end return
max
Write a Comment
User Comments (0)
About PowerShow.com