Different Grammars Flashcards

(5 cards)

1
Q

What is unrestricted ‘type 0’ grammar

A

Productions have strings of variables on each side of the production rather than just one variable on the LHS like CFG

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

When is a language L turing-acceptable

A

If and only if it is generated by an unrestricted grammar

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

What is a context-sensitive grammar

A

The productions never make strings shorter

S-> epsilon is permitted where S neever appears on the RHS

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

What is non-contracting grammars

A

There are at >= elements on the RHS as on the LHS

The productions never make strings shorter

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