Week 2 Lecture 2 - Closure Properties of Regular Languages

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

Give the name for the property where a language is regular because there is an FSA that accepts it.

Closure

2
New cards

Draw the languages:
L1 = {an | n >= 2} and L2 = {abma | m >= 0}

knowt flashcard image
3
New cards

For regular languages L1 and L2, is L1 U L2 regular?

Yes

4
New cards

Give the drawing of L1 U L2
Method not using λ transitions
L1 = {a}{b} and L2 = {aa, ab}

knowt flashcard image
5
New cards

Give the drawing of L1 U L2
Method using λ transitions
L1 = {a}{b} and L2 = {aa, ab}

knowt flashcard image
6
New cards
<p>Draw the generalised pattern for M<sub>1</sub> U M<sub>2 </sub></p>

Draw the generalised pattern for M1 U M2

knowt flashcard image
7
New cards

For regular languages L1 and L2, is L1L2 regular?

Yes

8
New cards
<p>Draw the generalised pattern for M<sub>1</sub>M<sub>2</sub></p>

Draw the generalised pattern for M1M2

knowt flashcard image
9
New cards

Prove by induction that if L1, … , Ln is a regular language, where n >= 1, then L1….Ln is also a regular language

Base case: n = 1
In this case, L1….Ln = L1 and L1 is regular by definition.

Inductive step:

L1….Ln = L1….Ln-1Ln
Ln is a regular language by assumption and L1….Ln-1 is a regular language by inductive hypothesis. So L1….Ln must be a regular language.

10
New cards

What is L*? And is it a regular language

Yes

<p>Yes</p>
11
New cards
<p>Given M<sub>1</sub> is an FSA that accepts L<sub>1</sub>, what is the FSA that accepts L<sub>1</sub>*?</p>

Given M1 is an FSA that accepts L1, what is the FSA that accepts L1*?

The new initial state must be final or λ is not accepted.

<p>The new initial state must be final or λ is not accepted.</p>
12
New cards

What is the complement of L and is it a regular language?

Σ* - L

Yes

13
New cards
<p>Consider the DFA M = (Q, Σ, δ, i, F ) such that L = L(M)</p><p>What is the FSA that accepts the complement? Give the steps</p>

Consider the DFA M = (Q, Σ, δ, i, F ) such that L = L(M)

What is the FSA that accepts the complement? Give the steps

1) Complete M so that it has transitions from every state for every symbol. This is done by adding a junk state.
2) Invert the final + non-final states

<p>1) Complete M so that it has transitions from every state for every symbol. This is done by adding a junk state.<br>2) Invert the final + non-final states</p>
14
New cards
<p>Consider the language L which consists of all binary strings that start and end in a 1. Construct the FSA that accepts the complement:</p>

Consider the language L which consists of all binary strings that start and end in a 1. Construct the FSA that accepts the complement:

knowt flashcard image
15
New cards
<p>Using de Morgans law, prove this is regular:</p>

Using de Morgans law, prove this is regular:

knowt flashcard image
16
New cards
<p>Show the construction of closure under intersection using:</p>

Show the construction of closure under intersection using:

knowt flashcard image
17
New cards
<p>Using these 2 languages L<sub>1</sub> and L<sub>2</sub>, construct the FSA that accepts the intersection</p>

Using these 2 languages L1 and L2, construct the FSA that accepts the intersection

knowt flashcard image
18
New cards

Prove that if L and M are regular languages, so is L - M

knowt flashcard image