Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mhenderson/maximal-room-squares
- Owner: MHenderson
- License: mit
- Created: 2022-10-03T07:52:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-21T17:23:52.000Z (6 months ago)
- Last Synced: 2024-10-12T21:45:43.515Z (3 months ago)
- Topics: combinatorics, latin-squares, room-squares, rstats
- Language: R
- Homepage: https://mjhdata.netlify.app/blog/2023-05-04-generating-examples-of-maximal-room-squares-in-r/
- Size: 1.13 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE.md
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. .