Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Exchange Heuristic and Swapping Code

by nat47 (Sexton)
on Mar 03, 2015 at 17:03 UTC ( [id://1118635]=note: print w/replies, xml ) Need Help??


in reply to Re: Exchange Heuristic and Swapping Code
in thread Exchange Heuristic and Swapping Code

@solution1,2,3,4,5

@leftovers6,7,8

pick [0] of @solution and examine combinations 6,2,3,4,5, 7,2,3,4,5, and 9,2,3,4,5. If these are not closer to goal state then do the same with 1 so that 1,6,3,4,5, 1,7,3,4,5, etc

This makes sense then, that it could run through the whole thing and not find a better solution?

  • Comment on Re^2: Exchange Heuristic and Swapping Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-24 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found