Skip to main content
. 2015 Nov 5;15(11):28031–28051. doi: 10.3390/s151128031
Algorithm 2: Roll back process
1:  Input:    Label uncertainty graph LUG
2:  Output: A set of possible trajectories Trajectory={T1,T2,...,Tn}
3:  For each time-step t>0 do
4:         For each belief state Bt in proposition layer Pt do
5:               For each particle pj,j=1,...,N in belief state Bt do
6:                     Extract the belief state Bt1 in Pt1 which also contains the same particle pj
7:                     Roll back to generate the trajectory Trajj={Bt1,At1,Bt} from Bt to Bt1
8:                     Construct a new trajectory tuple Tj=(Trajj,wj=1)
9:                     Add Tj into obtained most likely trajectories Trajectory
10:                   Merge the same trajectory and update the weight 
11:               End For
12:      End For
13: End For