As mentioned I ask this question, because I'm stuck in this code example for more than 4 years.

I found out, that the coefficients of Pascal's triangle are not only worthfull for numbers - they show the amount of combinations each set of chars can have without repeating - n!/(k!*(n-k)!) permutations

A simple way I thought is to take the exponents of every element to build the similar elements in these charsets when the exponents are bigger than 1 and use the coefficients to build a loopclass with generic depth esablishing itself while runtime calculating the permutations.

The console should react on input like this would be 1 "3" 3 1 in two elements  - (element 1 ^2 element 2^1) 

My problem is that its very difficult to build a core doing that - has anyone experiance with this and likes to help me ?

After a conversation with a good friend I found out, that it would be much easier to not use the product recursively ( coefficient 0 = 1 coefficient *= exp-- / i++) nevertheless this would be a parallel way to do this. There is a way in connecting each char with each other by comparison of equality - so, that the coefficients sum at identity and rebuild the term replacing the results?

I think this is a very interesting example - maybe you catch fire on that

Georg

More Georg Neubauer's questions See All
Similar questions and discussions