Stochastic algorithms for parking space assignment