{"title":"E-Graphs as Circuits, and Optimal Extraction via Treewidth","authors":"Glenn Sun, Yihong Zhang, Haobin Ni","doi":"arxiv-2408.17042","DOIUrl":null,"url":null,"abstract":"We solve the optimal extraction problem for e-graphs by first showing a\nconnection between e-graphs and cyclic monotone Boolean circuits, then solving\nthe weighted satisfiability problem for such circuits. The solution is a\nparameterized algorithm based on treewidth. Additionally, we show how the\ncircuit view of e-graphs allows us to apply simplification techniques that are\nnot possible when operating directly on e-graphs. While the core parameterized\nalgorithm may be adapted to work directly on e-graphs, the simplification\nresults show why the circuit view is helpful.","PeriodicalId":501525,"journal":{"name":"arXiv - CS - Data Structures and Algorithms","volume":"13 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-08-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Data Structures and Algorithms","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2408.17042","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
We solve the optimal extraction problem for e-graphs by first showing a
connection between e-graphs and cyclic monotone Boolean circuits, then solving
the weighted satisfiability problem for such circuits. The solution is a
parameterized algorithm based on treewidth. Additionally, we show how the
circuit view of e-graphs allows us to apply simplification techniques that are
not possible when operating directly on e-graphs. While the core parameterized
algorithm may be adapted to work directly on e-graphs, the simplification
results show why the circuit view is helpful.