Preview

RE to NFA to DFA, code explanation

Satisfactory Essays
Open Document
Open Document
771 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
RE to NFA to DFA, code explanation
[CS-301, THEORY OF AUTOMATA] November 24, 2014

THEORY OF AUTOMATA
Fall 2014-Project
RecM - Regular Expression Combo Machine

GROUP MEMBERS:
NAME
ROLL NO. SECTION
Ali Arslan
13i-1804
C
Burhan Khan
13i-1809
C
Shahryar Shahid 12i-0107
C

[CS-301, THEORY OF AUTOMATA] November 24, 2014

Table of Contents
Acknowledgements ....................................................................................................................... 3
Scope of the Document ................................................................................................................. 3
Code Explanation .......................................................................................................................... 4
Step 01 - Concatenating Input String ....................................................................................... 4
Step 02 - Converting and validating to Postfix String.............................................................. 4
Step 03 - Converting Postfix String to NFA ............................................................................ 4
Step 04 - Conversion to DFA ................................................................................................... 5
Step 05 - Conversion to CFG ................................................................................................... 6
Screenshots .................................................................................................................................... 7

[CS-301, THEORY OF AUTOMATA] November 24, 2014

Acknowledgements
First of all, we owe our deepest gratitude to almighty ALLAH, the Most Merciful and
Compassionate, the Most Gracious and Beneficent, for blessing us strength, health and will power to prevail and finish this work. May Allah accept this work, count it as a good deed and make it useful.
We would like to express our profound thanks and gratitude to our teachers, especially our course instructor Dr. Aftab Maroof, who provided us with

You May Also Find These Documents Helpful

  • Powerful Essays

    First and foremost, our special acknowledgement to Prof, Dr Hajah Noormala Dato' Amir Ishak, Dean, Faculty of Business Management, UNIVERSITI TEKNOLOGI MARA for her advice, interest (on the assignment of ), helpful discussion and suggesting useful references in doing this assignment. We would like to express our profound appreciation to all members of EMBA Group15A, UNIVERSITI TEKNOLOGI MARA and who have directly or indirectly assisted us in doing this assignment. Finally, we are indebted to our beloved family for their encouragement and patient.…

    • 1845 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    First of all, I would like to acknowledge the almighty Allah who has given me the capability to complete this essay.…

    • 2128 Words
    • 9 Pages
    Powerful Essays
  • Powerful Essays

    First of all, I would like to ALLAH s.w.t. for giving the strength to face life as a…

    • 3511 Words
    • 15 Pages
    Powerful Essays
  • Good Essays

    Parents in Islam!

    • 835 Words
    • 4 Pages

    All the praise and glory belongs to Allah swt who is the Sustainer and Cherisher of the worlds.…

    • 835 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Internship Report: DMCBL

    • 35073 Words
    • 435 Pages

    First of all I would like to thank immeasurable grace and profound kindness of the Almighty…

    • 35073 Words
    • 435 Pages
    Satisfactory Essays
  • Powerful Essays

    We are greatly obliged to almighty Allah, the more generous and more superior whose blessing and glory flourished our thoughts and boosted our ambitions, always giving us talented and kind teachers, affectionate parents and cooperative fellows.…

    • 6511 Words
    • 27 Pages
    Powerful Essays
  • Good Essays

    We are very much thankful to Allah Almighty, who has given us the ability to think, judge and decide in different Situations. We are also thankful to our respected teacher “Aisha Zaidi” who is guiding us and showing us the right direction where we can utilize our abilities and qualities to achieve our Goals. She teaches us in the best way using her personal experience and knowledge. She makes us think and work for the betterment of the society and not to be just individual.…

    • 1614 Words
    • 7 Pages
    Good Essays
  • Powerful Essays

    . A Note on the Number of Queries Needed to Indentify Regular Languages. Information and Control, 51, 76 87. Angluin, D.…

    • 7800 Words
    • 32 Pages
    Powerful Essays
  • Powerful Essays

    Definitely all praises be to Allah. So, first of all, we express our deep gratitude to the Almighty Allah who created and nurture us in this transitory world. We also have to put our heartfelt respect and gratitude for His kindness and help that were provided to us to complete our assigned term paper on the CASE STUDY…

    • 2706 Words
    • 11 Pages
    Powerful Essays
  • Powerful Essays

    book

    • 3087 Words
    • 30 Pages

    – JSF 2, PrimeFaces, servlets/JSP, Ajax, jQuery, Android development, Java 6 or 7 programming, custom mix of topics…

    • 3087 Words
    • 30 Pages
    Powerful Essays
  • Satisfactory Essays

    Abstract Sip

    • 293 Words
    • 2 Pages

    Most of all we would like to thank the Almighty God for his undying love and guidace at all times.…

    • 293 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Finite Automata

    • 26011 Words
    • 105 Pages

    The finite-state machine (FSM) and the pushdown automaton (PDA) enjoy a special place in computer science. The FSM has proven to be a very useful model for many practical tasks and deserves to be among the tools of every practicing computer scientist. Many simple tasks, such as interpreting the commands typed into a keyboard or running a calculator, can be modeled by finite-state machines. The PDA is a model to which one appeals when writing compilers because it captures the essential architectural features needed to parse context-free languages, languages whose structure most closely resembles that of many programming languages. In this chapter we examine the language recognition capability of FSMs and PDAs. We show that FSMs recognize exactly the regular languages, languages defined by regular expressions and generated by regular grammars. We also provide an algorithm to find a FSM that is equivalent to a given FSM but has the fewest states. We examine language recognition by PDAs and show that PDAs recognize exactly the context-free languages, languages whose grammars satisfy less stringent requirements than regular grammars. Both regular and context-free grammar types are special cases of the phrasestructure grammars that are shown in Chapter 5 to be the languages accepted by Turing machines. It is desirable not only to classify languages by the architecture of machines that recognize them but also to have tests to show that a language is not of a particular type. For this reason we establish so-called pumping lemmas whose purpose is to show how strings in one language can be elongated or “pumped up.” Pumping up may reveal that a language does not fall into a presumed language category. We also develop other properties of languages that provide mechanisms for distinguishing among language types. Because of the importance of context-free languages, we examine how they are parsed, a key step in…

    • 26011 Words
    • 105 Pages
    Powerful Essays
  • Powerful Essays

    Automata Theory

    • 3512 Words
    • 15 Pages

    Actions in bold are initiated by the entity. Otherwise, the actions are initiated by someone else and received by the specified automata…

    • 3512 Words
    • 15 Pages
    Powerful Essays
  • Powerful Essays

    Bagladesh Studies

    • 7831 Words
    • 32 Pages

    First of all I would like to be grateful to the Allah, The merciful and the benevolent that have enable me to complete this assignment.…

    • 7831 Words
    • 32 Pages
    Powerful Essays

Related Topics