Theory of Computation and Complexity
Theory of Computation and Complexity
PHILIPPINES
School of Graduate Studies Theory of
City of Iriga Computation
and Complexity
Theory
ED 215
(COMPUTER EDUCATION)
Prepared by:
Stephanie P. Chu
Theory of computation (TOC)
•- is a branch of Computer Science that is
concerned with how problems can be solved
using algorithms and how efficiently they can
be solved.
One important thing to note is, in NFA, if any path for an input
string leads to a final state, then the input
string is accepted. For example, in the above NFA, there are
multiple paths for the input string “00”. Since one of the paths leads
to a final state, “00” is accepted by the above NFA.
Finite Automata is useful in building text editors/text
preprocessors. FA are poor models of computers. They
can only perform simple computational tasks.
Complexity theory
•This theoretical computer science branch is all about
studying the cost of solving problems while focusing on
resources (time & space) needed as the metric. The
running time of an algorithm varies with the inputs and
usually grows with the size of the inputs.
Measuring Complexity