Docsity

Basic Definations of Automata, Lecture notes of Theory of Automata

Toggle sidebar
bg1
QNo15.Define Regular Expression?
Answer:Regular Expression is the generalized form of any regular language through which
you can construct any string related to that language.
Take an example from your handouts
L1 = {Λ, a, aa, aaa, …} and L2 = {a, aa, aaa, aaaa, …} can simply be expressed by a* and
a+, respectively.
so a* and a+ are the generalized form of Languages L1, L2.
And a* and a+
are called the regular expressions (RE) for L1 and L2 respectively.
FAQ's about Lectures 6 to 10
Automata Theory FAQ's about Lectures 6 to 10
Q No.1 What is the concept of FA also known as FSM ( Finite State
Machine) ?
FA (Finite Automaton) is a finite state machine that recognizes a regular language. In
computer science, a finite-state machine (FSM) or finite-state automaton (FSA) is an
abstract machine that has only a finite, constant amount of memory. The internal
states of the machine carry no further structure. This kind of model is very widely
used in the study of computation and languages.
Q No.2 What is the difference between FA , TG , GTG. ?
In every FA, we mark transitions with single letter of the given alphabet but in TG
transitions can be marked with letters or strings (combination of letters).
In every FA, every state shows transition for all letters of given alphabet but in any TG
it is not necessary to show all transition for all letters of given alphabet. In TG, we
may or may not show all letter transitions according to requirement. We can also
show transitions on reading any strings in TGs but it is not possible in FA's. In GTG
Directed edges connecting some pair of states are labeled with regular expressions .
It may be noted that in GTG, the labels of transition edges are corresponding regular
expressions. In TG we write strings and in GTG we are bound to write RE. Every FA is
also a TG but not every TG is FA.
Q No.3 What is the difference between FA's and TG's .Why we need TG's
when we have FA's?
The Transition Graphs (TG) differ from FA in the following areas
TG's are generalizations of FA's.
TG's can change state without an input ( Null transition).
Can read more than one letter (words of the language they are accepting)
along the transition edges at a time.
Can have a regular expression as a edge label.
Can have more then one start state.
We have been given more freedom in TG's. But this freedom is on the cost of more
memory and processing power it means that if we implement TG's on computer using
some programming language it will need more memory and processing power of
pf3
pf4

Partial preview of the text

Download Basic Definations of Automata and more Lecture notes Theory of Automata in PDF only on Docsity!

QNo15.Define Regular Expression?

Answer: Regular Expression is the generalized form of any regular language through which you can construct any string related to that language.

Take an example from your handouts

L 1 = {Λ, a, aa, aaa, …} and L 2 = {a, aa, aaa, aaaa, …} can simply be expressed by a *^ and a+, respectively.

so a*^ and a+^ are the generalized form of Languages L 1 , L (^) 2.

And a *^ and a +^ are called the regular expressions (RE) for L 1 and L 2 respectively.

FAQ's about Lectures 6 to 10

Automata Theory FAQ's about Lectures 6 to 10

Q No.1 What is the concept of FA also known as FSM ( Finite State Machine)?

FA (Finite Automaton) is a finite state machine that recognizes a regular language. In computer science, a finite-state machine (FSM) or finite-state automaton (FSA) is an abstract machine that has only a finite, constant amount of memory. The internal states of the machine carry no further structure. This kind of model is very widely used in the study of computation and languages.

Q No.2 What is the difference between FA , TG , GTG.?

In every FA, we mark transitions with single letter of the given alphabet but in TG transitions can be marked with letters or strings (combination of letters).

In every FA, every state shows transition for all letters of given alphabet but in any TG it is not necessary to show all transition for all letters of given alphabet. In TG, we may or may not show all letter transitions according to requirement. We can also show transitions on reading any strings in TGs but it is not possible in FA's. In GTG Directed edges connecting some pair of states are labeled with regular expressions. It may be noted that in GTG, the labels of transition edges are corresponding regular expressions. In TG we write strings and in GTG we are bound to write RE. Every FA is also a TG but not every TG is FA.

Q No.3 What is the difference between FA's and TG's .Why we need TG's when we have FA's?

The Transition Graphs (TG) differ from FA in the following areas

TG's are generalizations of FA's.

TG's can change state without an input ( Null transition). Can read more than one letter (words of the language they are accepting) along the transition edges at a time. Can have a regular expression as a edge label.

Can have more then one start state.

We have been given more freedom in TG's. But this freedom is on the cost of more memory and processing power it means that if we implement TG's on computer using some programming language it will need more memory and processing power of

computer than used in the implementation of FA's.

Q No.5 What is the difference between is TG and GTG?

In TG, there are letter transitions for the strings. While in GTG, one can write whole RE as a transition from one state to another one.

Q No.9 What is difference between FA's and NFA's. Are they opposite to each other?

FA stands for finite automata while NFA stands for non-deterministic finite automata

In FA there must be a transition for each letter of the alphabet from each state. So in FA number of transitions must be equal to (number of states * number of letter in alphabet).

While in NFA there may be more than one transition for a letter from a state. And finally every FA is an NFA while every NFA may be an FA or not.

Q

Q No.7 What is the difference between FA's ,and TG's?

There are two or three big differences between FA’s and TG’s. In FA there can be maximum one initial or starting state while in TG there may be more than one initial state. In FA there can be transition for letters only while in TG transitions from a state to another one can be for strings.

In FA there must be transition from each state for each letter (deterministic) while in TG there may be no transition for specific letter from a state and there may be more than one path for a string or letter from a state. Q No.8 What is the exact definition of FA?

Definition: A Finite automaton (FA), is a collection of the followings

Finite number of states, having one initial and some (maybe none) final states. Finite set of input letters (Ó) from which input strings are formed.

Finite set of transitions i.e. for each state and for each input letter there is a transition showing how to move from one state to another.

Q No.9 What is the difference between TG and GTG? In TG, there are transitions for the strings. While in GTG, one can write whole RE as a transition from one state to another one. For RE =aa((a+b)(a+b))* what will be its corresponding FA?

RE is aa((a + b)(a + b))*. Its corresponding FA is as follows.

Q No.10 What is the difference between FA and NFA?

While generating NFA corresponding to closure of an FA one should take care of the null string. Simple way to accept null string is declare initial state, final as well. But in this way a lot of other strings will also be accepted. Therefore, accurate way is draw another state. Declare the new state initial as well as final. Connect the new state with the states originally connected with the old start state with the same transitions as the old start state. Newly drawn diagram will be an NFA representing the language closure of the given FA