I like where you are going with here It is what i see as a dynamic programming method except I think its overcomplicated for a problem where an accurate approximation is definitely possible using a non-iterative general formula. It would need to be reduced to an algorithm and then run by a computer to make it useful.Respect the pool grid
40 area sections
all 10 in each section, 40 ways
(further study reduce for mirror images)
Notation: 10 balls in 1 section only 10 ways.
2 balls in 1 section or 2 balls in 2 sections
9 in 1 and 1 in 9, 81 ways
8 in 1 and 2 in 1 or 2 in 2,
7 in 1 and ... 3 in 1 or 3 in 2 or 3 in 3
...
If you finish the calculation you can say we collaborated. Its a math problem solved by student T.
So basically you divide the table up into sections then find all the possible layouts a section with a varying amount of balls you have to brute force summation for all permutations of each variation of each section on the pool table You also need to perform some handling for edge cases where a ball is in both sections to make it work exactly. I suppose this can be performed by calculating some half sections and overlap them over the edges of the sections or something to that regard.
Anyways, its definitely a good way to reduce the problem size (dynamic programming) to make it more feasable for exact calculation by a computer than a pure brute force approach although I believe a similar number can be attained by just making a general formula approximation where the number of ball positions is sufficiently high.
Because of the over-counting due to overlap when making the ball positions sufficiently high using the other formulas previously presented here I think a compensation could be made to reduce the approximation according to the random probability of ball overlap or something to this effect.
The mirroring due to table symmetry overcounting isn't a problem you just divide the number of ball positions by 4.
The mirroring due to congruent ball layouts overcounting problem ( ie: 8 balls end up in perfect symetetry with 2 balls in each quadrant of the table and the remaining 2 balls either on the dividing line between the quadrant or in the center or in a quadrant and in the exact mirroring position to an adjacent or opposite quadrant...there are other possible layouts that fit this type of layout as well) is not as simple: This is a much harder problem to compensate for. I suppose someone would need to figure out the probability of this occuring then reduce by this probability. I can't see how to calculate the probability of this happening off the top of my head as its not simple. I'm sure someone much smarter than me would though.
Last edited: