Chomsky normal form and Greibach normal form in hindi
Unit 3
Grammars
Topic 6 : Chomsky normal form and Greibach normal form in hindi
Chomsky normal form :
formal language theory में, एक context-free grammar, G, को Chomsky normal form में कहा जाता है यदि इसके सभी production rules form के हैं :
A → BC, or
A → a, or
S → ε,
जहाँ A, B, और C nonterminal symbols हैं, letter a एक terminal symbol (एक symbol जो एक constant value को represents करता है), S start symbol है, और ε empty string को दर्शाता है। इसके अलावा, न तो B और न ही C start symbol हो सकता है, और third production rule केवल तभी appear हो सकता है |
Chomsky normal form में प्रत्येक grammar context-free है, और इसके conversely , प्रत्येक context-free grammar को एक equivalent में बदला जा सकता है, जो Chomsky normal form में है और इसकी original grammar के आकार के square से बड़ा नहीं है।
Greibach normal form :
GNF इसे Greibach normal form भी कहा जाता है । एक CFG (context free grammar) GNF (Greibach normal form) में है यदि सभी production rules निम्न में से किसी एक कारण को पूरा करते हैं :
- एक start symbol generating ε । उदाहरण के लिए, S → ε।
- एक non-terminal एक terminal generate करता है। उदाहरण के लिए, A → a.
- एक non-terminal एक terminal generate करता है जो किसी भी number में non-terminal follow किया जाता है। उदाहरण के लिए, S → aASB
For example:
- G1 = {S → aAB | aB, A → aA| a, B → bB | b}
- G2 = {S → aAB | aB, A → aA | ε, B → bB | ε}
Related Post
- What is Automata machine in hindi | Examples of automata machines
- Finite Automata as a language acceptor and translator | Deterministic Finite Automata (DFA) | Nondeterministic Finite Automata(NFA) in Hindi
- What is Moore machines and mealy machines in Hindi
- What is Turing machine (composite machine) in toc in hindi
- Conversion from Mealy to Moore and vice versa in Hindi
- Non Deterministic Finite Automata in Hindi (NDFA)
- Deterministic Finite Automaton in Hindi (DFA) | Deterministic Finite-State Machine (DFSM)
- Conversion of NDFA to DFA in Hindi
- Arden's Theorem in TOC in Hindi
- Minimization of DFA in Hindi (Minimization of Automata Machines)
- Regular Expression in TOC in Hindi
- Union process in DFA | What is Union process in TOC
- Intersection of Finite Automata in Hindi
- Properties of Context Free Languages Hindi
- Two-way Deterministic Finite Automaton (2DFA) in Hindi
- Types of Grammar in TOC in Hindi | Chomsky Hierarchy in Theory of Computation
- Derivation Tree in TOC in Hindi
- Ambiguity in Grammar in TOC in Hindi
- Simplification of context free grammar in Hindi
- Conversion of grammar to automata machine and vice versa in Hindi
- Chomsky normal form and Greibach normal form in hindi
- What is Pushdown Automata in TOC in Hindi
- Example of PDA in Hindi | Example of Pushdown Automata in Hindi
- Deterministic pushdown automaton And Non-Deterministic pushdown automaton in Hindi
- Conversion of PDA Into Context Free Grammar and Vice Versa | PDA in TOC in hindi | Push Down Automata in Hindi | Context Free Grammar in Hindi
- CFG equivalent to PDA in hindi | context free grammar equivalent to push down automata in hindi | toc tutorial in hindi | theory of computation in hindi