mirror of
https://codeberg.org/qg-info-unterricht/zpg-graphentester.git
synced 2026-03-25 04:58:24 +01:00
First Commit (Fobi)
This commit is contained in:
commit
2bff291a51
336 changed files with 88781 additions and 0 deletions
14
algorithmen/GraphAlgo_TSPGreedy2.ctxt
Normal file
14
algorithmen/GraphAlgo_TSPGreedy2.ctxt
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#BlueJ class context
|
||||
comment0.target=GraphAlgo_TSPGreedy2
|
||||
comment0.text=\n\n\ Dieser\ Algorithmus\ sucht\ einen\ m\u00F6glichst\ kurzen\ Hamilton-Kreis\ (Traveling\n\ Salesman\ Problem).\n\ Algorithmus\:\ Greedy\n\ Strategie\:\ Sortiere\ Kanten\ der\ L\u00E4nge\ nach.\ F\u00FCge\ sie\ der\ Reihe\ nach\ der\ Route\ hinzu,\ wenn\ nicht\ schon\ ein\n\ Weg\ zwischen\ den\ beiden\ Knoten\ vorhanden\ ist\ und\ die\ Knoten\ nicht\ schon\ Grad\ zwei\ erreicht\ haben.\n\ vgl.\ Minimal\ Spanning\ Tree\ (Kruskal)\n\n\ @version\ 1.0\ from\ 11.12.2020\n\ @author\ Thomas\ Schaller\n
|
||||
comment1.params=
|
||||
comment1.target=java.lang.String\ getBezeichnung()
|
||||
comment2.params=
|
||||
comment2.target=void\ fuehreAlgorithmusAus()
|
||||
comment3.params=k
|
||||
comment3.target=boolean\ istRoutenende(graph.Knoten)
|
||||
comment4.params=k
|
||||
comment4.target=int\ bestimmeGrad(graph.Knoten)
|
||||
comment5.params=
|
||||
comment5.target=java.lang.String\ getInfo()
|
||||
numComments=6
|
||||
Loading…
Add table
Add a link
Reference in a new issue