Formal Languages Flashcards

(15 cards)

1
Q

What is a type-0 grammar?

A

Every grammar is automatically type 0 and there are no restrictions on their production rules.

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

What is a type-0 grammar also known as?

A

Recursively enumerable.

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

What is a type-1 grammar?

A

A grammar is type 1 if for all production rules w1 -> w2 the length of w1 is less than or equal to w2.

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

What is a type-1 grammar also known as?

A

Context sensitive

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

What is a type-2 grammer?

A

A type 1 grammar is type-2 if for all production rules w1 -> w2, w1 is a single non-terminal symbol

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

What is a type-2 grammar also known as?

A

Context free

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

What is a type-3 grammar?

A

A type-2 grammar is type-3 if for all production rules w1 -> w2, w2 is either a single terminal symbol or a terminal symbol followed by one non-terminal symbol.

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

What is a type-3 grammar also known as?

A

Regular

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

What is the special case for the empty word?

A

If having the empty is desirable, then S -> (empty word) can be added as long as S is not part of a production rule body.

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

What is the word problem?

A

The problem of deciding if for a given language L and a given word w the property w belong to L holds.

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

What is a Turing machine?

A

The most basic version of a computer consists of a tape of infinite length, separated into fields that can contain a value. These fields are read and written to by a head that moves along the tape.

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

What is the formal definition of a turing machine?

A

A Turing machine the the 7-tuple:

M = (Q, Sigma, Gamma, delta, q0, [], F)

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

What is a Linear Bounded Automaton?

A

An LBA is a Turing machine that is bounded by the input side.

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

Which languages are accepted by LBA’s?

A

Type-1 (context sensetive) languages

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