Skip to content

peppermintpatty5/regex-eq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

regex-eq

CI Status

Determine if two regular expressions are equivalent.

Background

In theory, the equivalence problem for regular expressions is Turing-decidable.

  1. Convert both regular expressions into equivalent NFAs
  2. Convert both of these NFAs into equivalent DFAs
  3. Construct a new DFA such that its language is the symmetric difference of the languages of the two DFAs
  4. Check if none of the reachable states in the newly constructed DFA are accepting states

The primary purpose of this program is to demonstrate computational theory as it applies to regular languages; any regard for efficiency is secondary.

About

Determine if two regular expressions are equivalent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages