Skip to content
/ pcp Public

Post’s Correspondence Problems simple solver implement in Golang

Notifications You must be signed in to change notification settings

kkdai/pcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Post’s Correspondence Problems simple solver implement in Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages