0% found this document useful (0 votes)
75 views15 pages

Regular Language

The document discusses operations that can be performed on regular languages including concatenation, union, Kleene star, and the empty string. It explains how these operations are defined and can be used to describe the behavior of finite state machines and regular expressions. Examples are provided of regular languages and finite state automata that illustrate concatenation, Kleene star, and how finite state machines accept strings.

Uploaded by

VISHNUPRIYA B
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views15 pages

Regular Language

The document discusses operations that can be performed on regular languages including concatenation, union, Kleene star, and the empty string. It explains how these operations are defined and can be used to describe the behavior of finite state machines and regular expressions. Examples are provided of regular languages and finite state automata that illustrate concatenation, Kleene star, and how finite state machines accept strings.

Uploaded by

VISHNUPRIYA B
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

UNIT 1

TOPIC 4 , 5
TURNSTILE

The machine above can know what state it is currently in, on Inserting a coin into a turnstile will unlock it, and after the turnstile

or off, but it doesn't know what the history of flips was to get has been pushed, it locks again. Inserting a coin into an unlocked

it to where it is (i.e. it doesn't know how many times the turnstile, or pushing against a locked turnstile will not change its

switch has been flipped on or off). state.


GENERAL OBJECTIVE

● The students will be able to understand the need for the regular language

along with its operations and analyse the regular expression for different finite

state automaton
SPECIFIC OBJECTIVE
● The students will be able

1. To infer the need for Regular Language (U/C)

2. To interpret how to translate between Regular Languages, Finite Automata, and Regular
Expressions (U/C)

3. To compute the operations being performed over a regular language (Ap/C)

4. To justify the operations of regular expressions for different set of Finite State Automaton.
(An/P)
REGULAR LANGUAGE

● A regular language is a language that can be expressed with a regular expression or a

deterministic or non-deterministic finite automata or state machine .

● A language is a set of strings which are made up of characters from a specified alphabet, or set

of symbols.

● Regular languages are a subset of the set of all strings.


REGULAR LANGUAGE

● A Language is said to be a REGULAR LANGUAGE if and only if

some FSM recognizes it. ababbababb


● What are NON REGULAR LANGUAGE?

○ The Language

■ Which are not recognized by FSM

■ Which requires memory


aNbN
● Memory of FSM is very limited
N=4  aaaabbbb
● It cannot store or count string
REGULAR LANGUAGE

● A finite state machine, M, describes a given language, L. M is said to accept a string w if the

machine starts in a start state, undergoes some series of state transitions, and ends up in an

accepting state.

● We say that the machine M recognizes the language L if M accepts all strings w that are in L.

● A language is a regular language if there is a finite automaton that recognizes it.

this machine recognizes the language of strings that have an even


number of zeroes since any string that has an even number of
zeroes will go from the start state to an accepting state.
OPERATIONS ON REGULAR LANGUAGES

CONCATENATION
● It is an operation that combines two symbols, sets, or languages. There are two main ways to write a concatenation.

X∘Y and XY both mean “X concatenated with Y.” Languages can also be concatenated: L1 ∘L2​means strings from L1​

are written first, and then strings from L2​come after.

● Formally, concatenation is defined as follows: A ∘B={xy ∣x ∈A and y ∈B}

UNION
● It is an operation where a finite state machine can make one choice or another at any step (this can also be thought of as

an “or” operation).

● For example, there could be a finite state machine that can choose between concatenating X with Y or concatenating X

with Z. Or is written with a vertical bar, and the expression from the previous sentence looks like this: (X ∘Y ∣X ∘Z)

● Formally, union is described as follows: A∪B={x ∣x ∈A or x ∈B}


OPERATIONS ON REGULAR LANGUAGES

KLEENE STAR

● The Kleene star is an operation denoted by an asterisk * that basically represents repeated self-concatenation

● The Kleene star can repeat the symbol it operates on any number of times.

● The regular language X∘Y∣Z * represents strings of the form “X concatenated with Y or Z repeated any number of

times.”

● Formally, the Kleene star is defined as follows: A * ={x1x2...xk∣k≥0 and each xi∈A} The Kleene star is a unary

operation since it operates only on one thing instead of two (unlike union and concatenation, which are binary

operations).

● Because kkk can be 000, xxx can be repeated 000 times. This means that the empty string is always a member of A

THE EMPTY STRING

● Another important symbol is ϵ\epsilonϵ which represents the empty string.


OPERATIONS ON REGULAR LANGUAGES

LANGUAGE NOTATION

● Languages are often written as follows: L=(some pattern)∣(some condition).

● The pattern often resembles something like this 0n1n, where the exponent actually represents

a unary operation — the 0 would be repeated n times.

● For example, 0^4 1^4 is written out as 00001111.


FA - 1
Which string will not be accepted by the finite state machines below?

A. 101

B. 100110

C. 1000001

D. 1110001
FA - 2
What regular expression is represented by the finite state machines shown
below? (S0​is the starting state).

A. (ab)*

B. ab*

C. ab

D. a*b
FA - 3
What is the regular expression that describes this finite state machine?
FA - 4

Press Nothing “A”


● Describes a few simple moves that a character in a video Press Nothing

game can do: stand, run, and jump. The buttons that a
STAND STAND
player can use to control this particular character are “A”

"Up," "A," or the player can press no button.

Pr
es
“UP”

sN
oth
“UP” “A”

ngi
Using the state diagram for the video game character above, STAND
describe how a player can control their character to go from
standing to running to jumping.
“UP”
MIND MAP

You might also like