Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

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

Notifications You must be signed in to change notification settings

lfir/latin-square-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Languages