FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

lfir/latin-square-validator: Reads Latin squares from a file and outputs the line number of the valid ones, optionally concurrently. · GitHub

This repository was archived by the owner on Mar 7, 2022. It is now read-only.

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

Latin Square validator

Reads Latin squares from a file (i. e. sample-inputs.txt) and outputs the line number of the valid ones, optionally concurrently.

File structure:

Line 0: Number of cases to process.

Lines 1-n: Each line has one Latin square. First integer is the square's dimension and the rest are the cell values (one for each cell), from left to right and top to bottom, separated by a single whitespace.

Usage

  1. Download project.
  2. Install dependencies with Maven (only needed to run the tests) & compile sources.
  3. In a shell execute: java /path/to/bin/Main.
  4. Enter path to inputs file & number of threads to use.

About

Reads Latin squares from a file and outputs the line number of the valid ones, optionally concurrently.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL