blenderskool / vyaakaran

📜 Visualize formal languages and automata
https://vyaakaran.now.sh
MIT License
35 stars 5 forks source link

Enhancing Regular Language Parsing: NFA to DFA, State Minimization, and Optimization Algorithms #21

Open vaishakhRaveendran opened 5 days ago

vaishakhRaveendran commented 5 days ago

Description:

We propose the following enhancements to improve the efficiency of regular language processing:


blenderskool commented 5 days ago

@vaishakhRaveendran How would the forward reachability changes be different from the current implementation?

vaishakhRaveendran commented 5 days ago

We're planning to use a breadth-first search (BFS) starting from the initial state 'S' to explore all the reachable nodes in the finite automaton. Yes, it is kind of similar to the current implementation. It's an experiment we're trying out. We've noticed it can be a lot faster with parallelization for larger graphs. We're aiming to build this if we can.

blenderskool commented 4 days ago

@vaishakhRaveendran Sure, do take a shot at it. I would recommend exploring the BFS approach if you have time. Other enhancements are actual extensions to the project, while this may just be a performance improvement. Also, do measure the computation times before / after the forward reachability changes.