Home

Awesome

PCP: Post’s Correspondence Problems implement in Golang

GitHub license GoDoc Build Status

What is this PCP Problem

The Post correspondence problem is an undecidable decision problem that was introduced by Emil Post in 1946.[1] Because it is simpler than the halting problem and the Entscheidungsproblem it is often used in proofs of undecidability.

(cited from wiki)

Please note it is not total solution until now.

Installation and Usage

Install

go get github.com/kkdai/pcp

Usage


package main

import (
    "github.com/kkdai/pcp"
)

func main() {
	p := PCP{}
	p.AddDomino("ab", "b")
	p.AddDomino("b", "a")
	p.AddDomino("a", "ab")

	ret, _ := p.FindSolution()
	fmt.Println("Ret=", ret)
}

Inspired By

Project52

It is one of my project 52.

License

This package is licensed under MIT license. See LICENSE for details.