Research Article

Customer Behavior Analysis in Ticket Windows at Scenic Spots from Game-Theoretic Perspective

Algorithm 2

Search for and .
Input: λ, , θ, R, C
Output: ,
(1)Set , q = step,
(2)Calculate according to equation (28).
(3)while do
(4)q = q + step.
(5) Calculate according to equation (28).
(6) if then
(7)  , .
(8) end if
(9)end while
(10).