a b c d e f g h i j
((a (((b (c d)) e) ((f g) h)) i) j)
On the other hand, suppose your binary operation is associative. How many different ways are there now? Effectively one.
That's a huge reduction in complexity. The notion of associativity is extremely useful in developing composable programs.
Anyway, 4862 times is still a substantial complexity reduction.
Thanks for the correction.
On the other hand, suppose your binary operation is associative. How many different ways are there now? Effectively one.
That's a huge reduction in complexity. The notion of associativity is extremely useful in developing composable programs.