I am trying to figure out an easier way to do what I am doing, because I think it could be done easier with the logic tools, but I am not good enough with the logic tools to figure out how.
As you can see, I am taking the n item in each branch and putting them into new branches. The number of branches I start with is the number of items in each branch that I make, and the number of items in each branch that I start with is the number of branches that I make. While this works, the big problem is that the number of branches that I start with varies from 3 to 6, and it would take a lot of work to make this part of the definition adapt to varying numbers of branches. Any ideas?
Thanks in advance.
Tags: