PCPL-0.1.0: Post Correspondence Programming Language

Safe HaskellNone

Language.PCPL.Solver

Description

A simple PCP solver. There is a lot of potential for optimization here.

Synopsis

Documentation

type PCP = [(Int, Domino)]Source

PCP instance

data Node Source

Node in the search tree

Constructors

Node [Int] Configuration 

data Configuration Source

The unmatched portion of an intermediate PCP state. The paper Tackling Post's Correspondence Problem calls this a configuration.

Constructors

Top [Symbol]

Portion of the top string that extends past the bottom one

Bottom [Symbol]

Portion of the bottom string that extends past the top one

search :: PCP -> [Node] -> [Int]Source

Find a solution using BFS.

updateConf :: Configuration -> Domino -> Maybe ConfigurationSource

Try to update the Configuration with the given Domino.