Skip to main content
. 2010 Feb 16;132(7):074101. doi: 10.1063/1.3310809
 
Algorithm 1 State Space Exploration
INPUT:nk, MAX, Initial State
OUTPUT:TransitionMatrixn, StateListn
1: initialize: NextTierQueue←Initial State, Queue←∅
2: initialize: StateList←Initial State, TransitionMatrix←∅
3: for Tier ∊ (2, MAX) do
4:  QueueNextTierQueue
5:  NextTierQueue←∅
6:  for all states sQueuedo
7:   for all non-empty voxels vsdo
8:    for all inter-voxel transitions d {with probabilities p(d)} originating from vdo
9:     find state ts+d(v)
10:     iftStateListthen
11:      add t to StateList, add t to NextTierQueue
12:     end if
13:     TransitionMatrix(s,t)←p(d)
14:    end for
15:   end for
16:  end for
17: end for
18: Update Diagonal elements in TransitionMatrix
19: Truncate TransitionMatrix so that it is of dimension |StateList|
20: Create absorbing state in TransitionMatrix