Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mhenderson/maximal-room-squares

Generate maximal partial Room squares.
https://github.com/mhenderson/maximal-room-squares

combinatorics latin-squares room-squares rstats

Last synced: about 2 months ago
JSON representation

Generate maximal partial Room squares.

Awesome Lists containing this project

README

        

[![DOI](https://zenodo.org/badge/544776750.svg)](https://zenodo.org/badge/latestdoi/544776750)

# Generating Maximal Partial Room Squares in R

Two different greedy procedures for building maximal partial Room squares in R inspired by Meszka and Rosa (2021) using functions from the [wallis](https://mhenderson.r-universe.dev/wallis) R package.

Tested on R4.4.0 with renv 1.0.7, targets 1.7.1 and wallis 0.0.0.9006.

To create the plots below, first install `renv` and install package dependencies:
```
install.packages("renv")
renv::restore()
```

Now run the `targets` pipeline:
```
targets::tar_make()
```

## greedy1

See `R/greedy1.R`.

![](plots/greedy1-examples1-plot.png)

![](plots/greedy1-examples2-plot.png)

## greedy2

See `R/greedy2.R`.

![](plots/greedy2-examples1-plot.png)

![](plots/greedy2-examples2-plot.png)

# References

Meszka, Mariusz, and Alexander Rosa. 2021. “Maximal Partial Room Squares.” *Journal of Combinatorial Designs* 29 (7): 482–501. .