Simulate keys/lock problem below.
If you have 7 locks and 50 keys, each lock can be opened by one key only, what would be the fastest way to open one lock? A) Try the keys one at a time on a single lock. B) Try one key at a time on all locks one by one.
simulation.R: fastest way to open one lock
simulationAllLocks.R: fastest way to open all locks