in reply to Re: Highest total sum path problem
in thread Highest total sum path problem

> "real matrix is 50000*50000" HaHaHaHaHaHaHaHaHaHaHaHaHaHaHaHaHaHaHaHa

It's not that impossible if the approach was mathematical.

Of course this would require cleanly defined rules and not these "oh good point I forgot to mention that ..." dialogs.°

How this?

In short, no need to brute force all possible paths if there are plenty optimal ones and picking one is sufficient.

Of course I might have misunderstood the "rules", but why should I risk to invest more efforts for vain ? ;)

For instance:

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

°) read "I have no real clue what I need"

update

Your solution demonstrates my approach pretty well:

Replies are listed 'Best First'.
Re^3: Highest total sum path problem
by LanX (Saint) on Mar 08, 2020 at 01:36 UTC
    > There are certainly many paths meeting that criterion most probably automatically constructed from smaller segments like

    OK not trivial, but well studied and becoming easier with growing number of possible moves (i.e. low number of non-positive cells here)

    see Hamiltonian Path

    But the general case is NP complete ... hmm ...

    ... well ... HaHaHaHaHaHaHaHaHaHa .... HaHaHaHaHaHaHaHaHaHa

    ;)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery