{"id":18583831,"url":"https://github.com/timnn/pcp","last_synced_at":"2025-05-16T05:10:40.922Z","repository":{"id":57653860,"uuid":"46121617","full_name":"TimNN/pcp","owner":"TimNN","description":"A brute-force pcp solution searcher","archived":false,"fork":false,"pushed_at":"2016-09-18T20:17:00.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-09T03:51:52.414Z","etag":null,"topics":["pcp","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TimNN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-13T12:48:26.000Z","updated_at":"2016-04-21T07:49:08.000Z","dependencies_parsed_at":"2022-08-26T06:41:21.423Z","dependency_job_id":null,"html_url":"https://github.com/TimNN/pcp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimNN%2Fpcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimNN%2Fpcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimNN%2Fpcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimNN%2Fpcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimNN","download_url":"https://codeload.github.com/TimNN/pcp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471049,"owners_count":22076587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pcp","rust"],"created_at":"2024-11-07T00:24:58.257Z","updated_at":"2025-05-16T05:10:40.903Z","avatar_url":"https://github.com/TimNN.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pcp, a brute-force pcp solution searcher\n\nA rust implementation of a brute-force pcp solution searcher. A problem is read from standard input or a file specified on the command line (see [Usage](#usage) for more details).\n\nA problem file consists of any number of (utf-8 encoded) lines, each non-empty line representing a pair of words, consisting of two whitespace-separated fields, each of which denotes one word of the pair.\n\nWords may consist of any number of non-whitespace unicode characters, each unique character will be replaced by a unique fixed-width bit pattern. The total number of bits per word must not exceed 56.\n\nSee the `*.pcp` files in the root directory for example problem specifications. The `wiki*.pcp` files were taken from the [german wikipedia](https://de.wikipedia.org/wiki/Postsches_Korrespondenzproblem), ~~`homework.pcp` was taken from an exercise of my theoretical computer science class~~ (`homework.pcp` has been since first publishing this repo removed).\n\n## Usage\n\n``` plain\npcp 0.1.0\nTim Neumann \u003cmail@timnn.me\u003e\nA brute-force pcp solution searcher\n\nUSAGE:\n\tpcp [FLAGS] [OPTIONS]\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -f \u003cfile\u003e            Read the problem from the specified file instead of stdin\n    -n \u003cmax_iter\u003e        The maximum number of iterations to perform\n```\n\n## Example Run\n\n``` plain\npcp \u003c homework.pcp\nFound 2 symbols.\nUsing 1 bit(s) to encode each symbol.\nRunning with 8 threads.\nNow starting iteration 183\nNow starting iteration 197\nNow starting iteration 207\nNow starting iteration 213\nsuccess! n: 216, s: 396\n\n-- Statistics --\nchunk size:                        64 MB\nchunks allocated:                  39\nchunks deallocated:                 0\nchunks total memory:              2.4 GB\nchunks in current working set:     32\npairs applied:                    1.1 billion\npairs applied successfully:     403.4 million\nnumber of iterations:             217\ntotal iteration time:             5.7 seconds\noperations:                     196.0 thousand ops/ms\n```\n\n## Installation\n\nYou need a recent nightly version of rust to compile this crate. You can then install it using `cargo install pcp`. If you install from source make sure to compile with `--release`!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimnn%2Fpcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimnn%2Fpcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimnn%2Fpcp/lists"}