Bhanu Priya has Published 1581 Articles

Explain non-deterministic push down automata in TOC?

Bhanu Priya

Bhanu Priya

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

8K+ Views

The Non-deterministic Push down Automata (NPDAs) are like finite automata (FA), except they also have a stack memory where they can store an arbitrary amount of information.Read/write stack memory works as LIFO: Last In, First OutWhat can we do with a stack?The pop operation reads the top symbol and removes ... Read More

What is a context sensitive language in TOC?

Bhanu Priya

Bhanu Priya

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

4K+ Views

A context-sensitive grammar whose productions are of the formαAβ → αγβWhere α, β ∈ (N ∪ T)*, A ∈ N; γ ∈ (N ∪ T)+ and a rule of the form S → λ is allowed if the start symbol S do not appear on the right hand side of ... Read More

What are the restrictions of regular grammar?

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 13:11:38

700 Views

A regular grammar is the one where each production takes one of the following restricted forms −B → ∧, B → w, B → A, B → wA.(Where A, B are non-terminals and w is a non-empty string of terminals.)Restrictions of regular grammarOnly one nonterminal can appear on the right-hand ... Read More

What are the properties of Regular expressions in TOC?

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 13:00:04

6K+ Views

A regular expression is basically a shorthand way of showing how a regular language is built from the base set of regular languages.The symbols are identical which are used to construct the languages, and any given expression that has a language closely associated with it.For each regular expression E, there ... Read More

Design a DFA that accepts at most 3 a"s

Bhanu Priya

Bhanu Priya

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

12K+ Views

Construct deterministic finite automata that accepts at most 3 a’s over an alphabet ∑={a, b}.At most 3 a’s means, The string contains 0 to max 3 a’s and any number of b’s.L= {Є, a, aa, aaa, ab, abb, bab, bbabaa, bbabaabbb, …..}Construct DFALet’s construct DFA step by step −Step 1Valid ... Read More

Explain about CYK Algorithm for Context Free Grammar

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 12:48:06

7K+ Views

CKY means Cocke-Kasami-Younger. It is one of the earliest recognition and parsing algorithms. The standard version of CKY can only recognize languages defined by context-free grammars in Chomsky Normal Form (CNF).It is also possible to extend the CKY algorithm to handle some grammars which are not in CNF (Hard to ... Read More

Design a DFA accepting stringw so that the second symbol is zero and fourth is 1

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 12:45:14

2K+ Views

ProblemConstruct DFA which accepts a string that contains second symbol is zero and fourth symbol is 1 over an alphabet ∑={0, 1}.SolutionInput − 00110Output is accepted; because in the given string the second symbol is ‘0’ and the fourth symbol is ‘1’.Input − 11001Output − string is not accepted, because the second symbol is ... Read More

Explain about regular expressions in TOC?

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 12:43:52

17K+ Views

A regular expression is basically a shorthand way of showing how a regular language is built from the base set of regular languages.The symbols are identical which are used to construct the languages, and any given expression that has a language closely associated with it.For each regular expression E, there ... Read More

Explain the intersection process of two DFA’s

Bhanu Priya

Bhanu Priya

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

3K+ Views

According to the theorem, If L and M are two regular languages, then L ∩ M is also regular language.ExampleConstruct A∩B where A and B is given as follows −The language A ={10, 100, 00, 001, 1010, …..}The language B ={01, 1010, 10, 101, …..}AA = (QA, Σ, δA, qa, ... Read More

Design a DFA accepting a language L having number of zeros in multiples of 3

Bhanu Priya

Bhanu Priya

Updated on 15-Jun-2021 12:39:28

2K+ Views

ProblemConstruct a deterministic finite automata (DFA) that accepts a language L which has the number of zero’s is of multiple of 3 over an alphabet ∑=”{0, 1}.SolutionIf input is: 000 Output is: string is acceptedBecause here the number of zero’s is multiple of 3.Designing DFAIn order to construct the DFA, ... Read More

Advertisements