Skip to main content
. Author manuscript; available in PMC: 2016 Oct 1.
Published in final edited form as: Med Image Comput Comput Assist Interv. 2015 Nov 20;9350:152–159. doi: 10.1007/978-3-319-24571-3_19

Algorithm 1. Path finding algorithm

Input: s = seed node, L = # of nodes in final path, and P = maximum # of candidate paths
Initialize list of candidate paths {p} = {{s,Cost(s)}}
for L-1 iterations
Grow
  Initialize new list of candidate paths{q}={ }
  for each candidate path in {p}
   Find child nodes of p, {c} = {n,Cost(n, p)}
   for each node in {c}
    Add new path to list {q} = {q} | (p + c)
   end
  end
Prune
  Sort candidate paths in {q} by increasing path cost
  Update {p}={q}1P
end
Output: p1