1.1 FINITE AUTOMATA (endanleg stöðuvél) Flashcards

1
Q

What is finite automata good for ?

A

They are good models for computers with extremely limited amount of memory

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

What are finite automata and their probabilistic counterpart Markov chains useful for?

A

Attempting to recognize patterns in data.

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

What is a state diagram ?

A

It has a start state indicated by an arrow pointing from nowhere, an accept state with a double circle and the arrows going from one state to another are called transitions

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

The output of finite automata ?

A

accept or reject

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

The formal definition says that a finite automaton is a list of those five objects:

A

set of states, input alphabet, rules for moving, start state, and accept states.

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

In mathematical language, a list of five elements is often called

A

a 5-tuple.

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

A finite automaton is a 5-tuple (Q, Σ, δ, q0, F ), where

A
  1. Q is a finite set called the states,
  2. Σ is a finite set called the alphabet,
  3. δ : Q × Σ−→ Q is the transition function, 4. q0 ∈ Q is the start state, and
  4. F ⊆ Q is the set of accept states.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

If A is the set of all strings that machine M accepts, we say

A

that A is the language of machine M and write L(M ) = A.

We say that M recognises A or that M accepts A.

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

A machine may accept several strings, but it always recognizes only one language. If the machine accepts no strings, it still recognizes one language

A

the empty language ∅.

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

A language is called a regular language if some finite automaton recognizes it.

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

We define three operations on languages, called the regular operations, and use them to study properties of the regular languages.

A

They are union, concatenation, and star

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

Union

A

A∪B={x|x∈A or x∈B}.

It simply takes all the strings in both A and B and lumps them together into one language.

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

Concatenation

A

A◦B={xy|x∈A and y∈B}.

It attaches a string from A in front of a string from B in all possible ways to get the strings in the new language.

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

Star

A

A∗ ={x1x2…xk|k≥0 and each xi ∈A}.

The star operation is a bit different from the other two because it applies to a single language rather than to two different languages. That is, the star oper- ation is a unary operation instead of a binary operation. It works by attaching any number of strings in A together to get a string in the new language. Because “any number” includes 0 as a possibility, the empty string ε is always a member
of A∗, no matter what A is.

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

When we say that N is closed under multiplication, we mean

A

that for any x and y in N, the product x × y also is in N.

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

N is not closed under division

A

as 1 and 2 are in N but 1/2 is not.

17
Q

a collection of objects is closed under some operation if applying that operation to members of the collection returns

A

an object still in the collection.

18
Q

The class of regular languages is closed under the union operation.

A

meaning : if A1 and A2 are regular languages, so is A1 ∪ A2 ?

19
Q

The class of regular languages is closed under the concatenation operation.

A

In other words, if A1 and A2 are regular languages then so is A1 ◦ A2.

20
Q

If the start state is also an accept state it accepts the….

A

the empty string ε. As soon as a machine begins reading the empty string, it is at the end; so if the start state is an accept state, ε is accepted.