I have a probability study program that does 10,000,000 iterations. In each iteration you have to apply some heavy formulas that include the calculation of the factorial, and it is taking a long time.
I have been told that I must apply memorization to reduce process times.
Could you tell me what it is and how I use it?