{"id":17259477,"url":"https://github.com/muneeb706/prolog-programs","last_synced_at":"2026-01-06T21:07:57.186Z","repository":{"id":154490558,"uuid":"251436810","full_name":"muneeb706/Prolog-Programs","owner":"muneeb706","description":"Solutions of Logic in Computer Science problems in Proloh.","archived":false,"fork":false,"pushed_at":"2020-04-02T13:12:09.000Z","size":1238,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T10:42:13.453Z","etag":null,"topics":["logic-in-computer-science","logic-programming","prolog-programming-language"],"latest_commit_sha":null,"homepage":null,"language":"Prolog","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/muneeb706.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}},"created_at":"2020-03-30T21:52:36.000Z","updated_at":"2020-04-02T13:12:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"1baa02fb-3f90-499c-b9f0-fd1782093cf6","html_url":"https://github.com/muneeb706/Prolog-Programs","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/muneeb706%2FProlog-Programs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muneeb706%2FProlog-Programs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muneeb706%2FProlog-Programs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muneeb706%2FProlog-Programs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muneeb706","download_url":"https://codeload.github.com/muneeb706/Prolog-Programs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245623557,"owners_count":20645787,"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":["logic-in-computer-science","logic-programming","prolog-programming-language"],"created_at":"2024-10-15T07:45:12.272Z","updated_at":"2026-01-06T21:07:57.143Z","avatar_url":"https://github.com/muneeb706.png","language":"Prolog","readme":"# Prolog Programs\nSolutions of Logic in Computer Science problems in Prolog. Following are descriptions of implemented programs\n\n## Insertion Sort: \nImplemention of the insertion sort, isort(X, Y), where X is a list of integers and Y is the result of sorting X.\n\n## Selection Sort:\nImplemention of the selection sort, ssort(X, Y), where X is a list of integers and Y is the result of sorting X.\n\n## Propostional Formula to CNF (Conjunctive Normal Form):\nImplementation of a Prolog program which converts a propositional formula into CNF. That is, provide an implementation of transCNF(X, Y) in Prolog, where X is a propositional formula and Y is the CNF equivalent formula to X.\n\n## Generate Prolog Clauses:\nSuppose the program M is written as a fact in Prolog format:\n\nprogramM(\n\n  [l(1, sub1(x, 5)),\n\n   l(2, add1(y)),\n\n   l(3, add1(y)),\n\n   l(4, goto(1)),\n\n   l(5, sub1(y, 8)),\n\n   l(6, add1(x)),\n\n   l(7, goto(5)),\n\n   l(8, end)]).\n\nImplementation of a Proglog program which takes the program M as input, and generates the clauses in Prolog format for the negation of the formula SM as follows:\nprob3 :- programM(X), generate(X). \nwhere generate(X) will print out the clauses in Prolog format. Output can be compared with the prolog program in double.pl.\n\n\n\n[Instructions to Run prolog program](https://www.swi-prolog.org/man/quickstart.html)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuneeb706%2Fprolog-programs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuneeb706%2Fprolog-programs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuneeb706%2Fprolog-programs/lists"}