public class Prim extends AbstractAlgorithm<MinimumSpanningTreeInstance>
Constructor and Description |
---|
Prim() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
argumentFormat()
Describe how the argument(s) to the algorithm should be formatted, if applicable.
|
boolean |
countsOperations() |
java.lang.String |
getCurrentProblemData() |
java.lang.Class<MinimumSpanningTreeInstance> |
getProblemType() |
java.lang.String |
getProgressReport()
HTML text that will be displayed in the Algorithm Runner that explains what the algorithm is doing.
|
java.lang.String |
getResult()
Return the result of the algorithm in the context of the problem.
|
double |
getVersion()
Mostly for use in comparing results from previous versions of algorithms, and/or so we can know whether or not
data in the database is based on an older version of the algorithm.
|
java.util.Set<Vertex> |
getVertsInTree() |
void |
initializeData()
setProblemData is already implemented for you, but you might need to initialize other data related to your
algorithm.
|
void |
parseArguments(java.lang.String args)
Sends a string that the user can enter to the algorithm.
|
void |
quit()
(Hopefully) gracefully stop the computation.
|
void |
runAlgorithm()
Solves algorithm.
|
getNumberOfOperations, getState, isDone, isNotDone, isQuit, setProblemData, setState
public void initializeData()
AbstractAlgorithm
initializeData
in class AbstractAlgorithm<MinimumSpanningTreeInstance>
public java.lang.String getProgressReport()
AlgorithmInterface
public void runAlgorithm()
public java.util.Set<Vertex> getVertsInTree()
public java.lang.String getResult()
AlgorithmInterface
public java.lang.String getCurrentProblemData()
public boolean countsOperations()
public double getVersion()
AlgorithmInterface
public java.lang.Class<MinimumSpanningTreeInstance> getProblemType()
public void quit()
AlgorithmInterface
public void parseArguments(java.lang.String args)
AlgorithmInterface
public java.lang.String argumentFormat()
AlgorithmInterface