{"id":16733193,"url":"https://github.com/msakai/haskell-decision-diagrams","last_synced_at":"2025-03-23T15:31:01.312Z","repository":{"id":45953490,"uuid":"417780560","full_name":"msakai/haskell-decision-diagrams","owner":"msakai","description":"Binary decision diagrams (BDD) and Zero-Suppressed Binary Decision Diagrams (ZDD) in Haskell","archived":false,"fork":false,"pushed_at":"2024-11-26T03:05:30.000Z","size":218,"stargazers_count":13,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T21:50:59.847Z","etag":null,"topics":["bdd","binary-decision-diagram","binary-decision-diagrams","data-structures","haskell","zdd"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/decision-diagrams","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msakai.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","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":"2021-10-16T09:32:44.000Z","updated_at":"2024-11-26T03:05:34.000Z","dependencies_parsed_at":"2024-10-28T16:34:30.354Z","dependency_job_id":"ca5b3eda-2cbb-4e68-a208-d3d882c412a0","html_url":"https://github.com/msakai/haskell-decision-diagrams","commit_stats":{"total_commits":172,"total_committers":1,"mean_commits":172.0,"dds":0.0,"last_synced_commit":"0a270518650a8e9ac2484027fc055cf0ce322fe7"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msakai%2Fhaskell-decision-diagrams","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msakai%2Fhaskell-decision-diagrams/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msakai%2Fhaskell-decision-diagrams/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msakai%2Fhaskell-decision-diagrams/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msakai","download_url":"https://codeload.github.com/msakai/haskell-decision-diagrams/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245122698,"owners_count":20564358,"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":["bdd","binary-decision-diagram","binary-decision-diagrams","data-structures","haskell","zdd"],"created_at":"2024-10-12T23:48:59.812Z","updated_at":"2025-03-23T15:31:01.028Z","avatar_url":"https://github.com/msakai.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# decision-diagrams\n\nHackage:\n[![Hackage](https://img.shields.io/hackage/v/decision-diagrams.svg)](https://hackage.haskell.org/package/decision-diagrams)\n[![Hackage Deps](https://img.shields.io/hackage-deps/v/decision-diagrams.svg)](https://packdeps.haskellers.com/feed?needle=decision-diagrams)\n\nDev:\n[![Build Status](https://github.com/msakai/haskell-decision-diagrams/actions/workflows/build.yaml/badge.svg)](https://github.com/msakai/haskell-decision-diagrams/actions/workflows/build.yaml)\n[![Coverage Status](https://coveralls.io/repos/msakai/haskell-decision-diagrams/badge.svg)](https://coveralls.io/r/msakai/haskell-decision-diagrams)\n\n[Binary Decision Diagrams (BDD)](https://en.wikipedia.org/wiki/Binary_decision_diagram) and [Zero-suppressed Binary Decision Diagrams (ZDD)](https://en.wikipedia.org/wiki/Zero-suppressed_decision_diagram) implementation in Haskell.\n\nBDD is a data structure suitable for representing boolean functions (can be thought as a compressed representation of truth tables) and many operations on boolean functions can be performed efficiently.  ZDD is a variant of BDD suitable for representing (sparse) families of sets compactly.\n\nBDD/ZDD uses hash-consing for compact representation and efficient comparison, and we use [intern](https://hackage.haskell.org/package/intern) package for implementing hash-consing.\n\n## Comparison with other BDD packages for Haskell\n\n|Package name|Repository|License|BDD|ZDD|Style|Implementation|Hash-consing / Fast equality test|Dynamic variable reordering|\n|------------|----------|-------|---|---|-----|--------------|---------------------------------|---------------------------|\n|[decision-diagrams](https://hackage.haskell.org/package/decision-diagrams) (this package)|[GitHub](https://github.com/msakai/haskell-decision-diagrams/)|BSD|✔️|✔️|pure|pure Haskell|✔️|-|\n|[zsdd](https://hackage.haskell.org/package/zsdd)|[GitHub](https://github.com/eddiejones2108/decision-diagrams) (deleted?)|BSD|✔️|✔️|monadic|pure Haskell|✔️|-|\n|[obdd](https://hackage.haskell.org/package/obdd)|[GitHub](https://github.com/jwaldmann/haskell-obdd)|GPL|✔️|-|pure|pure Haskell|-|-|\n|[HasCacBDD](https://hackage.haskell.org/package/HasCacBDD)|[GitHub](https://github.com/m4lvin/HasCacBDD)|GPL|✔️|-|pure|FFI|✔️|-|\n|[hBDD](https://hackage.haskell.org/package/hBDD) ([hBDD-CUDD](https://hackage.haskell.org/package/hBDD-CUDD), [hBDD-CMUBDD](https://hackage.haskell.org/package/hBDD-CMUBDD))|[GitHub](https://github.com/peteg/hBDD)|LGPL|✔️|-|pure|FFI|✔️|✔️|\n|[cudd](https://hackage.haskell.org/package/cudd)|[GitHub](https://github.com/adamwalker/haskell_cudd)|BSD|✔️|-|both pure\\*1 and monadic|FFI|✔️|✔️|\n\n\\*1: `cudd`'s pure interface is different from normal Haskell data types (like ones in the [containers](https://hackage.haskell.org/package/containers) package, for example) because it requires `DDManager` argument.\n\nPlease feel free to make a pull request for addition or correction to the comparison.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsakai%2Fhaskell-decision-diagrams","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsakai%2Fhaskell-decision-diagrams","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsakai%2Fhaskell-decision-diagrams/lists"}