public class Utilities
extends java.lang.Object
Constructor and Description |
---|
Utilities() |
Modifier and Type | Method and Description |
---|---|
static int |
calculatePebblingNumber(PebbleInstance puzzle)
Run the EfficientPebblingNumberExhaustive algorithm to find the pebbling number of the graph.
|
static int[] |
calculateSingleVertexMinimumSolvableConfiguration(PebbleInstance puzzle)
Computes the number of pebbles on each vertex that would guarantee solvability.
|
static java.lang.String |
configurationToString(int[] config)
Makes a string of the configuration
|
static java.util.ArrayList<int[]> |
findAll2PPViolators(PebbleInstance puzzle,
int numberOfPebbles,
int numberOfVerticesWithPebbles,
boolean fineThreaded) |
static java.util.ArrayList<int[]> |
findAllUnsolvableConfigurations(PebbleInstance puzzle,
int numberOfPebbles,
int numberOfVerticesWithPebbles,
boolean isExtendedPuzzle)
Find all unsolvable configurations of numberOfPebbles pebbles placed on numberOfVerticesWithPebbles vertices.
|
static int[] |
findFirstUnsolvableConfiguration(PebbleInstance puzzle,
int numberOfPebbles,
int numberOfVerticesWithPebbles,
boolean isExtendedPuzzle) |
public static java.lang.String configurationToString(int[] config)
config
- the configuration to be made a stringpublic static int calculatePebblingNumber(PebbleInstance puzzle)
public static int[] calculateSingleVertexMinimumSolvableConfiguration(PebbleInstance puzzle)
public static java.util.ArrayList<int[]> findAllUnsolvableConfigurations(PebbleInstance puzzle, int numberOfPebbles, int numberOfVerticesWithPebbles, boolean isExtendedPuzzle)
puzzle
- numberOfPebbles
- numberOfVerticesWithPebbles
- isExtendedPuzzle
- public static int[] findFirstUnsolvableConfiguration(PebbleInstance puzzle, int numberOfPebbles, int numberOfVerticesWithPebbles, boolean isExtendedPuzzle)
public static java.util.ArrayList<int[]> findAll2PPViolators(PebbleInstance puzzle, int numberOfPebbles, int numberOfVerticesWithPebbles, boolean fineThreaded)