Skip to content

koeppl/galoisword

 
 

Repository files navigation

Algorithms for Galois Words: Detection, Factorization, and Rotation

This repository provides the following programs:

  • galois_factorization.x: computes the Galois factorization of the input
  • is_galois.x: checks whether the input is a Galois word (output is '1' for Galois, and '0' otherwise)
  • galois_rotation.x: computes the Galois rotation of a primitive input

The input is read from standard input (stdin).

Example Usage:

echo -n 'aba' | ./is_galois.x
echo -n 'baa' | ./is_galois.x
echo -n 'baa' | ./galois_rotation.x
echo -n 'baa' | ./galois_factorization.x

Per default, all programs check their output. Compile with flag NDEBUG to omit these checks.

About

Algorithms for Galois Words

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 92.4%
  • Shell 4.9%
  • Makefile 2.7%