Week 5 - DFAs

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

1/6

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.

7 Terms

1
New cards

What is a string?

A finite length sequence of elements in an alphabet

2
New cards

What is a DFA made up of?

A finite set of states
An alphabet
A set of initial states that is in the set of all states
A set of accepting states which is in the set of all states
A transition function

3
New cards

What is the union theorem?

Given two languages L1 and L2, the union of these languages is any word that is in either of these languages

4
New cards

How do we prove the union theorem?

Create two automata A1 and A2, where A1 accepts L1 and A2 accepts L2.

Then construct another automaton such that it recognises both L1 or L2, set of its states is cross product of the automata so these states are pairs of states in A1 and A2

Then construct a transition function where the accepting states are the pairs (q1, q2) where q1 is accepted by A1 or q2 is accepted by A2

5
New cards

What is a regular operation?

An operation on regular languages that has a result result

6
New cards

What are examples of regular operations?

Intersection, union, reverse of an automaton, complement, repetition, sequence

7
New cards

What is the pigeonhole principle?

Given n boxes and M > N objects, at least one box must contain more than one object