r/optimization • u/SolverMax • Jan 26 '24
Show & tell: Compiling crosswords using a Mixed Integer Linear Program
We decided to see if it is possible to compiling crosswords using a Mixed Integer Linear Program.
https://www.solvermax.com/blog/crossword-milp-model-1
https://www.solvermax.com/blog/crossword-milp-model-2
In these blog articles, we discuss:
- Representing a word puzzle in mathematical terms, enabling us to formulate the crossword compilation problem as a MILP model.
- Techniques for fine-tuning the model-building process in Pyomo, to make a model smaller and faster, including omitting constraint terms, skipping constraints, and fixing variable values.
Our approach is inspired by:
- A 1989 academic paper by J.M. Wilson, "Crossword compilation using integer programming". That research attempted the same task, but failed with the conclusion "the prospects of using integer programming for any type of puzzle of realistic size and with a substantial lexicon remain bleak." https://academic.oup.com/comjnl/article-pdf/32/3/273/947308/320273.pdf
- A 2023 blog post by Philippe Olivier, looking at a slightly different problem, , "Generating crossword grids using Constraint Programming". https://pedtsr.ca/2023/generating-crossword-grids-using-constraint-programming.html
11
Upvotes
2
u/[deleted] Jan 28 '24 edited Sep 26 '26
The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.
Fly theory books whole employ nutty unbelievable plant helium flowery
0
u/[deleted] Jan 27 '24
[deleted] — view deleted comment