Download fulltext - MDH DiVA

Transcript
PREFACE
This report is a B.Sc thesis work in computer science. It was written at the School of
Innovation, Design and Engineering (IDT) at Mälardalen University.
Västerås, 2013
Tobias Fransson
NOMENCLATURE
Alphabet – a set of symbols. Example: {a,b} or {0,1}.
String – a sequence set over an alphabet
Example: aabbabb
Languages – is a set of strings
Example: L = {anbn; n>0}
Grammar – a set of rules that formulate strings in a language.
Example: a grammar over the alphabet {a,b}
S  aSb
S
Specifies the language: L = { λ, ab , aabb , aaabbb , .. } = {anbn; n0}
FA – Finite Automaton – is a model of computation that consists of a (finite number of)
states and transitions between those states. It reads an input string and after number of state
transitions either accepts or rejects the string.
DFA – Deterministic finite automaton - is a finite state machine that produces a unique
computation for each input string. From each state on a given input symbol the automaton
may proceed into one possible next state.
NFA – Nondeterministic finite automaton - each state can have more than one transition
with the same input value. Lambda transitions can also be used which enables the
automaton to move from one state to another without consuming any input.
PDA – Pushdown Automaton – is an automaton that has a stack where the push and pop
function is used. Because of this some iterative patterns can be evaluated. For example:
A  (A)
A  ()
Which accepts L = {(), (()), ((())), ..}.
TM - Turing Machine – is a more complex automaton that has a tape that can be read and
written to. The head points at the beginning of the string when the TM executes. Every
transition has three variables which are read, write and the direction.