Polyomino.jl

Polyomino.jl - Polyomino generation and chess algorithms implemented in Julia
Author PhoenixSmaug
Popularity
3 Stars
Updated Last
5 Months Ago
Started In
February 2022

Chess Domination Problems on Polyominoes

Authors


Overview

A short presentation of all implemented functions is available by calling Polyomino.demo().

Polyomino generation

  • Poly(size::Int64): Eden model, O(n)

  • Poly(size::Int64, p::Float64): Shuffling model for uniformly random polyominoes, O(n^3)

Chess problems

  • maxRooks(p::Poly): Solves the maximal non-attacking rook set problem, O(n^4)

  • maxQueens(p::Poly): Solves the maximal non-attacking queen set problem, NP-complete

  • minRooks(p::Poly): Solves the minimal guarding rook set problem, NP-complete

  • minQueens(p::Poly): Solves the minimal guarding queen set problem, NP-complete

Polyomino analysis

  • minimalLineCover(p::Poly): Calculate minimal line cover, O(n^4)

Acknowledgements

Erika Roldan received funding from the European Union’s Horizon 2020 research and innovation program under the Marie Skłodowska-Curie grant agreement No. 754462.

License

This project is licensed under the MIT License - see LICENSE file for details. If you use this code for academic purposes, please cite the paper:

Alexis Langlois-Rémillard, Christoph Müßig, and Érika Róldan, Complexity of Chess Domination Problems, https://arxiv.org/abs/2211.05651 [math.CO], 2022.

Used By Packages

No packages found.