This paper analyzes a probability model extracted from the algorithm analysis, and gives the corresponding random variable distribution law and the mathematical expectation. Through the programming we get the simulation solution of mathematical expectation, and verify th...