Bhanu Priya has Published 1449 Articles

How to identify if a language is regular or not in TOC?

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 11:51:15

6K+ Views

To identify whether a language is regular or not, is based on Pigeon Hole Principle. This is generally called as the Pumping Lemma.Pumping lemma for Regular languagesIt gives a method for pumping (generating) many substrings from a given string.In other words, we say it provides means to break a given ... Read More

Explain Pumping lemma for context free language

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 11:46:19

39K+ Views

Pumping lemma for context free language (CFL) is used to prove that a language is not a Context free languageAssume L is context free languageThen there is a pumping length n such that any string w εL of length>=n can be written as follows −|w|>=nWe can break w into 5 ... Read More

What is the Instantaneous description of PDA?

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 11:45:25

15K+ Views

The Instantaneous description is called as an informal notation, and explains how a Push down automata (PDA) computes the given input string and makes a decision that the given string is accepted or rejected.The PDA involves both state and content of the stack.Stack is often one of the important parts ... Read More

Construct a pair of languages by using CFG

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 11:41:32

258 Views

ProblemConsider the following context-free grammars (CFG) and find the pairs of languages which can be generated by Gl and G2 respectively.SolutionConsider the following CFG −G1 : S->aS|B , B->b l bBG2: S->aA | bB , A->aA| B | ε , B->bB | εNow, we can generate the language as follows. ... Read More

Explain the relationship between grammar and language in TOC

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 11:40:08

2K+ Views

In order to understand the relationship between the grammar and language in the theory of computation (TOC), let us understand what is language generated by grammar in TOC.Language generated by grammarThe grammar is S-> aSb| E.In this grammar, by using S-> E, we can generate E.Therefore, E is part of ... Read More

Construct a Finite Automata for the regular expression ((a+b)(a+b))*.

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 11:02:54

4K+ Views

The language for the given regular expression (RE) is as follows −L={ ε, aa, ab, ba, aaaa, ………}ExampleLet the regular expression be ((a+b)(a+b))*(a+b).Construct the Finite automata for the given regular expression.First, generate the language for the given Regular Expression −L={a, d, aaa, bbb, abb, bab, bba, ………..}This is the language ... Read More

Convert RE 1(0+1)*0 into equivalent DFA.

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 11:01:35

6K+ Views

To convert the regular expression to Finite Automata (FA) we can use the Subset method.Subset method is used to obtain FA from the given regular expression (RE).Step 1 − Construct a Transition diagram for a given RE using Non-deterministic finite automata (NFA) with ε moves.Step 2 − Convert NFA with ... Read More

Construct NFA with Epsilon moves for regular expression a+ba*.

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 10:40:32

10K+ Views

The regular expression R= a+ba* divided into r1 and r2r1= a and r2= ba*Let us draw Non-deterministic finite automata (NFA) for r1 as given below −Now, we will go for r2 = ba *Divide r2 into r3 and r4, where, r3=b and r4=a*The NFA for r3 is as follows −The ... Read More

What is Inductive Hypothesis in TOC?

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 10:24:52

2K+ Views

Induction is a powerful tool in mathematics. It is a way of proving propositions that hold for all natural numbers.Hypothesis − The formal proof can be using deductive proof and inductive proof. The deductive proof consists of sequence of statements given with logical reasoning in order to prove the first ... Read More

How to convert Regular expression to Finite Automata?

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 10:22:41

20K+ Views

To convert the regular expression (RE) to Finite Automata (FA), we can use the Subset method.Subset method is used to obtain FA from the given RE.Step 1 − Construct a Transition diagram for a given RE by using Non-deterministic finite automata (NFA) with ε moves.Step 2 − Convert NFA with ... Read More

Advertisements