in reply to Re^6: Challenge: Letter Power
in thread Challenge: Letter Power
Since you don't seem to be able to see beyond a pissing contest between my heuristic and my heuristic stuck in a loop, I'll try to make the point another way.
All you are doing at the moment is comparing relative numbers for whichever heuristics you decide to test. And on a miniscule sample of possible datasets. But that gives you no basis upon which to draw any meaningful conclusions.
But in either case, the best solution you have found could be abysmally bad.
So what is the point in being able to say that heuristic A converges on an abysmally bad solution 0.1 seconds more quickly than heuristic B?
For a heuristic to be useful (or even just vaguely meaningful), you have to be able to say something to the effect of: "This heuristic will find the optimal (or one of the top ten most optimal) solution in 90% of cases".
Until you have some way of determining that kind of baseline, comparing trivial modifications of a single heuristic, or two wildly different heuristics, serves little purpose. And you cannot form a baseline without either an exhaustive search or some sound mathematical way of determining or estimating the optimal solution.
If you're really bent on pursuing an algorithm for solving the original problem, then lookup the literature on Linear Programming with particular attention to 'longest path' and 'critical path' analysis in a network. These have known solutions that will guarentee to find an optimal solution faster than a brute force search. Though probably not if coded in Perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Challenge: Letter Power
by Limbic~Region (Chancellor) on Apr 19, 2009 at 20:57 UTC | |
by BrowserUk (Patriarch) on Apr 20, 2009 at 22:15 UTC | |
by Limbic~Region (Chancellor) on Apr 20, 2009 at 22:49 UTC |