Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Travelling problem (Anyone better <strike>86850</strike> 84860?)

by Dirk80 (Pilgrim)
on Dec 22, 2013 at 21:07 UTC ( [id://1068126]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Travelling problem (Anyone better 82991?)
in thread Travelling problem

Wow, I'm impressed about your ability to find that fast a very good solution. I don't know the perfect value. But 84860km seems to be a very short distance for the 24 places.

Of course I want to try to write my own code. But it would be interesting for me which algorithm you used. Until now I did not have success with the Graph module. See Re^3: Travelling problem

Now I'll try the minimal hamilton path.

  • Comment on Re^3: Travelling problem (Anyone better <strike>86850</strike> 84860?)

Replies are listed 'Best First'.
Re^4: Travelling problem (Anyone better <strike>86850</strike> 84860?)
by BrowserUk (Patriarch) on Dec 22, 2013 at 23:58 UTC

    I'm using a genetic algorithm (based loosely on Re^15: Divide array of integers into most similar value halves (Updated)), it gets close very quickly, but has no guarantee to ever find the best. Nor any guarantees about the quality of what it does find. (Nor even any criteria by which to judge that.)

    It took less than a minute to find 86850, but much, much longer to refine that to 84860.

    I threw the implementation I've been using together late last night and it is pretty crude and messy. Once I've cleaned it up I'll post it.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1068126]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-20 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found