by quickthrower2 · 4y ago · 0 comments
(restricting n to make the problem easier to say 2048)
Might be a fun programming project (or interview question ha ha) to monte carlo this.
Once you apply all the math, your resulting code is probably relatively simple. But justifying why the simple and short code is justified is a bit more complicated.
A simple example: we have no way to uniformly sample a real number from a range in our computers. Our computers can not represent arbitrary real numbers.
So we need to sample some kind of proxy, and justify that we are getting the same answer as if sampling properly.
Or more formally: we need to estimate the error that our choice of proxy introduces, and justify that estimation.