Chapter 9 - Pushdown Automata Flashcards

1
Q

What is a pushdown automata?

A

A pushdown automata is a finite automata, but with a stack i.e. a data structure that can be used to store an arbitrary number of symbols (hence they have an infinite amount of states), but can only be accessed in a LIFO fashion. Can only recognise Context-free languages.

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

What makes up a pushdown automata?

A

A finite set of states (Q)
A finite set of input symbols (the alphabet, can also be written as sigma)
A finite set of stack symbols (represented as a weird capital R)
A transition function
An initial state (Q0)
An initial stack symbol (Z0)
A set of final states (F)

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

How does a PDA work?

A

The state of the PDA is given by the state it is in, the input string that still has yet to be processed, and the contents of the stack.

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

What is an ID?

A

An ID is an Instantaneous Description, made up of the state, the input string and the stack contents.

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

What is a relation?

A

A relation is a descriptor that describes how the PDA can change from one PDA to another

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

What are the two acceptance methods for a PDA?

A

Acceptance by final state:
That is, the PDA accepts the word if there is any sequence of IDs starting from the initial state and leading to any of the final states. The stack here doesn’t matter.
Acceptance by empty stack:
That is, the PDA accepts the word if there is a sequence of IDs starting from the initial state and leading to a state where the word to be processed and the stack are both empty. IN this case, the final state does not matter.
However, both acceptance methods accept the same class of language.

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

What is a deterministic PDA?

A

A deterministic PDA (DPDA) is a PDA where it ‘has no choice’ i.e. if there are multiple correct options available, then it is not a deterministic PDA.

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