Monday, November 25, 2013

Simulation of Random Homework Assignment Problem

I simulated the random assignment on Matlab for a few cases:



The convergence is similar no matter how many students there are. The error after 1000 trials (I used Error=|average-1|) hovers around 0.02 regardless of the number of students.

No comments:

Post a Comment