public class CrossWord extends ExampleFD
This program uses problem instances and dictionary obtained from Hadrien Cambazard.
Modifier and Type | Class and Description |
---|---|
class |
CrossWord.PrintListener<T extends Var>
It is a simple print listener to print every tenth solution encountered.
|
Constructor and Description |
---|
CrossWord() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
It executes the program to create a model and solve
crossword problem.
|
void |
model()
model()
|
void |
printSolution(char[][] crossWordTemplate)
It prints a variable crosswordTemplate.
|
void |
readDictionaryFromFile(String file,
List<Integer> wordSizes)
It reads a dictionary.
|
boolean |
searchAllAtOnceNoRecord()
It searches for all solutions.
|
creditSearch, getSearch, getSearchVariables, getStore, printMatrix, search, searchAllAtOnce, searchAllOptimal, searchLDS, searchMasterSlave, searchMaxRegretOptimal, searchMiddle, searchMostConstrainedStatic, searchOptimal, searchSmallestDomain, searchSmallestMedian, searchSmallestMiddle, searchSmallestMin, searchWeightedDegree, searchWithMaxRegret, searchWithRestarts, shavingSearch
public void printSolution(char[][] crossWordTemplate)
crossWordTemplate
- the templatepublic void readDictionaryFromFile(String file, List<Integer> wordSizes)
file
- filename containing dictionarywordSizes
- size of the wordspublic boolean searchAllAtOnceNoRecord()
public static void main(String[] args)
args
- no arguments used.Copyright © 2022. All rights reserved.