|
SantaClaus.m2 |
PROCEDURE ComputeRoute(distances: DistanceMatrix; noflocations: LocationIndex); VAR visited: ARRAY Location OF BOOLEAN; nofvisits: LocationIndex; location: Location; nextlocation: Location; length: Distance; |
visited[location] ist genau dann TRUE, wenn
location bereits besucht worden ist.
| |
nofvisits ist die Zahl der erledigten Besuche.
| |
Die nächste Reise geht von location zu nextlocation.
| |
In length wird die Gesamtstrecke aufsummiert.
|
Copyright © 1999 Andreas Borchert, in HTML konvertiert am 13.01.1999 |