CS 101 – Sept. 18 Adder circuit example (handout) How computers think –Concept of “state” –Turing machine model –Finite state machine model a.k.a. “Finite.

Slides:



Advertisements
Similar presentations
CS 345: Chapter 9 Algorithmic Universality and Its Robustness
Advertisements

8/25/2009 Sofya Raskhodnikova Intro to Theory of Computation L ECTURE 1 Theory of Computation Course information Overview of the area Finite Automata Sofya.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Pages COMPUTABILITY THEORY.
1 Welcome to CS105 and Happy and fruitful New Year שנה טובה (Happy New Year)
DFA Minimization Jeremy Mange CS 6800 Summer 2009.
CS 461 – Oct. 21 Begin chapter 3 We need a better (more encompassing) model of computation. Ex. { 1 n 2 n 3 n } couldn’t be accepted by PDA. –How could.
Software Engineering, COMP 201 Slide 1 Automata and Formal Languages Moore and Mealy Automata Ralf Möller Hamburg Univ. of Technology based on slides by.
January 5, 2015CS21 Lecture 11 CS21 Decidability and Tractability Lecture 1 January 5, 2015.
Computability and Complexity 4-1 Existence of Undecidable Problems Computability and Complexity Andrei Bulatov.
CS21 Decidability and Tractability
CS5371 Theory of Computation
Finite Automata Finite-state machine with no output. FA consists of States, Transitions between states FA is a 5-tuple Example! A string x is recognized.
Lecture 3 Goals: Formal definition of NFA, acceptance of a string by an NFA, computation tree associated with a string. Algorithm to convert an NFA to.
CS 310 – Fall 2006 Pacific University CS310 Turing Machines Section 3.1 November 6, 2006.
1 Finite Automata. 2 Finite Automaton Input “Accept” or “Reject” String Finite Automaton Output.
CS294-6 Reconfigurable Computing Day 3 September 1, 1998 Requirements for Computing Devices.
Costas Busch - RPI1 CSCI-2400 Models of Computation.
Finite Automata Chapter 5. Formal Language Definitions Why need formal definitions of language –Define a precise, unambiguous and uniform interpretation.
Fall 2006Costas Busch - RPI1 CSCI-2400 Models of Computation.
Turing Machines CS 105: Introduction to Computer Science.
CSC 361Finite Automata1. CSC 361Finite Automata2 Formal Specification of Languages Generators Grammars Context-free Regular Regular Expressions Recognizers.
Grammars, Languages and Finite-state automata Languages are described by grammars We need an algorithm that takes as input grammar sentence And gives a.
1 Non-Deterministic Finite Automata. 2 Alphabet = Nondeterministic Finite Automaton (NFA)
AUTOMATA THEORY VIII.
Functions Definition & purpose Notation Functions on binary / returning binary values Finite automaton model We haven’t completely left the world of counting.
Introduction to the Theory of Computation
Lecture 23: Finite State Machines with no Outputs Acceptors & Recognizers.
1 An Introduction to Formal Languages and Automata Provided by : Babak Salimi webAdd:
CSCI 2670 Introduction to Theory of Computing September 28, 2005.
REGULAR LANGUAGES.
The Game of Life Erik Amelia Amy. What is the “Game of Life?” The “Game of Life” (often referred to as Life) is not your typical game. There are no actual.
Computer System Building blocks of a computer system: Using bits –Binary data and operations –Logic gates Units of measuring amount of data CPU vs. memory.
THE CHURCH-TURING T H E S I S “ TURING MACHINES” Part 1 – Pages COMPUTABILITY THEORY.
Computer Science 101 Theory of Computing. Computer Science is... The study of algorithms, with respect to –their formal properties –their linguistic realizations.
Models of Computation. Computation: Computation is a general term for any type of information processing information processing CPU memory.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
Finite State Machines CS147 : Presentation by Mabel Thong (9/25/07)
Computing Machinery Chapter 4: Finite State Machines.
Formal Languages Finite Automata Dr.Hamed Alrjoub 1FA1.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 3 The Church-Turing Thesis Contents Turing Machines definitions, examples,
1 Introduction to Turing Machines
CS150: Computer Organization and Architecture Michael D. Wilder, Ph.D.
Theory of Computation Automata Theory Dr. Ayman Srour.
Fall 2004COMP 3351 Finite Automata. Fall 2004COMP 3352 Finite Automaton Input String Output String Finite Automaton.
Introduction to Automata Theory Theory of Computation Lecture 3 Tasneem Ghnaimat.
Finite Automata.
Formal Foundations-II [Theory of Automata]
Turing Machines Finite State Machines.
CS-300 Theory of Computation 2nd Sem 2017 Lecture 1.
Introduction to the Theory of Computation
PROGRAMMING LANGUAGES
The Encoding of TM Motivation for encoding of TM
CSC312 Automata Theory Chapter # 5 by Cohen Finite Automata
OTHER MODELS OF TURING MACHINES
Finite State Machines Computer theory covers several types of abstract machines, including Finite State Machines.
Jeremy R. Johnson Mon. Apr. 3, 2000
Finite State Machines.
CSE322 Finite Automata Lecture #2.
Chapter 3: The CHURCH-Turing thesis
CSCI-2400 Models of Computation Costas Busch - RPI.
Deterministic Finite Automata And Regular Languages Prof. Busch - LSU.
CSE322 Definition and description of finite Automata
Principles of Computing – UFCFA3-30-1
CSC312 Automata Theory Chapter # 5 by Cohen Finite Automata
P.V.G’s College of Engineering, Nashik
Principles of Computing – UFCFA3-30-1
Finite Automata with Output
Chapter # 5 by Cohen (Cont…)
Non Deterministic Automata
Part One : Deterministic Finite Automata
Presentation transcript:

CS 101 – Sept. 18 Adder circuit example (handout) How computers think –Concept of “state” –Turing machine model –Finite state machine model a.k.a. “Finite automaton”

State Fundamental concept for any computation –Machine keeps track of where it is, what it needs –a.k.a. Status, mode –state may be stored in some memory cell Many examples –Logging in –Using a dialog box, or other user-interface –Fax machine, photocopier, telephone –Car transmission

Examples In a Tic-Tac-Toe game, the “state” of the game would include: –Whose turn it is –Is the game over? Who won, or was it a tie? State is determined by looking at the board. Backgammon (roll dice, move pieces…) –Depending on your situation in the game, some moves are illegal. Another way to think about states is to consider all possible board configurations!

Turing machine Alan Turing, 1936 Any general purpose machine must: –Work automatically –Be aware of what state it’s in –Have sufficient memory –Be able to do I/O, and be able to read the input many times if necessary Powerful model, but tedious to work with

Adder example 4 possible states, depending on the inputs –For example, (S = 0 and C = 0) would be one outcome. Programming the details make working with real TMs a headache. x y z S C

Finite Automata singular: finite automaton Simple model for machine behavior. Purpose is to accept or reject some input –Examples: logging in, using a wizard, game At any given time, machine is in some “state” –Start state –Final (or accept, “happy”) states –Dead states Transitions between states

Example Vending machine for 25¢ item

Binary example We want a “word” starting with “101…” need 101 need 01 need 1  ,1

Binary Example (2) We want a word with at least two 0’s. need two need one ,1 What if we wanted exactly two 0’s?

What does this FA do? A B