Probability, Stochastic Dynamics and Quantum Algorithms