Bhanu Priya has Published 1449 Articles

Explain the relationship between Finite Automata and Regular Expression.

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 10:20:36

14K+ Views

In order to understand the relationship between finite automata (FA) and regular expression (RE), we need to understand these terminologies. Let us begin by understanding what is a regular expression.Regular ExpressionRegular expression is the language which is used to describe the language and is accepted by finite automata. Regular expressions ... Read More

Explain the meanings of some of the regular expressions.

Bhanu Priya

Bhanu Priya

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

854 Views

Regular expression is the language which is used to describe the language and is accepted by finite automata. Regular expressions are the most effective way to represent any language. Let Σ be an alphabet which denotes the input set.The regular expression over Σ can be defined as follows −Φ is ... Read More

Construct the Regular expression for the given languages by the user.

Bhanu Priya

Bhanu Priya

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

2K+ Views

Regular expression is the language which is used to describe the language and is accepted by finite automata. Regular expressions are the most effective way to represent any language. Let Σ be an alphabet which denotes the input set.The regular expression over Σ can be defined as follows −Φ is ... Read More

Construct the Regular expression for the given languages.

Bhanu Priya

Bhanu Priya

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

9K+ Views

Problem 1Write the regular expression for the language accepting all the strings containing any number of a's and b's.SolutionThe regular expression will be −r.e. = (a + b)*This will give the set as L = {E, a, aa, b, bb, ab, ba, aba, bab, .....}, any combination of a and ... Read More

Construct the minimum DFA for any given finite automata.

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 09:57:38

7K+ Views

ProblemConstruct a minimum state DFA for the following automata −SolutionWe first construct a transition table for the given finite automata −States\inputs01q0q1q5q1q6q2*q2q0q2q3q2q6q4q7q5q5q2q6q6q6q4q7q6q2Q={q0, q1, q2, q3, q4, q5, q6, q7}Q01={q2} and Q02={q0, q1, q2, q3, q4, q5, q6, q7}S0={{q2} {q0, q1, q2, q3, q4, q5, q6, q7}}Consider the set {q0, q1, q2, ... Read More

Explain the method for constructing Minimum Finite State Automata.

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 09:54:00

3K+ Views

A finite state machine (FSM) which has a set of states and two functions called the next-state and output function.The set of states correspond to all the possible combinations of the internal storage.If there are n bits of storage, there are 2n possible states.The next state function is a combinational ... Read More

How to convert NFA with epsilon to without epsilon?

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 09:49:28

45K+ Views

In this method, we try to remove all the ε-transitions from the given Non-deterministic finite automata (NFA) −The method is mentioned below stepwise −Step 1 − Find out all the ε-transitions from each state from Q. That will be called as ε-closure(qi) where, qi ∈Q.Step 2 − Then, 𝛿1 transitions ... Read More

What is an epsilon closure in TOC?

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 09:44:40

25K+ Views

The ε closure(P) is a set of states which are reachable from state P on ε-transitions.The epsilon closure is as mentioned below −ε-closure (P) = P, where P ∈ QIf there exists ε-closure (P) = {q} and 𝛿(q, ε) =r then, ε-closure (P) = {q, r}ExampleFind ε-closure for the following ... Read More

What is an acceptance of language by NFA with Epsilon?

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 09:41:39

7K+ Views

The language L accepted by Non-deterministic finite automata (NFA) with ε, denoted by M= (Q, Σ, 𝛿, q0, F) and can be defined as follows −Let M= (Q, Σ, 𝛿, q0, F) be a NFA with εWhere, Q is a set of statesΣ is input setδ is a transition function ... Read More

How to convert the finite automata into regular expressions?

Bhanu Priya

Bhanu Priya

Updated on 12-Jun-2021 09:33:56

12K+ Views

ProblemConvert the given finite automata (FA) into regular expression (RE).SolutionThere are two popular methods for converting a DFA to its regular expression −Arden’s MethodState elimination methodLet’s consider the state elimination method to convert FA to RE.RulesThe rules for state elimination method are as follows −Rule 1The initial state of DFA ... Read More

Advertisements