in reply to Re^4: Travelling problem (Anyone better 86850?)
in thread Travelling problem
Anyway both results are already within 20% from the optimum.
May I ask, if you cache intermediate results?
If you go from 1 to 24 and reach node X again via the same nodes (just other order) then the options for the rest of the way are identical.
In my experience such memoizing helps to bound very efficiently.
This caching is maybe better applied in a "breadth first search" to reduce pathes.
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Travelling problem (Anyone better 86850?)
by hdb (Monsignor) on Dec 23, 2013 at 18:22 UTC | |
by LanX (Saint) on Dec 23, 2013 at 18:30 UTC |