background
logo
ArxivPaperAI

A Program That Simplifies Regular Expressions (Tool paper)

Author:
Baudouin Le Charlier
Keyword:
Computer Science, Symbolic Computation, Symbolic Computation (cs.SC)
journal:
--
date:
2023-07-11 16:00:00
Abstract
This paper presents the main features of a system that aims to transform regular expressions into shorter equivalent expressions. The system is also capable of computing other operations useful for simplification, such as checking the inclusion of regular languages. The main novelty of this work is that it combines known but distinct ways of representing regular languages into a global unified data structure that makes the operations more efficient. In addition, representations of regular languages are dynamically reduced as operations are performed on them. Expressions are normalized and represented by a unique identifier (an integer). Expressions found to be equivalent (i.e. denoting the same regular language) are grouped into equivalence classes from which a shortest representative is chosen. The article briefly describes the main algorithms working on the global data structure. Some of them are direct adaptations of well-known algorithms, but most of them incorporate new ideas, which are really necessary to make the system efficient. Finally, to show its usefulness, the system is applied to some examples from the literature. Statistics on randomly generated sets of expressions are also provided.
PDF: A Program That Simplifies Regular Expressions (Tool paper).pdf
Empowered by ChatGPT