vix.ing · top · new · best · stats · spec

E-Graphs as Circuits, and Optimal Extraction via Treewidth

2024/08/30 by Glenn Sun, Yihong Zhang, Sun, Glenn +3 · 2 citations
Computer Science · #Advanced Graph Theory Research #Algorithms and Data Compression #Data Structures and Algorithms (cs.DS) #FOS: Computer and information sciences #semigroups and automata theory

paper · pdf · doi:10.48550/arxiv.2408.17042

openalex publication_date 2024/08/30 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

We demonstrate a new connection between e-graphs and Boolean circuits. This allows us to adapt existing literature on circuits to easily arrive at an algorithm for optimal e-graph extraction, parameterized by treewidth, which runs in 2O(w2)poly(w, n) time, where w is the treewidth of the e-graph. Additionally, we show how the circuit view of e-graphs allows us to apply powerful simplification techniques, and we analyze a dataset of e-graphs to show that these techniques can reduce e-graph size and treewidth by 40-80% in many cases. While the core parameterized algorithm may be adapted to work directly on e-graphs, the primary value of the circuit view is in allowing the transfer of ideas from the well-established field of circuits to e-graphs.

Cited by

Related