{"id":18655740,"url":"https://github.com/hayd1n/cs2022301-robdd-generation","last_synced_at":"2025-11-05T19:30:30.530Z","repository":{"id":198059328,"uuid":"689019929","full_name":"hayd1n/CS2022301-ROBDD-Generation","owner":"hayd1n","description":"112.1【資工系】CS2022301 數位系統設計 Digital System Design Project01 ROBDD Generation","archived":false,"fork":false,"pushed_at":"2023-10-03T17:30:41.000Z","size":1900,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T14:40:43.251Z","etag":null,"topics":["ntust"],"latest_commit_sha":null,"homepage":"","language":"C++","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/hayd1n.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}},"created_at":"2023-09-08T15:52:29.000Z","updated_at":"2024-07-07T01:19:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f7d5975-720e-4c7d-a58e-3e7cbbb208e3","html_url":"https://github.com/hayd1n/CS2022301-ROBDD-Generation","commit_stats":null,"previous_names":["crt-hao/cs2022301-robdd-generation","hayd1n/cs2022301-robdd-generation"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayd1n%2FCS2022301-ROBDD-Generation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayd1n%2FCS2022301-ROBDD-Generation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayd1n%2FCS2022301-ROBDD-Generation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayd1n%2FCS2022301-ROBDD-Generation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hayd1n","download_url":"https://codeload.github.com/hayd1n/CS2022301-ROBDD-Generation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239470552,"owners_count":19644149,"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":["ntust"],"created_at":"2024-11-07T07:19:54.715Z","updated_at":"2025-11-05T19:30:30.481Z","avatar_url":"https://github.com/hayd1n.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project 1 ROBDD Generation\n\n資訊工程系 二年級 乙班 張皓鈞 B11030202\n\n\n\n## Build\n\nUse CMake as build tool\n\n```shell\nmkdir build\ncd build\ncmake -DCMAKE_BUILD_TYPE=Release ..\ncmake --build .\n```\n\n\n\n## Test Platform\n\n![neofetch](./assets/neofetch.png)\n\n### macOS\n\n```\nDarwin ip139-200.wlan.ntust.edu.tw 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 arm64\n```\n\n### Apple Clang\n\n```\nApple clang version 14.0.3 (clang-1403.0.22.14.1)\n```\n\n### Graphviz\n\n```\ndot - graphviz version 8.1.0 (20230707.0739)\n```\n\n\n\n## Test Case\n\n### Case 1 (4 variables)\n\n$$\nf(p, q, r, s) = p \\land q \\land r \\land s + p \\land q \\land \\neg r \\land s + p \\land \\neg q \\land r \\land s\n$$\n\n#### Input PLA\n\n[examples/case7/input.pla](../../examples/case7/input.pla)\n\n```pla\n.i 4\n.o 1\n.ilb p q r s\n.ob f\n.p 3\n1111 1\n1101 1\n1011 1\n.e\n```\n\n#### Output DOT\n\n```dot\ndigraph ROBDD{\n        {rank=same 2}\n        {rank=same 4}\n        {rank=same 7}\n        {rank=same 14}\n\n        0[label=0, shape=box]\n        1[label=1, shape=box]\n        2[label=\"p\"]\n        4[label=\"q\"]\n        7[label=\"r\"]\n        14[label=\"s\"]\n\n        2-\u003e4[label=\"1\", style=solid]\n        2-\u003e0[label=\"0\", style=dotted]\n        4-\u003e14[label=\"1\", style=solid]\n        4-\u003e7[label=\"0\", style=dotted]\n        7-\u003e14[label=\"1\", style=solid]\n        7-\u003e0[label=\"0\", style=dotted]\n        14-\u003e1[label=\"1\", style=solid]\n        14-\u003e0[label=\"0\", style=dotted]\n}\n```\n\n#### Generated PNG\n\n![case7](./assets/case7.png)\n\n\n\n### Case 2 (5 variables)\n\n$$\nf(w, x, y, z, u) = \\neg w \\land x \\land y \\land z \\land u + x \\land y \\land \\neg z \\land u + \\neg w \\land x \\land \\neg y \\land z \\land u + w \\land x \\land y \\land \\neg z \\land \\neg u\n$$\n\n#### Input PLA\n\n[examples/case8/input.pla](../../examples/case8/input.pla)\n\n```pla\n.i 5\n.o 1\n.ilb w x y z u\n.ob f\n.p 4\n01111 1\n-1101 1\n01011 1\n11100 1\n.e\n```\n\n#### Output DOT\n\n```dot\ndigraph ROBDD{\n        {rank=same 2}\n        {rank=same 3 4}\n        {rank=same 6 8}\n        {rank=same 11 16}\n        {rank=same 22}\n\n        0[label=0, shape=box]\n        1[label=1, shape=box]\n        2[label=\"w\"]\n        3[label=\"x\"]\n        4[label=\"x\"]\n        6[label=\"y\"]\n        8[label=\"y\"]\n        11[label=\"z\"]\n        16[label=\"z\"]\n        22[label=\"u\"]\n\n        2-\u003e4[label=\"1\", style=solid]\n        2-\u003e3[label=\"0\", style=dotted]\n        3-\u003e6[label=\"1\", style=solid]\n        3-\u003e0[label=\"0\", style=dotted]\n        4-\u003e8[label=\"1\", style=solid]\n        4-\u003e0[label=\"0\", style=dotted]\n        6-\u003e22[label=\"1\", style=solid]\n        6-\u003e11[label=\"0\", style=dotted]\n        8-\u003e16[label=\"1\", style=solid]\n        8-\u003e0[label=\"0\", style=dotted]\n        11-\u003e22[label=\"1\", style=solid]\n        11-\u003e0[label=\"0\", style=dotted]\n        16-\u003e0[label=\"1\", style=solid]\n        16-\u003e1[label=\"0\", style=dotted]\n        22-\u003e1[label=\"1\", style=solid]\n        22-\u003e0[label=\"0\", style=dotted]\n}\n```\n\n#### Generated PNG\n\n![case8](./assets/case8.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhayd1n%2Fcs2022301-robdd-generation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhayd1n%2Fcs2022301-robdd-generation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhayd1n%2Fcs2022301-robdd-generation/lists"}