CORGI: Efficient Pattern Matching With Quadratic Guarantees
Daniel Weitekamp

TL;DR
CORGI is a new pattern-matching algorithm that guarantees quadratic time and space complexity, enabling efficient, scalable matching in real-time AI systems without high-latency delays or memory overflows.
Contribution
We introduce CORGI, a novel pattern-matching algorithm that provides quadratic guarantees and streamlines matching by avoiding traditional conflict set storage, improving performance over RETE-based methods.
Findings
CORGI outperforms RETE-based systems in combinatorial matching tasks.
CORGI maintains quadratic time and space guarantees.
CORGI reduces latency and memory issues in real-time applications.
Abstract
Rule-based systems must solve complex matching problems within tight time constraints to be effective in real-time applications, such as planning and reactive control for AI agents, as well as low-latency relational database querying. Pattern-matching systems can encounter issues where exponential time and space are required to find matches for rules with many underconstrained variables, or which produce combinatorial intermediate partial matches (but are otherwise well-constrained). When online AI systems automatically generate rules from example-driven induction or code synthesis, they can easily produce worst-case matching patterns that slow or halt program execution by exceeding available memory. In our own work with cognitive systems that learn from example, we've found that aggressive forms of anti-unification-based generalization can easily produce these circumstances. To make…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsFormal Methods in Verification · AI-based Problem Solving and Planning · Advanced Software Engineering Methodologies
