Theory of Computation 1 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.

Slides:



Advertisements
Similar presentations
THE PUMPING LEMMA PROVING A LANGUAGE IS NOT REGULAR Dr. Cynthia Lee - UCSD - Spring 2011 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia.
Advertisements

Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Turing Machines (At last!). Designing Universal Computational Devices Was Not The Only Contribution from Alan Turing… Enter the year 1940: The world is.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
CS1001 Lecture 23. Overview Incompleteness and the Halting Problem Incompleteness and the Halting Problem Methods in Artificial Intelligence Methods in.
Foundations of (Theoretical) Computer Science
CIS 197 Computers in Society Professor John Peterson Philosophy Week!
CS5371 Theory of Computation Lecture 10: Computability Theory I (Turing Machine)
1 Foundations of Software Design Fall 2002 Marti Hearst Lecture 29: Computability, Turing Machines, Can Computers Think?
Computability and Complexity 3-1 Turing Machine Computability and Complexity Andrei Bulatov.
Turing Machines CS 105: Introduction to Computer Science.
Theory of Computation. Computation Computation is a general term for any type of information processing that can be represented as an algorithm precisely.
More Theory of Computing
Context-Free Languages Regular Languages Violates Pumping Lemma For RLs Violates Pumping Lemma For CFLs Described by CFG, PDA 0n1n0n1n 0n1n2n0n1n2n Described.
Complexity and Computability Theory I Lecture #13 Instructor: Rina Zviel-Girshin Lea Epstein Yael Moses.
Turing Machines Chapter Plan Turing Machines(TMs) – Alan Turing Church-Turing Thesis – Definitions Computation Configuration Recognizable vs. Decidable.
CIS 197 Computers in Society Professor John Peterson Philosophy Week!
Alan Turing ( ). Early Biography Born on June 23, 1912 in London, England Attended a prestigious public school where he showed promise in math.
Theory of Computation 1 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
Theory of Computation 1 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Announcements Homework – HW8 due Tues 5/29 11am – HW5 grades are out Monday is Memorial Day; no office hours, etc. – Go see a parade, or some fireworks,
Famous Firsts in Computation MSE 2400 Evolution & Learning
The Turing machine Olena Lastivka. Definition Turing machine is a theoretical device that manipulates symbols on a strip of tape according to a table.
Theory of Computation 1 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
1.History of a remarkable Man Call “Alan Turing”. 2.Study Life. 3.Work life during the world war 2 period. 4.His achievement after the world war. 5.His.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
Introduction to CS Theory Lecture 15 –Turing Machines Piotr Faliszewski
Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
1 Computability Five lectures. Slides available from my web page There is some formality, but it is gentle,
Alan M. Turing ( ) A Natalie Cluck Presentation.
Alan Turing WWII code-breaker mathematical proof of ‘Turing machines’ …in particular, “Universal Turing machine” laid foundations of computer science father.
Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Tutorial: Reduction from A TM Proofs Dr. Cynthia Lee CSE 105, UCSD Spring 2011 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia Lee,
Halting Problem Introduction to Computing Science and Programming I.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Part 1 – Pages COMPUTABILITY THEORY.
COMM 3353 Information, Internet, and the World Wide Web M,W,F 1:00PM to 2:00PM 239 COM Shawn W. McCombs
Theory of Computation 1 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
1 GEK1530 Frederick H. Willeboordse Nature’s Monte Carlo Bakery: The Story of Life as a Complex System.
Famous Mathematicians
Turing Machines and the Halting Problem This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. To.
COMM 3353: Communication Web Technologies I M,W,F 1:00PM to 2:00PM 239 COM Shawn W. McCombs M,W,F 1:00PM to 2:00PM 239 COM Shawn W. McCombs
Computer Science 101 Theory of Computing. Computer Science is... The study of algorithms, with respect to –their formal properties –their linguistic realizations.
Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
Introduction to Programming in MATLAB Intro. MATLAB Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Theory of Computation 1 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike.
Capabilities of computing systems Numeric and symbolic Computations A look at Computability theory Turing Machines.
T. Gregory BandyInteraction Machines SeminarFebruary 21, Union College - Computer Science Graduate Program Interaction Machines Are they more.
1 Turing Machines - Chap 8 Turing Machines Recursive and Recursively Enumerable Languages.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
Umans Complexity Theory Lectures Lecture 1b: Turing Machines & Halting Problem.
Undecidability and The Halting Problem
Turing Machines. The next level of Machine… PDAs improved on FSAs by adding memory. We make the memory more flexible to do more complicated tasks.
1 Turing Machines. 2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Theory of Computation Automata Theory Dr. Ayman Srour.
MA/CSSE 474 Theory of Computation Universal Turing Machine Church-Turing Thesis (Winter 2016, these slides were also used for Day 33)
CS 154 Formal Languages and Computability April 5 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
David Evans CS200: Computer Science University of Virginia Computer Science Class 26: Halting Problem It is plain at any.
MA/CSSE 474 Theory of Computation Universal Turing Machine Church-Turing Thesis Delayed due dates for HWs See updated schedule page. No class meeting.
Introduction to Computing Science and Programming I
Turing Machines Finite State Machines.
Pumping Lemma Revisited
Alan Turing & Cryptanalysis
Chapter 3: The CHURCH-Turing thesis
Turing Machines (11.5) Based on slides by Costas Busch from the course
Presentation transcript:

Theory of Computation 1 Theory of Computation Peer Instruction Lecture Slides by Dr. Cynthia Lee, UCSD are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Based on a work at Cynthia Lee, UCSDCreative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported Licensewww.peerinstruction4cs.org

FAMOUS PEOPLE: ALAN TURING “Father of Computer Science”

Famous People: Alan Turing “Father of Computer Science” Born in England in 1912 Studied at University of Cambridge (UK) Contributions to: – Computer Science – Logic – Artificial Intelligence – Cryptography 3

During WWII German “Enigma” machine was used to send sophisticated encrypted messages Cracking the Enigma code a major factor in course of the war – First cracked by Polish investigators, who shared techniques with England – Turing and others devised further ways of detecting configurations – Allowed England to know which cities were going to be bombed, U-boat whereabouts, etc Enigma configuration rotors 4

Artificial Intelligence How will we know if/ when computers have achieved enough sophistication to be called intelligent? Alan Turing proposed the “Turing Test” – A human tester chats with a human and computer – Can the tester reliably identify which is which? 5 In this Jeopardy! challenge, the identities were not hidden, so it was not a Turing Test format. But it was a remarkable display of the kind of power that Turing predicted machines could have.

Turing Machine design – Talk about this starting today (!!) Church-Turing thesis Halting problem undecidability – Talk about these over the next two weeks Current Events In 2009, British government issued a formal apology for its persecution of Turing, which may have led to his suicide at just 41 years old – Alan Turing was a gay man, and homosexuality was crime in England at that time – Government forced him to undergo “treatments” with terrible side effects 6 Turing’s Three Major Contributions in this Course

TURING MACHINES At last we reach: 7

Turing Machine Model 8

Why do we care about Turing Machines? All modern computers follow the Turing Machine model – CPU = TM control – Memory = TM tape – This division seems obvious now, but is the core of Turing’s model Our memory isn’t infinite  – Theoretical analysis of TMs answers the question: what kinds of problems could we solve (or can’t we solve), if we didn’t have to worry about memory limitations (sometimes with computing “cloud” it feels like we’re almost to that point!) “Memory” can include all levels of the memory hierarchy (more about this in CSE 141): RAM, disk, etc 9

Turing Machine Formal Description In the TM transition function δ: QxΓ -> QxΓx{L,R}, in other words, a given input of the transition function is: a)A current state, a character read, and whether we came from the left or right b)A current state, a character read c)A current state, a character to write d)A destination state, a character read e)None of the above or more than one of the above 10

Turing Machine Formal Description In the TM transition function δ: QxΓ -> QxΓx{L,R}, in other words, a given output of the transition function is: a)A current state, a character read, and whether we came from the left or right b)A current state, a character to write, and whether we should next go left or right c)A destination state, a character read, and whether we should write ‘L’ or ‘R’ d)A destination state, a character to write, and whether we should next go left or right e)None of the above or more than one of the above 11

Executing a Transition, “yields” Suppose we have at TM s.t. Γ={a,b,c,d,_}, Q = {q x | 1≤x≤10} U {q acc,q rej }, and the transition function includes rules δ(q 1,a) = (q 3,b,R) and δ(q 1,b) = (q 3,a,L). We also have strings x,y in Γ*. Which configuration does the current configuration, xbq 1 ay, yield? a)xq 3 bay b)xbbq 3 y c)xbaq 3 by d)xq 3 aay e)None of the above or more than one of the above 12

Executing a Transition, “yields” Suppose we have at TM s.t. Γ={0,1,_}, Q = {q x | 1≤x≤7} U {q acc,q rej }, and the transition function includes rules δ(q 2,1) = (q 1,0,R) and δ(q 2,0) = (q 1,1,L). We also have strings x,y in Γ*. Which configuration does the current configuration, x0q 2 1y, yield? a)xq 1 01y b)x01q 1 y c)x00q 1 y d)xq 1 11y e)None of the above or more than one of the above 13

Executing a Transition, “yields” Suppose we have at TM s.t. Γ={a,b,c,d,_}, Q = {q 1, q 2, q 3, q 4,q acc,q rej }, and the transition function includes rules δ(q 2,c) = (q 3,d,R) and δ(q 2,d) = (q 3,c,L). We also have strings u,v,x,y in Γ*. Which configuration does the current configuration, xcq 2 dy, yield? a)xq 3 ddy b)xcdq 3 y c)xq 3 ccy d)xq 3 ccdy e)None of the above or more than one of the above 14

More Transition Function (a) TRUE (b) FALSE x0q rej 11y yields x01q 1 1y can never happen in any Turing Machine 15