Bhanu Priya has Published 1581 Articles

Explain the different operations on Regular language in TOC.

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 13:30:35

12K+ Views

A language is a set of strings from some alphabet (finite or infinite). In other words, any subset L of E* is a language in TOC.Some special languages are as follows −{} The empty set/language, containing no string.{s} A language containing one string, the empty string.ExamplesE = {0, 1}L = ... Read More

What are the different operations performed on strings in TOC?

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 13:28:26

5K+ Views

A string is a finite set sequence of symbols choosen from some alphabets.For example, 00011001 is a string from binary alphabet Σ={0, 1}aabbcabcd is a string from alphabet Σ={a, b, c, d}The different operations performed on strings are explained below −Concatenation.Substring.Kleen star operation.Reversal.ConcatenationConcatenation is nothing but combining the two strings ... Read More

What is a finite state machine in TOC?

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 13:25:59

7K+ Views

A finite state machine 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 logic ... Read More

Construct RE for given finite automata with Arden’s theorem

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 13:24:54

702 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

Explain the power of an alphabet in TOC.

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 13:22:31

4K+ Views

If Σ is an alphabet, the set of all strings can be expressed as a certain length from that alphabet by using exponential notation. The power of an alphabet is denoted by Σk and is the set of strings of length k.For example, Σ ={0, 1}Σ1= {0, 1} ( 21=2)Σ2= ... Read More

What are the fundamental concepts of TOC?

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 13:21:08

8K+ Views

The basic definitions of the fundamental concepts in the Theory of Computation (TOC) along with the relevant examples are explained below −SymbolSymbols simply call it as a character.It is an atomic unit, such as a digit, character, lowercase letter, etc. Sometimes it is also a word. The formal language does ... Read More

Explain the concept of derivation in TOC

Bhanu Priya

Bhanu Priya

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

4K+ Views

Derivation is a sequence of production rules. It is used to get input strings. During parsing, we have to take two decisions, which are as followsWe have to decide the non-terminal which is to be replaced.We have to decide the production rule by which the non-terminal will be replaced.Two options ... Read More

Derive the string “00101” using LMD and RMD while using CFG

Bhanu Priya

Bhanu Priya

Updated on 11-Jun-2021 13:14:42

8K+ Views

ProblemDerive the string"00101" for left most derivation (LMD) and right most derivation (RMD) using context free grammar (CFG).SolutionThe grammar is as follows −S->A1B A->0A| ε B->0B| 1B| εLeft Most derivation (LMD)In the left most derivation, the given input is scanned and then replaced with the production rule from left side ... Read More

What is a Derivation tree in TOC?

Bhanu Priya

Bhanu Priya

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

18K+ Views

Derivation tree is a graphical representation for the derivation of the given production rules of the context free grammar (CFG).It is a way to show how the derivation can be done to obtain some string from a given set of production rules. It is also called as the Parse tree.The ... Read More

What is context free grammar? Explain with examples

Bhanu Priya

Bhanu Priya

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

43K+ Views

A context free grammar (CFG) is a forma grammar which is used to generate all the possible patterns of strings in a given formal language.It is defined as four tuples −G=(V, T, P, S)G is a grammar, which consists of a set of production rules. It is used to generate ... Read More

Advertisements