CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] Re: Traveling Salesman algorithm ?

Posted by Jon Elson
on 2001-08-29 22:22:48 UTC
frenner@... wrote:

> --- In CAD_CAM_EDM_DRO@y..., rab@r... wrote:
> > Don't suppose anyone can recommend a good algorithm for solving the
> > Traveling Salesman problem ?
> >
> > Rab
> >
> > Rainnea Graphics
>
> Rab,
> The Traveling Salesman problem is famously non-polynomial complete,
> meaning that it provably can not be solved (best answer) by a formal
> algorithm. To find a "good enough" approximate answer you can use a
> search method such as branch-and-bound and stop looking when the pain
> level of the seach exceeds the pain of the best answer found so far.

Actually, it CAN be solved, by exhaustive search, only for a very small
number
of nodes (think cities for the salesman to visit). The number of possible
results rises as the factorial of the number of nodes. It gets intractable
at about 9 nodes, and even a hot Pentium will grind for hours to solve
the problem when there are, maybe, 12 nodes.

I wrote a wire-wrap program that took a netlist and generated a nice
list for manual wire wrapping in an organized manner. (It had you do
all level-1 wraps first, then you put on the 2nd level.) It attempted to
optimize the net 'tree' to use a minimum length of wire, and then told
you what length of wire to use between each pair of nodes.

I used a brute force algorithm up to 6 nodes, then switched on a
genetic algorithm that fiddled around for a while, took the best result
and then fiddled with that one for a while, etc. The idea was to avoid
getting stuck in a false minimum while making small changes and miss
a major improvement by stringing the wire a different way. this wasn't
perfect, but it was mostly usable.

I wanted to add some rule-based methods to quickly recognize organized
patterns and use zig-zag or some row and column schemes, but I haven't
had need for massive wire wrapping jobs lately. (I was building a 32-bit
bit slice computer in the early 80's, it probably has 5000 wire wrap wires
on each board!)

Jon

Discussion Thread

cncdxf@a... 2001-08-26 17:48:45 UTC Traveling Salesman Syndrome machines@n... 2001-08-27 01:25:59 UTC Re: Traveling Salesman Syndrome Fred Smith 2001-08-27 10:02:07 UTC Re: Traveling Salesman Syndrome cncdxf@a... 2001-08-27 12:57:12 UTC Re: Traveling Salesman Syndrome Ethan Vos 2001-08-27 13:17:02 UTC RE: [CAD_CAM_EDM_DRO] Re: Traveling Salesman Syndrome Fred Smith 2001-08-27 13:44:13 UTC Re: Traveling Salesman Syndrome machines@n... 2001-08-27 13:56:10 UTC Re: Traveling Salesman Syndrome Carol & Jerry Jankura 2001-08-27 16:21:01 UTC RE: [CAD_CAM_EDM_DRO] Re: Traveling Salesman Syndrome Fred Smith 2001-08-27 16:51:20 UTC Re: Traveling Salesman Syndrome cncdxf@a... 2001-08-27 17:16:09 UTC Re: Traveling Salesman Syndrome HighTech 2001-08-27 21:09:37 UTC RE: [CAD_CAM_EDM_DRO] Re: Traveling Salesman Syndrome dlantz@a... 2001-08-28 05:43:36 UTC RE: [CAD_CAM_EDM_DRO] Re: Traveling Salesman Syndrome Roland Friestad 2001-08-28 06:03:18 UTC Re: Traveling Salesman Syndrome Fred Smith 2001-08-28 07:59:00 UTC Re: Traveling Salesman Syndrome rab@r... 2001-08-29 15:56:50 UTC Re: Traveling Salesman algorithm ? frenner@c... 2001-08-29 17:09:28 UTC Re: Traveling Salesman algorithm ? cncdxf@a... 2001-08-29 19:24:23 UTC Re: Traveling Salesman algorithm ? Alan Marconett KM6VV 2001-08-29 21:27:38 UTC Re: Traveling Salesman algorithm ? Doug Fortune 2001-08-29 21:47:15 UTC Re: [CAD_CAM_EDM_DRO] Re: Traveling Salesman algorithm ? Jon Elson 2001-08-29 22:22:48 UTC Re: [CAD_CAM_EDM_DRO] Re: Traveling Salesman algorithm ? Jon Elson 2001-08-29 23:01:57 UTC Re: [CAD_CAM_EDM_DRO] Re: Traveling Salesman algorithm ? cncdxf@a... 2001-08-30 03:14:55 UTC Traveling Salesman Syndrome rab@r... 2001-08-30 03:58:57 UTC Re: Traveling Salesman Syndrome cncdxf@a... 2001-08-30 04:20:34 UTC Re: Traveling Salesman Syndrome rab@r... 2001-08-30 05:28:17 UTC Re: Traveling Salesman Syndrome dougrasmussen@c... 2001-08-30 09:11:33 UTC Re: Traveling Salesman Syndrome cncdxf@a... 2001-08-30 09:52:41 UTC Re: Traveling Salesman Syndrome Alan Marconett KM6VV 2001-08-30 13:07:24 UTC Re: [CAD_CAM_EDM_DRO] Traveling Salesman Syndrome cncdxf@a... 2001-08-30 15:05:00 UTC Re: Traveling Salesman Syndrome Alan Marconett KM6VV 2001-08-30 15:31:37 UTC Re: Traveling Salesman Syndrome cncdxf@a... 2001-08-30 15:48:14 UTC Re: Traveling Salesman Syndrome Alan Marconett KM6VV 2001-08-30 18:21:39 UTC Re: Traveling Salesman Syndrome