Presentation is loading. Please wait.

Presentation is loading. Please wait.

Theory of Computation. General Concepts  Scope of course – Formal languages – Automata theory – Computability – Computational complexity.

Similar presentations


Presentation on theme: "Theory of Computation. General Concepts  Scope of course – Formal languages – Automata theory – Computability – Computational complexity."— Presentation transcript:

1 Theory of Computation

2 General Concepts  Scope of course – Formal languages – Automata theory – Computability – Computational complexity

3 General Concepts  Formal Languages --- – Definition --- Study of “strings of symbols,” including their descriptions, properties, generations, recognitions, compiling, applications, …

4 General Concepts  Formal Languages --- – Concepts --- Strings of symbols include those of natural languages, computer languages, discrete signals, …

5 General Concepts  Formal Languages --- – Concepts --- Results of study of automatic processing of symbolic information Parallel to numerical mathematical processing Similar to the role of set theory in mathematics

6 General Concepts  Automata Theory ---  Do you know how a vending machine works? Can you design one? Vending machine room seen in Hokkaido, Japan 2004

7 General Concepts  Automata Theory --- – An example --- How to design a vending machine?  Use a finite automaton!

8 General Concepts  Automata Theory --- – An example --- Assumptions (for simplicity): – Only 5-krş and 10-krş coins are used. – Only drinks all of 20 krş are sold.

9 General Concepts Automata Theory --- An example --- Requiring “memory” called “states” for the design. 0 start 5 5 10 5 15 5 10 5 20 transition diagram

10 General Concepts 10 5 is returned as “output” (not shown) 20 “Final state” Automata Theory --- Notes for the last diagram: $0 start “Start state”

11 General Concepts  Automata Theory --- – Definition --- Study of dynamic behaviors of “discrete- parameter information systems” in form of “abstract computing devices” or “machines.”

12 General Concepts  Automata Theory --- – Examples of discrete-parameter information systems --- digital systems, nerve systems, languages information transmission systems human-environment interactions, …

13 General Concepts Automata Theory --- – Three major models of automata --- generator --- with output and without input acceptor --- with input and without output transducer --- both with input and with output generatoracceptortransducer trigger signal Yes or No

14 General Concepts  Automata Theory --- – Examples --- generator --- – “natural language” grammar (generating “sentences” spoken by people) – reception robot (speaking organized words and sentences) – context-free grammar (generating strings of symbols) Reception robot --- Expo 2005

15 General Concepts  Automata Theory --- – Examples --- acceptor --- – digital lock (accepting digits) – lexical analyzer (recognizing computer language keywords) – finite automaton (accepting valid strings of symbols) Digital lock

16 General Concepts  Automata Theory --- – Examples --- transducer --- – Interpreter (translating natural languages) – Compiler (translating high-level languages into machine codes) – Turing machine (transforming strings of symbols)

17 General Concepts  Computability – Definition : Study of problem solving capabilities of computational models.

18 General Concepts  Computability --- – Problem types based on resources --- Impossible problems Possible-with-unlimited-resources-but- impossible-with-limited-resources problems Possible-with-limited-resources problems

19 General Concepts  Computability --- – Problem types based on time --- Undecidable problems Intractable problems Tractable problems

20 General Concepts  Computability --- – Advantage --- Studies of computability help us not to waste time on “unsolvable problems” already investigated before.

21 General Concepts  Computational complexity --- – Definition --- Study of “efficiency” of problem solving.

22 General Concepts  Computational complexity --- – Concepts --- To unify comparison, an abstract model is needed as the machine for executing problem solutions. Usually the most famous “Turing machine” (an automaton) is used.

23 General Concepts  Computational complexity --- – Concepts --- Turing machine, though simple, has been proved to be able to simulate any problem solving steps (“algorithms”) designed by human beings! Turing machine is the foundation for development of modern computation theory!

24 Problems Studied in Theory of Computation Essential problems studied --- – “What are the fundamental capabilities and limitations of computers?” What can a computer do at all? --- studied in the domain of Computability! What can a computer do efficiently? --- studied in the domain of Computational complexity!

25 Problems Studied in Theory of Computation  A basic concept --- – A Turing machine conceptually is no more than a pen and a paper with several reasoning rules! Turing machine

26 Fields Related to Scope of Theory of Computation FieldsRelated theory Compiling theoryFormal languages Switching circuit theoryAutomata theory Algorithm analysisComputational complexity Natural language processingFormal languages Syntactic pattern recognitionFormal languages Programming languagesFormal languages Artificial intelligenceFormal languages and automata theory Neural networksAutomata theory

27 Applications of Theory of Computation  Applications --- – Text analysis --- text search text editing – Compiler design lexical analysis parser generation

28 Applications of Theory of Computation  Applications --- – Language design programming language design document description language design – e.g., HTML, XML, … picture language design – e.g., SVG, VHML, … special language design

29 Applications of Theory of Computation  Applications --- – Digital system design computer design special digital system design – Protocol modeling and verification – Expert system design – Cryptography …

30 Applications of Theory of Computation  A specific application --- special digital system design – Mainly based on automata theory --- using finite automata or “sequential machines” (finite automata both with input and with output) – Some specific examples of digital systems --- Elevators, vending machines, traffic signal control systems …

31 Brief History of Theory of Computation  At beginning of 19th century, mathematicians believe: Axiomatization of mathematic – That is, it is possible to decide the truth of any mathematical statement thru use of inference rules and axiom systems.

32 Brief History of Theory of Computation  In 1931, Kurt Gödel proposed the incompleteness theorem which says: the truth of certain mathematical statements cannot be proved by the use of mathematical axioms. – That is, some mathematical problems cannot be solved by algorithms.

33 Brief History of Theory of Computation  From then, the ideal of axiomatization of mathematics was broken. – Then, mathematicians started to think the scope of algorithm capabilities, design theoretical computational machines, & study their capability limitations.

34 Brief History of Theory of Computation  Many theories were proposed, but the corresponding machines could not be manufactured at that time.

35 Brief History of Theory of Computation  In 1936, Turing proposed the model of universal algorithm machine, which later was called Turing machine mentioned before.

36 Brief History of Theory of Computation  Some similar ideas were proposed by other scholars, including Stephen C. Kleene, Alonzo Church, Emil Post, etc., in different forms of models.

37 Brief History of Theory of Computation  In 1943, neural physiologists Warren S. McCulloch and Walter Pitts developed finite-state systems to simulate neural networks in biological systems.  They are pioneers of automata theory.

38 Brief History of Theory of Computation  In late 1940’s , Von Neumann proposed the idea of stored program for computer models.

39 Brief History of Theory of Computation  In 1951, a real computer following the idea of “stored program” was constructed: UNIVAC I, the world's first commercially available computer (manufactured by Eckert- Mauchly Computer Company).

40 Brief History of Theory of Computation  In late 1950’s, linguist N. Chomsky proposed a mathematical model for grammars of natural languages.  In 1956, he proposed further the concept of context-free grammar, which may be used for defining computer languages.

41 Brief History of Theory of Computation  In 1956, Kleene proposed the concept of finite automaton for simulating neural networks proposed by McCulloch and Pitts.  He also proposed regular expressions to describe strings of symbols, and proved them equivalent to finite automata.

42 Brief History of Theory of Computation  In 1959 and 1960, John W. Backus & Peter Naur proposed sequentially a special expression for computer language grammars, called later Backus-Naur form (BNF). – It was used to describe computer language ALGOL-60, leading to development of compiling theory.

43 Brief History of Theory of Computation  In 1969, Stephen A. Cook found that computation problems may be separated into tractable and intractable ones. – Intractable problems are also called NP-hard problems. – Such problems cannot be solved by computers except very small instances (with only small-sized inputs).


Download ppt "Theory of Computation. General Concepts  Scope of course – Formal languages – Automata theory – Computability – Computational complexity."

Similar presentations


Ads by Google