| Homework 11DetailsThe following problems are from pages 227 of ADM
Use the Algoraph plugin to implement one of the following:
- Prim's Algorithm. Use MinimumSpanningTreeInstance. To output the result, create a MultiEdgeChosenEvent using the constructor that takes an EdgeChooseInstance (MinimumSpanningTreeInstance is a subclass of this) and an ArrayList of edges. Pass in puzzle and your ArrayList of tree edges. Return encodeEvent.
- Kruskal's Algorithm. See the previous option for more details.
- Dijkstra's Algorithm. Use SSShortestPath. Otherwise, follow the same details from Prim's Algorithm above.
- Floyd's Algorithm. Use WeightedInstance. Output the matrix. I may give further details.
More details coming soon.
|