A dynamic programming approach to trajectory estimation | Synapse