Bhanu Priya has Published 1581 Articles

Construct a TM for the language L= {ww : w ∈ {0,1}}

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 15:12:46

1K+ Views

ProblemThe language L = {ww | w ε {0, 1}} having the string of 0’s and 1’s which is followed by itselfL={00, 11, 1100, 0011, …..}SolutionThe logic for solving the problem is as follows −Find the midpoint of the string.Then match the symbols.ExplanationStep 1 − First, we need to find ... Read More

Construct PDA for accepting L = {anb(2n) | n>=1} U {anbn | n>=1}

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 15:07:47

1K+ Views

A push down automata (PDA) can be formally described as seven tuples(Q, Σ, S, δ, q0, I, F)Where, Q is finite number of statesΣ is input alphabetS is stack symbolΔ is the transition function: QX(Σ∪{e})XSXQq0 is the initial state (q0 belongs to Q)I is the initial state top symbolF is ... Read More

Construct a DPDA for anb2n n ≥ 1 in TOC

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 15:05:23

17K+ Views

A deterministic finite automata (DFA) can remember a finite amount of information but A push down automata (PDA) can remember an infinite amount of information.Basically a PDA is as follows −“Finite state machine+ a stack”PDA has three components, which is as follows −An Input tapeA control unitA Stack with infinite ... Read More

Construct PDA for L = {0n1m2(n+m) | m,n >=1}

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 15:03:33

2K+ Views

A push down automata (PDA) can be formally described as seven tuples(Q, Σ, S, δ, q0, I, F)Where, Q is finite number of statesΣ is input alphabetS is stack symbolΔ is the transition function: QX(Σ∪{e})XSXQq0 is the initial state (q0 belongs to Q)I is the initial state top symbolF is ... Read More

Construct a PDA for language L = {0n 1m2m3n | n>=1, m>=1}

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 15:01:45

5K+ Views

A push down automata (PDA) can be formally described as seven tuples(Q, Σ, S, δ, q0, I, F)Where, Q is finite number of statesΣ is input alphabetS is stack symbolΔ is the transition function: QX(Σ∪{e})XSXQq0 is the initial state (q0 belongs to Q)I is the initial state top symbolF is ... Read More

Construct DPDA for a(n+m)bmcn n,m≥1 in TOC

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 15:00:03

762 Views

A push down automata (PDA) can be formally described as seven tuples(Q, Σ, S, δ, q0, I, F)Where, Q is finite number of statesΣ is input alphabetS is stack symbolΔ is the transition function: QX(Σ∪{e})XSXQq0 is the initial state (q0 belongs to Q)I is the initial state top symbolF is ... Read More

Explain the basic properties of the Turing machine?

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 14:22:10

3K+ Views

Turing machines are more powerful than both finite automata (FA) and pushdown automata (PDA). They are as powerful as any computer we have ever built.The main improvements from PDAs in Turing machine are explained below −Infinite “all” accessible memory (in the form of a tape) – option to read and ... Read More

Distinguish between DPDAs and NPDAs in TOC?

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 14:18:46

5K+ Views

Similar to the finite automata (FA), push-down automata (PDA) can be either deterministic or non-deterministic.A deterministic push down automata (DPDA) never has a choice of the next step −It has the possible output for every combination of state, input character and stack character, as compared to the deterministic finite automata ... Read More

Design a push down automaton for L = {wwR | w ∈ {a, b}+}?

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 13:40:41

6K+ Views

A pushdown automaton is used to implement a context-free grammar in the same way that we use a technique to design DFA for a regular grammar. A DFA work on a finite amount of information, where as a PDA works on an infinite amount of information.Generally, a pushdown automaton is ... Read More

What happens when a String is accepted or rejected by NPDA?

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 13:25:44

223 Views

A string is accepted by an Non-deterministic Push down Automata (NPDA), if there is some path (i.e., sequence of instructions) from the start state to a final state that consumes all the letters of the string. Otherwise, the string is rejected by the NPDA.The language of an NPDA is the ... Read More

Advertisements