Package algorithmen
Class GraphAlgo_TSPGreedy
- java.lang.Object
-
- java.lang.Thread
-
- algorithmen.GraphAlgo
-
- algorithmen.GraphAlgo_TSPGreedy
-
- All Implemented Interfaces:
Runnable
public class GraphAlgo_TSPGreedy extends GraphAlgo
Dieser Algorithmus sucht einen möglichst kurzen Hamilton-Kreis (Traveling Salesman Problem). Algorithmus: Greedy Strategie: Verlängere den Weg immer mit der kürzesten Kante, die vom aktuellen Ende der Route ausgeht. vlg. Minimal Spanning Tree (Prim)- Version:
- 1.0 from 11.12.2020
- Author:
- Thomas Schaller
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description GraphAlgo_TSPGreedy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfuehreAlgorithmusAus()StringgetBezeichnung()StringgetInfo()-
Methods inherited from class algorithmen.GraphAlgo
getStartKnoten, getWaitforclick, getWaitforrepaint, info, infoIndentLess, infoIndentMore, melde, resetInfo, run, setGraph, setGUIElemente, setSpeed, setStartKnoten, setStepping, setWaitforclick, setWaitforrepaint, step
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, toString, yield
-
-
-
-
Method Detail
-
getBezeichnung
public String getBezeichnung()
- Specified by:
getBezeichnungin classGraphAlgo
-
fuehreAlgorithmusAus
public void fuehreAlgorithmusAus()
- Specified by:
fuehreAlgorithmusAusin classGraphAlgo
-
getInfo
public String getInfo()
-
-