Bhanu Priya has Published 1581 Articles

Convert NFA to DFA and explain the difference between them

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 13:10:17

1K+ Views

Some basic difference between a Non-deterministic finite automata (NFA) and Deterministic Finite Automata (DFA) is that in DFA each state has an output for each of the inputs, whereas this is not necessary for NFA.Also, in NFA the input can be \epsilon but in DFA this is not the case.Moreover, ... Read More

What is the pumping lemma for regular language?

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 13:00:58

45K+ Views

There are two Pumping Lemmas (PL), which are defined for Regular Languages and Context - Free Languages.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 long input string into several substrings.Lt ... Read More

How to show that the regular language is closed under the complementary operation?

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 13:00:00

3K+ Views

Closure property is a technique to understand the class of the resulting language when we are performing an operation on two languages of the same class.That means, suppose L1 and L2 belong to regular language and if regular language is closed under operation ∪, then L1∪L2 will be a Regular ... Read More

Find the regular expression for the given Finite automata with state elimination method

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 12:58:59

755 Views

ProblemGenerate RE for a given finite automata by using the state elimination method.SolutionThere are two methods for converting a Deterministic Finite Automata (DFA) to Regular expression (RE).Arden's Theorem Method.State Elimination Method.The given automata is as follows−Step 1Initial state is A that has an incoming edge.So, we have to create a ... Read More

Generate a Regular Expression for a Finite Automata with state elimination method

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 12:58:10

2K+ Views

ProblemGiven a Finite Automata, we need to convert the Finite Automata into equivalent Regular Expression using the State Elimination Method.Step 1 − Initial state q1 has incoming edge. So, create a new initial state qi.Step 2 − Final state q2 has outgoing edge. So, create a new final state.Step 3 ... Read More

Explain the concept of state elimination method in TOC

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 12:57:11

2K+ Views

There are two methods for converting a Deterministic Finite Automata (DFA) to Regular expression (RE). These methods are as follows −Arden's Theorem Method.State Elimination Method.Now, let us learn about the state elimination method used in TOC.State Elimination MethodStep 1Initial state of DFA does not have any incoming edge.If there exists ... Read More

Find out the Regular expression for the given finite automata

Bhanu Priya

Bhanu Priya

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

3K+ Views

ProblemConstruct a regular expression for the given finite automata.SolutionStep 1 − Let us write down the equation.q1=q1a+ εq1 is the start state and ε will be added as the input a which is coming to q1 from q1.Hence, we writeState=source state of input * input coming to itStep 2 − ... Read More

Explain Arden’s theorem to convert DFA to Regular Expression

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 12:23:30

5K+ Views

There are two methods for converting a Deterministic Finite Automata (DFA) to Regular expression (RE). These methods are as follows −Arden's Theorem Method.State Elimination Method.Let us understand the Arden's Theorem method in detail.Arden's TheoremLet P and Q be the two regular expressions.If P does not contain null string, then the ... Read More

What is the theory of computation?

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 08:19:30

10K+ Views

Computation is the movement and alteration which occurs during the transition of data or the processing of data based on a set of operations.The theory of computation includes the fundamental mathematical properties of computer hardware, software and their applications. It is a computer science branch which deals with how a ... Read More

C program to print name inside heart pattern using for loop.

Bhanu Priya

Bhanu Priya

Updated on 26-Mar-2021 08:03:25

2K+ Views

ProblemWrite a program to print heart shaped pattern with the name in centre using for loop.SolutionThe user has to enter the name that should be printed in centre along with the number of rows the stars has to be print.AlgorithmRefer an algorithm given below to print the name in heart ... Read More

Advertisements