Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi.
I am trying to solve for overlapping paths in perl.
For example if I have input
0-200 200-400 400-600 600-800 800-1000 1000-2000 0,1800
and I want to find all paths to reach from 0 to 2000, here would be
(0-200-400-600-800-1000-2000), (0-200-1800-2000), (0-1800-2000)
Can you please suggest a way to do this.
Thanks
Nean
<p> tags and Code tags added by GrandFather to improve readability
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: search overlap paths
by GrandFather (Saint) on Jun 13, 2014 at 12:01 UTC | |
|
Re: search overlap paths
by LanX (Saint) on Jun 13, 2014 at 02:03 UTC | |
by Anonymous Monk on Jun 13, 2014 at 02:26 UTC | |
by LanX (Saint) on Jun 13, 2014 at 06:17 UTC | |
by Laurent_R (Canon) on Jun 13, 2014 at 07:24 UTC | |
|
Re: search overlap paths
by Cristoforo (Curate) on Jun 13, 2014 at 03:59 UTC | |
by Anonymous Monk on Jun 13, 2014 at 05:01 UTC |