basketball_dynamic, a MATLAB code which uses dynamic programming to count the number of ways a given particular score can be achieved in basketball.
To be clear, this code only considers the score of one team. Moreover, in reaching a score, the sequence in which points were made is considered significant. Thus, the two sequences 2 + 3 and 3 + 2, which both achieve a score of 5, and contain the exact same values, are counted as different ways of doing so. They certainly would be experienced differently in live action.
The information on this web page is distributed under the MIT license.
basketball_dynamic is available in a MATLAB version and a Python version.
change_dynamic, a MATLAB code which uses dynamic programming to solve the change making problem, which counts the number of ways a given sum can be formed using coins of various denominations.
football_dynamic, a MATLAB code which uses dynamic programming to count the ways of achieving a given score in football, respecting the order of events.
knapsack_dynamic, a MATLAB code which uses dynamic programming to solve a knapsack problem.
matlab_combinatorics, a MATLAB code which considers a variety of problems in combinatorics involving counting, combinations, permutations, and so on.
matrix_chain_dynamic, a MATLAB code which finds the cost of the most efficient ordering to use when multiplying a sequence of matrices, using dynamic programming.