Git Product home page Git Product logo

regular-expression-to-nfa-to-dfa-transition-'s Introduction

Regular-Expression-to-NFA-to-DFA-transition-

This file takes regular expression and string as input and convert RE into equivalent NFA and NFA into equivalent DFA. Then substring is taken and compared to DFA whether it is accepted by that DFA or not.

Example:

  1. RE ((a)|(((a)|((b)(a)))*)) \ a | (a | ba)*

    string: abbbbabababb

    output: $a@b@b@b$bababa@b@b#

  2. RE (((((b)*)(a))*)((a)*)) \ (b*a)a

    string: baabaaaabbaab

    output: $baabaaaabbaa@b#

  3. RE ((((b)|((a)(b)))*)|((((b)|((a)(b)))*)(a))) \ (b | ab)* | (b |ab)*a

    string: abbaabbaaabba

    output: $abba$abba$a$abba#

  4. ((((((b)*)(a))((b)*))(a))((b)*)) \babab*

    string: baaabbaabab

    output: $baa$abba$abab#

5. (((((a)|(b))*)(((b)(a))(b)))(((a)|(b))*)) \(a|b)bab(a|b)

string: bbaabaabaa

output: @b@b@a@a@b@a@a@b@a@a#

  1. (((((a)|(b))*)((b)(a)))|((a)|(b))) \((a|b)*ba)|(a|b)

    string: baababaab

    output: $baababa$a$b#

regular-expression-to-nfa-to-dfa-transition-'s People

Contributors

rahuljauhari3 avatar maverik121 avatar

Watchers

 avatar

regular-expression-to-nfa-to-dfa-transition-'s Issues

error when running in VS

when I running the CPP code , it shows two error in line349+499, "Expressions must contain constant values"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.