[Cialug] Need An Algo Suggestion

Todd Walton tdwalton at gmail.com
Thu Oct 14 20:18:42 UTC 2021


I'm not a programmer. Not really. If I had a list of things like this:

 1,2
 2,3
 2,4
 3,6

how would I map them so that I can see that 1 refers to 2, 2 refers to 3
and 4, and 3 refers to 6, so:

 1,2,3,6
 1,2,4
 2,3,6
 2,4
 3,6

Like that? I want to build up those chains. Every chain has an end. There's
no infinite loops. But some have multiple paths.

I'm not sure how to do that, and I'm not sure what to call it for the
purposes of DDGing it.

--
Todd


More information about the Cialug mailing list