{"id":18081177,"url":"https://github.com/thundergolfer/sudkamp-langs-machines-java","last_synced_at":"2025-07-04T08:06:24.550Z","repository":{"id":73463576,"uuid":"60758124","full_name":"thundergolfer/sudkamp-langs-machines-java","owner":"thundergolfer","description":"[WIP] Algorithms from Sudkamps' Languages and Machines - implemented in Java","archived":false,"fork":false,"pushed_at":"2017-04-25T06:43:05.000Z","size":2182,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-02T04:09:38.738Z","etag":null,"topics":["algorithm","computer-science","computer-science-algorithms","textbook"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thundergolfer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-06-09T07:50:16.000Z","updated_at":"2017-04-25T04:49:47.000Z","dependencies_parsed_at":"2023-06-30T18:03:56.438Z","dependency_job_id":null,"html_url":"https://github.com/thundergolfer/sudkamp-langs-machines-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thundergolfer/sudkamp-langs-machines-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundergolfer%2Fsudkamp-langs-machines-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundergolfer%2Fsudkamp-langs-machines-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundergolfer%2Fsudkamp-langs-machines-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundergolfer%2Fsudkamp-langs-machines-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thundergolfer","download_url":"https://codeload.github.com/thundergolfer/sudkamp-langs-machines-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thundergolfer%2Fsudkamp-langs-machines-java/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263472277,"owners_count":23471812,"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":["algorithm","computer-science","computer-science-algorithms","textbook"],"created_at":"2024-10-31T13:13:21.301Z","updated_at":"2025-07-04T08:06:24.530Z","avatar_url":"https://github.com/thundergolfer.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"images/repo_header_java.png\"\u003e\n\u003c/p\u003e\n\n# Sudkamp Languages And Machines - Java [![Issue Count](https://codeclimate.com/github/thundergolfer/sudkamp-langs-machines-java/badges/issue_count.svg)](https://codeclimate.com/github/thundergolfer/sudkamp-langs-machines-java)\n\nAll the algorithms from Sudkamp's [Languages and Machines](http://www.amazon.com/Languages-Machines-Introduction-Computer-Science/dp/0321322215) implemented in Java.\n\n## Contributing\n#### Completion Status :    **25 %**\n\nYou are welcome to fork this repo in order to complete unimplemented algorithms or to improve on the existing ones. Please try to stick as close to the pseudo-code from the book.\n\n### Index of Algorithms\n\n| **Page** | **Number** | **Name (in 3\u003csup\u003erd\u003c/sup\u003e edition)** | **Name (in repository)** | **File**   |\n|:----------|:-----------|:-------------------------------------|:-------------------------|:-----------|\n| 108       | 4.2.1      | Construction of Set of Nullable Vars | nullableVarsSet()        | [ContextFreeGrammar.java](src\\main\\java\\grammars\\ContextFreeGrammar.java) |\n| 114\t    | 4.3.1      | Construction of the Set CHAIN(A)     | chain( A ) | [ContextFreeGrammar.java](src\\main\\java\\grammars\\ContextFreeGrammar.java)|\n| 117       | 4.4.2      | Constr. of Set of Vars that Derive Terminal Strings | constructSetOfVarsThatDeriveTerminalStrings() | [ContextFreeGrammar.java](src\\main\\java\\grammars\\ContextFreeGrammar.java)|\n| 119       | 4.4.4      | Contruction of Set of Reachable Vars. | constructSetofReachableVars() | [ContextFreeGrammar.java](src\\main\\java\\grammars\\ContextFreeGrammar.java)|\n| 126       | 4.6.1      | CYK Algorithm | CYK.testMembership() | [CYK.java](src\\main\\java\\parsing\\CYK.java)|\n| 172       | 5.6.3      | Contruction of DM, a DFA Equiv. to NFA M | | |\n| 179       | 5.7.2      | Determination of Equivalent States of DFA | | |\n| 194       | 6.2.2      | Construction of a Regular Expression from a Finite Automaton | constructFromFiniteAutomaton() | [RegExp.java](src\\main\\java\\RegExp.java)|\n| 543       | 17.4.3     | Recursive Simulation of NonDeterministic Turing Machine | | |\n| 558       | 18.2.1     | Breadth-First Top-Down Parser | | |\n| 564       | 18.4.1     | Breadth-First Bottom-Up Parser |  | |\n| 581       | 19.4.1     | Construction of FIRST\u003csub\u003ek\u003c/sup\u003e Sets | | |\n| 583       | 19.5.1     | Construction of FOLLOW\u003csub\u003ek\u003c/sup\u003e Sets | | |\n| 588       | 19.7.1     | Deterministic Parser for a Strong LL(k) Grammar | | |\n| 591       | 19.8.3     | Deterministic Parser for an LL(k) Grammar | | |\n| 600       | 20.2.1     | Parser for an LR(0) Grammar | | |\n| 604       | 20.3.3     | Parser Utilizing the Deterministic LR(0) Machine | | |\n| 618       | 20.5.4     | Parser for an LR(1) Grammar |  | |\n\n\n### Index Of Related Algorithms Not Provided In The Textbook\n\n| **Name**                      | **Name (In Repository)**        | **File**         |\n|:-------------------------------|:---------------------------------|:---------------|\n| Elimination of Chain Rules     | removeChainRules()               | [ContextFreeGrammar.java](src\\main\\java\\grammars\\ContextFreeGrammar.java) |\n| Remove Recursive Start Symbol  | removeRecursiveStartSymbol()     | [ContextFreeGrammar.java](src\\main\\java\\grammars\\ContextFreeGrammar.java) |\n\n## License\n\n[![CC0](http://i.creativecommons.org/p/zero/1.0/88x31.png)](http://creativecommons.org/publicdomain/zero/1.0/)\n\nTo the extent possible under law, [Thundergolfer](http://www.jonathonbelotti.com) has waived all copyright and related or neighboring rights to this work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundergolfer%2Fsudkamp-langs-machines-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthundergolfer%2Fsudkamp-langs-machines-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthundergolfer%2Fsudkamp-langs-machines-java/lists"}