Skip to content

Greedy superpermutations in sed using the city name game algorithm.

Notifications You must be signed in to change notification settings

Circiter/superpermutations-in-sed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

superpermutations-in-sed

A sed script to find a superpermutation of a given alphabet. It uses a greedy algorithm closely resembling "The City Names Game", but taking the permutations of some alphabet instead of cities and matching, if needed, more than one letter in cities' names.

Usage:

echo <alphabet> | ./superpermutations.sed
# E.g.:
echo xyz | ./superpermutations.sed
# Prints xyzxyxzyx.

See superpermutations.sed for details.

References:

About

Greedy superpermutations in sed using the city name game algorithm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages