Ch 1 : Regular Languages Flashcards

1
Q

Why is a language considered non-regular? What does this mean?

A

Regular languages don’t need memory, and thus can be represented by a FSM/FA. Non-regular languages need memory in order to recognize potentially infinite input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does the pumping lemma play into regular vs. non-regular languages?

A

Regular languages have a special property.
If we can show that a language does not have this property, then it is not regular.

The property that they have is that regular languages are able to be pumped if they are a minimum length.

IOW, each string has a section that is repeated at least once and still remain part of the language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the main principle behind the pumping lemma and why does it work?

A

[INSERT]

The pigeonhole principle.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do we us the pumping lemma to prove that a language B is not regular?

A
  1. Assume B is regular to get a contradiction
  2. Use PL to guarantee existence of a string of length at least p that can be pumped
  3. Find a string s in B at least as long as p that cannot be pumped.
  4. Demo that s cannot be pumped by considering every possible way of dividing s into x, y, z and for each, find a value of i that make xy^iz not an element of B
    (involves grouping into several cases and analyzing individually)

( May need to ‘hunt’ for s…try to find ‘essence’ of b’s irregularity)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the pumping lemma?

A

If A is a regular language….
Then there is a number p,
where s (any string in A of length at least p)
may be divided into three pieces with….

  1. for EVERY i >= 0, xy^iz E A
    …….its in the language, for every number of pumps
  2. |y| > 0
    …..the cycle has at least one edge in it
  3. |xy|
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the difference between the terms accept recognize, decide

A

[INSERT]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a GNFA, as compared to an NFA?

A

NFA where transition arrows can have any reg expression, not just members of the alphabet or. Epsilon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the three special conditions of a GNFA?

A

Start state goes to every other state but no arrows in

End state has arrows in from every state but none going out

Other states have arrows to every other state including their own.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the definition of epsilon closure?

A

E(R) for any state R of M is the collection of states that can be reached from members of R by going only along epsilon arrows, including members of R themselves.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly