|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvertexcover.AbstractVCover
vertexcover.RandomVCCalculator
public class RandomVCCalculator
Constructor Summary | |
---|---|
RandomVCCalculator(double pMut,
int maxIterations)
Creates the object |
Method Summary | |
---|---|
int[] |
getMinimalVertexCover(JPFMap map)
Searches minimal number of cities necessary to cover the road graph by means of random mutations |
static void |
main(java.lang.String[] args)
|
Methods inherited from class vertexcover.AbstractVCover |
---|
booleans2ints, getNumberOfCitiesUsed, getNumberOfRoadsCovered, getNumberOfRoadsCovered |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomVCCalculator(double pMut, int maxIterations)
pMut
- probablity of mutation of each array elementmaxIterations
- number of iterationsMethod Detail |
---|
public int[] getMinimalVertexCover(JPFMap map)
getMinimalVertexCover
in class AbstractVCover
map
- the map for the calculations
public static void main(java.lang.String[] args)
args
- the command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |