15-May-2025 08:59:13 locker_simulation_test() MATLAB/Octave version 6.4.0 Test several strategies for the locker puzzle. strategy1_test(): Each player simply opens lockers at random. They may even open some lockers several times. Number of lockers was 100 Number of players was 100 Number of lockers a player can check 50 Number of trials was 1000 Success rate = number of players who found wallet / number of players. Minimum = 0.25 Maximum = 0.55 Mean = 0.39643 Variance = 0.00230986 All players found their wallets 0 times out of 1000 strategy2_test(): Each player opens lockers based on a random list. However, this list has no duplicates. Number of lockers was 100 Number of players was 100 Number of lockers a player can check 50 Number of trials was 1000 Success rate = number of players who found wallet / number of players. Minimum = 0.35 Maximum = 0.66 Mean = 0.50326 Variance = 0.00234872 All players found their wallets 0 times out of 1000 strategy3_test(): Each player starts at their own locker. Next try the locker corresponding to the wallet they found. Number of lockers was 100 Number of players was 100 Number of lockers a player can check 50 Number of trials was 1000 Success rate = number of players who found wallet / number of players. Minimum = 0 Maximum = 1 Mean = 0.51005 Variance = 0.130428 All players found their wallets 326 times out of 1000 strategy4_test(): Each player starts at a random locker. Next try the locker corresponding to the wallet they found. Number of lockers was 100 Number of players was 100 Number of lockers a player can check 50 Number of trials was 1000 Success rate = number of players who found wallet / number of players. Minimum = 0.13 Maximum = 0.63 Mean = 0.38281 Variance = 0.00703564 All players found their wallets 0 times out of 1000 locker_simulation_test() Normal end of execution. 15-May-2025 09:09:55