Isn't the count of unordered subsets what we want though? It's true that the actual route will be one unique ordering of each subset but in terms of counting the possible sets of waypoints themselves we don't need to worry about how they are ordered, since we know that there will be one (and only one) order for each unordered subset that will be our actual physical route?
e.g. we pull out the combination A,B,H,Y (when including the sets of 4) and I am just assuming that there is always a unique order we can place the set in such that the remaining distance is successively less for each star. But we don't want to count A,B,H,Y twice (in fact it is the very fact that we have to order it and can only do so one way which makes this calculation work) so it is the count of unique unordered sets (each one containing one and only one physical route order) that give us the upper bound answer.
Although I do think this only works if the stars you include are only those that are closer to your target than your starting star (so not all 400 billion if calculating from Sol) since that means you will never get a set that starts by going backwards.
P.S. I think this works out differently if the problem is to find a count of routes where the distance from the start always increases as well as the distance from the target always decreasing. My definition of "valid" routes only stipulates that the distance to the target always decreases. We could call "sensible" routes ones where this applied and where the distance from the start always increased as well. This would eliminate spiral routes and the like. I'm just happy to have worked out more about the "valid" route question. The "sensible" route question, does suffer from the problem you are concerned with and the count of "sensible" routes should be much smaller than "valid" ones but it can be left as an open question unless we're all having too much fun.
Whatever the answers the numbers are truly astronomical
[I've been wanting to do that pun ever since the thread started]
e.g. we pull out the combination A,B,H,Y (when including the sets of 4) and I am just assuming that there is always a unique order we can place the set in such that the remaining distance is successively less for each star. But we don't want to count A,B,H,Y twice (in fact it is the very fact that we have to order it and can only do so one way which makes this calculation work) so it is the count of unique unordered sets (each one containing one and only one physical route order) that give us the upper bound answer.
Although I do think this only works if the stars you include are only those that are closer to your target than your starting star (so not all 400 billion if calculating from Sol) since that means you will never get a set that starts by going backwards.
P.S. I think this works out differently if the problem is to find a count of routes where the distance from the start always increases as well as the distance from the target always decreasing. My definition of "valid" routes only stipulates that the distance to the target always decreases. We could call "sensible" routes ones where this applied and where the distance from the start always increased as well. This would eliminate spiral routes and the like. I'm just happy to have worked out more about the "valid" route question. The "sensible" route question, does suffer from the problem you are concerned with and the count of "sensible" routes should be much smaller than "valid" ones but it can be left as an open question unless we're all having too much fun.
Whatever the answers the numbers are truly astronomical
Last edited: