A data-driven method for stochastic shortest path problem | Synapse