I've spent many hours trying to understand how this recursion algorithm works!
And now, thanks to you, I finally think I do!
Thanks for your help, I appreciate it.
Keep up the good work!
Kanskje
First of all, thanks a lot for your help!
The program now outputs '1-2-3'
When Useit returns, all values of used = .true.
How can it be written such that it continues through all different cominations?
1-2-3
1-3-2
2-1-3
2-3-2 etc.
Any suggestions?
MODULE div
INTEGER, PARAMETER :: usedmax =...
Hello,
I'm having difficulties returning the right values from a recursive call.
The problem is to check a list of items. Each item can be visited only once, and I want to find every possible path between the items, quite similiar to a TSP.
I've generated a list that includes all the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.