l ecture 1 t heory of c omputation yasir imtiaz khan

14
LECTURE 1 THEORY OF COMPUTATION Yasir Imtiaz Khan

Upload: noel-neal

Post on 12-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

LECTURE 1THEORY OF

COMPUTATIONYasir Imtiaz Khan

Page 2: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

GOALS OF THEORY OF COMPUTATION

What is computable? What can be computed efficiently within a

certain and time constraints? The ultimate answer from the Turing machine

test is that anything can be computed by ignoring time and space.

Page 3: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

THEORY OF COMPUTATION

The theory of computation or computer theory is the branch of computer science and mathematics that deals with whether and how efficiently problems can be solved on a model of computation, using an algorithm.

Page 4: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

CENTRAL AREAS OF THE THEORY OF COMPUTATION

Automata Theory Computability Theory Complexity Theory

Page 5: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

AUTOMATA THEORY

Deals with the definitions and properties of mathematical model of computation.

Examples: Finite automata, Context free grammars.

Finite Automaton: Text Processing, Compilers

Context Free grammars: Programming languages, AI

Page 6: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

COMPUTABILITY THEORY

Study of computable functions and Turing degrees.

Classification of problems is by those that are solvable and those that are not.

Page 7: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

COMPLEXITY THEORY

Classify the easy problems and hard ones. Some problems are hard even we are unable

to prove Cryptography is application area of complex

computation

Page 8: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

SETS

A set is a group of objects, called elements (or members) of this set. For example, the students in this room form a set.

A set can be defined by listing all its elements inside braces, e.g.:

S ={ 7,21,57} The order and repetitions of elements

in sets do not matter – in particular, {7,21,57} = {21,57,7} = {21, 7, 57, 7, 21}

Page 9: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

SETS CONTINUED…

The membership is denoted by ϵ symbol. For example, 21 ϵ S but 10 not belong to S.

For two sets A and B, we say A is a subset of B and write A subset B

if every member of A is also a member of B. We say that A is a proper subset of B and write A proper B if A is a subset of B and not equal to B.

The set of all subsets of a set A is called the power set of A and denoted 2A

Page 10: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

EXAMPLES OF SETS

The set with no elements is called the empty set and denoted

The empty set is a subset of any other set.

The set of natural numbers N (or N): N = {1, 2, 3, . . .}

The set of integers Z (or Z): Z = {. . ., -2,-1, 0, 1, 2,…} It is clear that N subset of Z

Page 11: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

SET OPERATIONS

Page 12: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

VENN DIAGRAMS

Page 13: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

SEQUENCE AND TUPLES

A sequence is a list of objects in some order. For example, sequences of the students'

names in alphabetic order such as (Alice,Bob).

In contrast to sets, repetitions and order matter in sequences. The sequences (7, 21, 57) and (7, 7, 21, 57) are not equal.

Finite sequences are called tuples. In particular, a sequence with k elements is called k-tuple (as well as pair, triple, quadriple, etc.)

Page 14: L ECTURE 1 T HEORY OF C OMPUTATION Yasir Imtiaz Khan

FUNCTIONS