Time Magazine (1984)

Size: px
Start display at page:

Download "Time Magazine (1984)"

Transcription

1

2 Time Magazine (1984) Put the right kind of software into a computer, and it will do whatever you want it to. There may be limits on what you can do with the machines themselves, but there are no limits on what you can do with software.

3 Faster than a Busy Beaver

4 (define (c) (define (b n)...) (+ 1 (b (* N 5))))

5 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 4 Why Study Theory? Basic Computer Science Issues What is a computation? Are computers omnipotent? What are the fundamental capabilities and limitations of computers? Pragmatic Reasons Avoid intractable or impossible problems. Apply efficient algorithms when possible. Learn to tell the difference.

6 A 2-MINUTE PROOF OF THE 2nd-MOST IMPORTANT THEOREM OF THE 2nd MILLENUIUM by Doron Zeilberger Written: Oct. 4, 1998

7 Kurt Gödel (1931) The (First) Incompleteness Theorem The most important theorem of the second millennium No formal logic for arithmetic can prove everything that is true x n +y n =z n has a solution only if n=2

8 Proof 1. Imagine some program halt(p,x) that answers yes when p(x) halts and no otherwise. 2. Construct the program alan(p) = if halt(p,p) says yes then do nothing forever otherwise answer yes 3. Consider the question halt(alan,alan).

9 Proof 1. Imagine some program halt(p,x) that answers yes when p(x) halts and no otherwise. 2. Construct the program alan(alan) = if halt(alan,alan) says yes then do nothing forever otherwise answer yes 3. Consider the question halt(alan,alan).

10 Proof 1. Imagine some program halt(p,x) that answers yes when p(x) halts and no otherwise. 2. Construct the program alan(alan) = if halt(alan,alan) says yes then do nothing forever otherwise answer yes 3. Consider the question halt(alan,alan). If it answers yes, it halts, in fact alan(alan) loops forever

11 Proof 1. Imagine some program halt(p,x) that answers yes when p(x) halts and no otherwise. 2. Construct the program alan(alan) = if halt(alan,alan) says yes then do nothing forever otherwise answer yes 3. Consider the question halt(alan,alan). If it answers no, it loops, in fact alan(alan) halts with answer yes

12 Proof 1. Imagine some program halt(p,x) that answers yes when p(x) halts and no otherwise. 2. Construct the program alan(alan) = if halt(alan,alan) says yes then do nothing forever otherwise answer yes 3. Consider the question halt(alan,alan). If it never answers, then it s also no good.

13 Epimenides (-550) All Cretans are liars... One of their own poets has said so.

14 Socrates (-400) One thing that I know is that I know nothing

15 Eubulides (-350) This statement is false!

16 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 9 Some Other Undecidable Problems Does a program run forever? Is a program correct? Are two programs equivalent? Is a program optimal (time wise is it the fastest program solving a specific problem)? Does a polynomial equation with one or more variables and integer coefficients (e.g. 5x +15y +19xyz 2 =12) have an integer solution (Hilbert s 10th problem). Is a finitely-presented group trivial? Given a string, x, how compressible is it?

17 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Critical CS Questions What is a computer? And What is a Computation?

18 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Critical CS Questions What is a computer? And What is a Computation? real computers too complex for any theory

19 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Critical CS Questions What is a computer? And What is a Computation? real computers too complex for any theory need manageable mathematical abstraction

20 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Critical CS Questions What is a computer? And What is a Computation? real computers too complex for any theory need manageable mathematical abstraction idealized models: accurate in some ways, but not in all details

21 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 2 Finite Automata formal definition of finite automata

22 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 2 Finite Automata formal definition of finite automata deterministic vs. non-deterministic finite automata

23 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 2 Finite Automata formal definition of finite automata deterministic vs. non-deterministic finite automata regular languages

24 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 2 Finite Automata formal definition of finite automata deterministic vs. non-deterministic finite automata regular languages operations on regular languages

25 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 2 Finite Automata formal definition of finite automata deterministic vs. non-deterministic finite automata regular languages operations on regular languages regular expressions

26 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 3 Example: A One-Way Automatic Door front pad rear pad door open when person approaches

27 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 3 Example: A One-Way Automatic Door front pad rear pad door open when person approaches hold open until person clears

28 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 3 Example: A One-Way Automatic Door front pad rear pad door open when person approaches hold open until person clears don t open when someone standing behind door

29 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 4 The Automatic Door as DFA REAR BOTH NEITHER closed FRONT open FRONT REAR BOTH States: OPEN CLOSED NEITHER

30 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 4 The Automatic Door as DFA REAR BOTH NEITHER closed FRONT open FRONT REAR BOTH States: OPEN CLOSED NEITHER Sensor: FRONT: someone on front pad REAR: someone on rear pad BOTH: someone(s) on both pads NEITHER no one on either pad.

31 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 5 The Automatic Door as DFA DFA is Deterministic Finite Automata

32 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 5 The Automatic Door as DFA DFA is Deterministic Finite Automata REAR BOTH NEITHER closed FRONT open FRONT REAR BOTH NEITHER

33 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 5 The Automatic Door as DFA DFA is Deterministic Finite Automata REAR BOTH NEITHER closed FRONT open FRONT REAR BOTH NEITHER neither front rear both closed closed open closed closed open closed open open open

34 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 6 DFA: Informal Definition q 1 q q 2 3 0,1 The machine M 1 : states: q 1,q 2, and q 3.

35 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 6 DFA: Informal Definition q 1 q q 2 3 0,1 The machine M 1 : states: q 1,q 2, and q 3. start state: q 1 (arrow from outside ).

36 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 7 DFA: Informal Definition (cont.) q 1 q q 2 3 0,1 On an input string DFA begins in start state q 1 after reading each symbol, DFA makes state transition with matching label.

37 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 7 DFA: Informal Definition (cont.) q 1 q q 2 3 0,1 On an input string DFA begins in start state q 1 after reading each symbol, DFA makes state transition with matching label. After reading last symbol, DFA produces output: accept if DFA is an accepting state. reject otherwise.

38 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 8 Informal Definition - Example q 1 q q 2 3 0,1 What happens on input strings 1101

39 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 8 Informal Definition - Example q 1 q q 2 3 0,1 What happens on input strings

40 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 8 Informal Definition - Example q 1 q q 2 3 0,1 What happens on input strings

41 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 8 Informal Definition - Example q 1 q q 2 3 0,1 What happens on input strings In general?!

42 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 9 Informal Definition q 1 q q 2 3 This DFA accepts all input strings that end with a 1 0,1 all input strings that contain at least one 1, and end with an even number of 0 s no other strings

43 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 10 Languages and Alphabets An alphabet Σ is a finite set of letters. Σ = {a, b, c,..., z} the English alphabet. Σ = {α, β, γ,...,ζ} the Greek alphabet. Σ = {0, 1} the binary alphabet. Σ = {0, 1,...,9} the digital alphabet.

44 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 10 Languages and Alphabets An alphabet Σ is a finite set of letters. Σ = {a, b, c,..., z} the English alphabet. Σ = {α, β, γ,...,ζ} the Greek alphabet. Σ = {0, 1} the binary alphabet. Σ = {0, 1,...,9} the digital alphabet. The collection of all strings over Σ is denoted by Σ.

45 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 10 Languages and Alphabets An alphabet Σ is a finite set of letters. Σ = {a, b, c,..., z} the English alphabet. Σ = {α, β, γ,...,ζ} the Greek alphabet. Σ = {0, 1} the binary alphabet. Σ = {0, 1,...,9} the digital alphabet. The collection of all strings over Σ is denoted by Σ. For the binary alphabet, ε, 1, 0, , are all members of Σ.

46 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 11 Languages and Examples A language over Σ is a subset L Σ. For example Modern English. Ancient Greek. All prime numbers, written using digits. A = {w w has at most seventeen 0 s}. B = {0 n 1 n n 0}. C = {w w has an equal number of 0 s and 1 s}.

47 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 12 Languages and DFA Definition: L(M), the language of a DFA M, is the set of strings L that M accepts, L(M) =L.

48 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 12 Languages and DFA Definition: L(M), the language of a DFA M, is the set of strings L that M accepts, L(M) =L. Note that M may accept many strings, but M accepts only one language.

49 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 12 Languages and DFA Definition: L(M), the language of a DFA M, is the set of strings L that M accepts, L(M) =L. Note that M may accept many strings, but M accepts only one language. What language does M accept if it accepts no strings?

50 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 12 Languages and DFA Definition: L(M), the language of a DFA M, is the set of strings L that M accepts, L(M) =L. Note that M may accept many strings, but M accepts only one language. What language does M accept if it accepts no strings? A language is called regular if some deterministic finite automaton accepts it.

51 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 13 Formal Definitions A deterministic finite automaton (DFA) is a 5-tuple (Q, Σ, δ,q 0,F), where Q is a finite set called the states, Σ is a finite set called the alphabet, δ : Q Σ Q is the transition function, q 0 Q is the start state, and F Q is the set of accept states.

52 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 14 Back to M q 1 q q 2 3 0,1 M 1 =(Q, Σ, δ,q 1,F) where Q = {q 1,q 2,q 3 }, Σ = {0, 1},

53 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 14 Back to M q 1 q q 2 3 0,1 M 1 =(Q, Σ, δ,q 1,F) where Q = {q 1,q 2,q 3 }, Σ = {0, 1}, 0 1 the transition function δ is q 1 q 1 q 2 q 2 q 3 q 2 q 3 q 2 q 2

54 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 14 Back to M q 1 q q 2 3 0,1 M 1 =(Q, Σ, δ,q 1,F) where Q = {q 1,q 2,q 3 }, Σ = {0, 1}, 0 1 the transition function δ is q 1 is the start state, and F = {q 2 }. q 1 q 1 q 2 q 2 q 3 q 2 q 3 q 2 q 2

55 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 15 Another Example a s b a q 1 r 1 b b a a b b q 2 r 2 a

56 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 17 A Formal Model of Computation Let M = (Q, Σ, δ,q 0,F) be a DFA, and let w = w 1 w 2 w n be a string over Σ. We say that M accepts w if there is a sequence of states r 0,...,r n (r i Q) such that r 0 = q 0 δ(r i,w i+1 )=r i+1, 0 i<n r n F

57 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 18 The Regular Operations Let A and B be languages. The union operation: A B = {x x A or x B} The concatenation operation: A B = {xy x A and y B} The star operation: A = {x 1 x 2...x k k 0 and each x i A}

58 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 19 The Regular Operations Examples Let A= {good, bad} and B = {boy, girl}. Union A B = {good, bad, boy, girl} Concatenation A B = {goodboy, goodgirl, badboy, badgirl} Star A = {ε, good, bad, goodgood, goodbad, badbad, badgood,...}

59 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 20 Claim: Closure Under Union If A 1 and A 2 are regular languages, so is A 1 A 2.

60 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 20 Claim: Closure Under Union If A 1 and A 2 are regular languages, so is A 1 A 2. Approach to Proof: some M 1 accepts A 1 some M 2 accepts A 2 construct M that accepts A 1 A 2.

61 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 20 Claim: Closure Under Union If A 1 and A 2 are regular languages, so is A 1 A 2. Approach to Proof: some M 1 accepts A 1 some M 2 accepts A 2 construct M that accepts A 1 A 2. Attempted Proof Idea: first simulate M 1, and if M 1 doesn t accept, then simulate M 2.

62 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 20 Claim: Closure Under Union If A 1 and A 2 are regular languages, so is A 1 A 2. Approach to Proof: some M 1 accepts A 1 some M 2 accepts A 2 construct M that accepts A 1 A 2. Attempted Proof Idea: first simulate M 1, and if M 1 doesn t accept, then simulate M 2. What s wrong with this?

63 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 20 Claim: Closure Under Union If A 1 and A 2 are regular languages, so is A 1 A 2. Approach to Proof: some M 1 accepts A 1 some M 2 accepts A 2 construct M that accepts A 1 A 2. Attempted Proof Idea: first simulate M 1, and if M 1 doesn t accept, then simulate M 2. What s wrong with this? Fix: Simulate both machines simultaneously.

64 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 21 Closure Under Union: Correct Proof Suppose M 1 =(Q 1, Σ, δ 1,q 1,F 1 ) accepts L 1, and M 2 =(Q 2, Σ, δ 2,q 2,F 2 ) accepts L 2.

65 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 21 Closure Under Union: Correct Proof Suppose M 1 =(Q 1, Σ, δ 1,q 1,F 1 ) accepts L 1, and M 2 =(Q 2, Σ, δ 2,q 2,F 2 ) accepts L 2. Define M as follows (M will accept L 1 L 2 ): Q = Q 1 Q 2. Σ is the same.

66 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 21 Closure Under Union: Correct Proof Suppose M 1 =(Q 1, Σ, δ 1,q 1,F 1 ) accepts L 1, and M 2 =(Q 2, Σ, δ 2,q 2,F 2 ) accepts L 2. Define M as follows (M will accept L 1 L 2 ): Q = Q 1 Q 2. Σ is the same. For each (r 1,r 2 ) Q and a Σ, δ((r 1,r 2 ),a)=(δ 1 (r 1,a), δ 2 (r 2,a))

67 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 21 Closure Under Union: Correct Proof Suppose M 1 =(Q 1, Σ, δ 1,q 1,F 1 ) accepts L 1, and M 2 =(Q 2, Σ, δ 2,q 2,F 2 ) accepts L 2. Define M as follows (M will accept L 1 L 2 ): Q = Q 1 Q 2. Σ is the same. For each (r 1,r 2 ) Q and a Σ, δ((r 1,r 2 ),a)=(δ 1 (r 1,a), δ 2 (r 2,a)) q 0 =(q 1,q 2 )

68 Slides modified by Yishay mansour on a modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 21 Closure Under Union: Correct Proof Suppose M 1 =(Q 1, Σ, δ 1,q 1,F 1 ) accepts L 1, and M 2 =(Q 2, Σ, δ 2,q 2,F 2 ) accepts L 2. Define M as follows (M will accept L 1 L 2 ): Q = Q 1 Q 2. Σ is the same. For each (r 1,r 2 ) Q and a Σ, δ((r 1,r 2 ),a)=(δ 1 (r 1,a), δ 2 (r 2,a)) q 0 =(q 1,q 2 ) F = {(r 1,r 2 ) r 1 F 1 or r 2 F 2 }.

Critical CS Questions

Critical CS Questions Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Critical CS Questions What is a computer? And What is a Computation? real computers too complex for any

More information

Computational Models - Lecture 1 1

Computational Models - Lecture 1 1 Computational Models - Lecture 1 1 Handout Mode Ronitt Rubinfeld and Iftach Haitner. Tel Aviv University. February 29/ March 02, 2016 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames

More information

Computational Models #1

Computational Models #1 Computational Models #1 Handout Mode Nachum Dershowitz & Yishay Mansour March 13-15, 2017 Nachum Dershowitz & Yishay Mansour Computational Models #1 March 13-15, 2017 1 / 41 Lecture Outline I Motivation

More information

Computational Models: Class 1

Computational Models: Class 1 Computational Models: Class 1 Benny Chor School of Computer Science Tel Aviv University October 19, 2015 Based on slides by Maurice Herlihy, Brown University, and modifications by Iftach Haitner and Yishay

More information

Non-Deterministic Finite Automata

Non-Deterministic Finite Automata Slides modified Yishay Mansour on modification by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 8 Non-Deterministic Finite Automata 0,1 0,1 0 0,ε q q 1 q 2 3 1 q 4 an NFA

More information

CISC 4090: Theory of Computation Chapter 1 Regular Languages. Section 1.1: Finite Automata. What is a computer? Finite automata

CISC 4090: Theory of Computation Chapter 1 Regular Languages. Section 1.1: Finite Automata. What is a computer? Finite automata CISC 4090: Theory of Computation Chapter Regular Languages Xiaolan Zhang, adapted from slides by Prof. Werschulz Section.: Finite Automata Fordham University Department of Computer and Information Sciences

More information

CPS 220 Theory of Computation REGULAR LANGUAGES

CPS 220 Theory of Computation REGULAR LANGUAGES CPS 22 Theory of Computation REGULAR LANGUAGES Introduction Model (def) a miniature representation of a thing; sometimes a facsimile Iraq village mockup for the Marines Scientific modelling - the process

More information

CHAPTER 1 Regular Languages. Contents

CHAPTER 1 Regular Languages. Contents Finite Automata (FA or DFA) CHAPTER Regular Languages Contents definitions, examples, designing, regular operations Non-deterministic Finite Automata (NFA) definitions, euivalence of NFAs and DFAs, closure

More information

UNIT-III REGULAR LANGUAGES

UNIT-III REGULAR LANGUAGES Syllabus R9 Regulation REGULAR EXPRESSIONS UNIT-III REGULAR LANGUAGES Regular expressions are useful for representing certain sets of strings in an algebraic fashion. In arithmetic we can use the operations

More information

acs-04: Regular Languages Regular Languages Andreas Karwath & Malte Helmert Informatik Theorie II (A) WS2009/10

acs-04: Regular Languages Regular Languages Andreas Karwath & Malte Helmert Informatik Theorie II (A) WS2009/10 Regular Languages Andreas Karwath & Malte Helmert 1 Overview Deterministic finite automata Regular languages Nondeterministic finite automata Closure operations Regular expressions Nonregular languages

More information

Computational Models Lecture 2 1

Computational Models Lecture 2 1 Computational Models Lecture 2 1 Handout Mode Ronitt Rubinfeld and Iftach Haitner. Tel Aviv University. March 16/18, 2015 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

Computational Models Lecture 2 1

Computational Models Lecture 2 1 Computational Models Lecture 2 1 Handout Mode Iftach Haitner. Tel Aviv University. October 30, 2017 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice Herlihy, Brown University.

More information

Computational Models - Lecture 5 1

Computational Models - Lecture 5 1 Computational Models - Lecture 5 1 Handout Mode Iftach Haitner and Yishay Mansour. Tel Aviv University. April 10/22, 2013 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

Computational Models Lecture 8 1

Computational Models Lecture 8 1 Computational Models Lecture 8 1 Handout Mode Nachum Dershowitz & Yishay Mansour. Tel Aviv University. May 17 22, 2017 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

What we have done so far

What we have done so far What we have done so far DFAs and regular languages NFAs and their equivalence to DFAs Regular expressions. Regular expressions capture exactly regular languages: Construct a NFA from a regular expression.

More information

Computational Models: Class 3

Computational Models: Class 3 Computational Models: Class 3 Benny Chor School of Computer Science Tel Aviv University November 2, 2015 Based on slides by Maurice Herlihy, Brown University, and modifications by Iftach Haitner and Yishay

More information

Introduction to Languages and Computation

Introduction to Languages and Computation Introduction to Languages and Computation George Voutsadakis 1 1 Mathematics and Computer Science Lake Superior State University LSSU Math 400 George Voutsadakis (LSSU) Languages and Computation July 2014

More information

Nondeterministic Finite Automata

Nondeterministic Finite Automata Nondeterministic Finite Automata Not A DFA Does not have exactly one transition from every state on every symbol: Two transitions from q 0 on a No transition from q 1 (on either a or b) Though not a DFA,

More information

CS 154. Finite Automata, Nondeterminism, Regular Expressions

CS 154. Finite Automata, Nondeterminism, Regular Expressions CS 54 Finite Automata, Nondeterminism, Regular Expressions Read string left to right The DFA accepts a string if the process ends in a double circle A DFA is a 5-tuple M = (Q, Σ, δ, q, F) Q is the set

More information

Computational Models

Computational Models Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Computational Models Inroduction to the Theory of Computing Instructor: Prof. Benny Chor (benny at cs

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 5-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY NON-DETERMINISM and REGULAR OPERATIONS THURSDAY JAN 6 UNION THEOREM The union of two regular languages is also a regular language Regular Languages Are

More information

Theory of Computation (I) Yijia Chen Fudan University

Theory of Computation (I) Yijia Chen Fudan University Theory of Computation (I) Yijia Chen Fudan University Instructor Yijia Chen Homepage: http://basics.sjtu.edu.cn/~chen Email: yijiachen@fudan.edu.cn Textbook Introduction to the Theory of Computation Michael

More information

UNIT-I. Strings, Alphabets, Language and Operations

UNIT-I. Strings, Alphabets, Language and Operations UNIT-I Strings, Alphabets, Language and Operations Strings of characters are fundamental building blocks in computer science. Alphabet is defined as a non empty finite set or nonempty set of symbols. The

More information

Computational Models - Lecture 4

Computational Models - Lecture 4 Computational Models - Lecture 4 Regular languages: The Myhill-Nerode Theorem Context-free Grammars Chomsky Normal Form Pumping Lemma for context free languages Non context-free languages: Examples Push

More information

CS 455/555: Finite automata

CS 455/555: Finite automata CS 455/555: Finite automata Stefan D. Bruda Winter 2019 AUTOMATA (FINITE OR NOT) Generally any automaton Has a finite-state control Scans the input one symbol at a time Takes an action based on the currently

More information

Theory of Languages and Automata

Theory of Languages and Automata Theory of Languages and Automata Chapter 1- Regular Languages & Finite State Automaton Sharif University of Technology Finite State Automaton We begin with the simplest model of Computation, called finite

More information

CISC 4090 Theory of Computation

CISC 4090 Theory of Computation 9/2/28 Stereotypical computer CISC 49 Theory of Computation Finite state machines & Regular languages Professor Daniel Leeds dleeds@fordham.edu JMH 332 Central processing unit (CPU) performs all the instructions

More information

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism,

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism, CS 54, Lecture 2: Finite Automata, Closure Properties Nondeterminism, Why so Many Models? Streaming Algorithms 0 42 Deterministic Finite Automata Anatomy of Deterministic Finite Automata transition: for

More information

Nondeterministic finite automata

Nondeterministic finite automata Lecture 3 Nondeterministic finite automata This lecture is focused on the nondeterministic finite automata (NFA) model and its relationship to the DFA model. Nondeterminism is an important concept in the

More information

Computational Models - Lecture 3

Computational Models - Lecture 3 Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Computational Models - Lecture 3 Equivalence of regular expressions and regular languages (lukewarm leftover

More information

Computational Models Lecture 8 1

Computational Models Lecture 8 1 Computational Models Lecture 8 1 Handout Mode Ronitt Rubinfeld and Iftach Haitner. Tel Aviv University. April 18/ May 2, 2016 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

Computational Models: Class 5

Computational Models: Class 5 Computational Models: Class 5 Benny Chor School of Computer Science Tel Aviv University March 27, 2019 Based on slides by Maurice Herlihy, Brown University, and modifications by Iftach Haitner and Yishay

More information

Computational Models - Lecture 3 1

Computational Models - Lecture 3 1 Computational Models - Lecture 3 1 Handout Mode Iftach Haitner and Yishay Mansour. Tel Aviv University. March 13/18, 2013 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

Proving languages to be nonregular

Proving languages to be nonregular Proving languages to be nonregular We already know that there exist languages A Σ that are nonregular, for any choice of an alphabet Σ. This is because there are uncountably many languages in total and

More information

Computational Models Lecture 8 1

Computational Models Lecture 8 1 Computational Models Lecture 8 1 Handout Mode Ronitt Rubinfeld and Iftach Haitner. Tel Aviv University. May 11/13, 2015 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

Computational Models Lecture 9, Spring 2009

Computational Models Lecture 9, Spring 2009 Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Computational Models Lecture 9, Spring 2009 Reducibility among languages Mapping reductions More undecidable

More information

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS Automata Theory Lecture on Discussion Course of CS2 This Lecture is about Mathematical Models of Computation. Why Should I Care? - Ways of thinking. - Theory can drive practice. - Don t be an Instrumentalist.

More information

Languages, regular languages, finite automata

Languages, regular languages, finite automata Notes on Computer Theory Last updated: January, 2018 Languages, regular languages, finite automata Content largely taken from Richards [1] and Sipser [2] 1 Languages An alphabet is a finite set of characters,

More information

CS 154, Lecture 3: DFA NFA, Regular Expressions

CS 154, Lecture 3: DFA NFA, Regular Expressions CS 154, Lecture 3: DFA NFA, Regular Expressions Homework 1 is coming out Deterministic Finite Automata Computation with finite memory Non-Deterministic Finite Automata Computation with finite memory and

More information

Great Theoretical Ideas in Computer Science. Lecture 4: Deterministic Finite Automaton (DFA), Part 2

Great Theoretical Ideas in Computer Science. Lecture 4: Deterministic Finite Automaton (DFA), Part 2 5-25 Great Theoretical Ideas in Computer Science Lecture 4: Deterministic Finite Automaton (DFA), Part 2 January 26th, 27 Formal definition: DFA A deterministic finite automaton (DFA) M =(Q,,,q,F) M is

More information

COM364 Automata Theory Lecture Note 2 - Nondeterminism

COM364 Automata Theory Lecture Note 2 - Nondeterminism COM364 Automata Theory Lecture Note 2 - Nondeterminism Kurtuluş Küllü March 2018 The FA we saw until now were deterministic FA (DFA) in the sense that for each state and input symbol there was exactly

More information

Lecture 3: Nondeterministic Finite Automata

Lecture 3: Nondeterministic Finite Automata Lecture 3: Nondeterministic Finite Automata September 5, 206 CS 00 Theory of Computation As a recap of last lecture, recall that a deterministic finite automaton (DFA) consists of (Q, Σ, δ, q 0, F ) where

More information

Undecidability COMS Ashley Montanaro 4 April Department of Computer Science, University of Bristol Bristol, UK

Undecidability COMS Ashley Montanaro 4 April Department of Computer Science, University of Bristol Bristol, UK COMS11700 Undecidability Department of Computer Science, University of Bristol Bristol, UK 4 April 2014 COMS11700: Undecidability Slide 1/29 Decidability We are particularly interested in Turing machines

More information

Chapter Five: Nondeterministic Finite Automata

Chapter Five: Nondeterministic Finite Automata Chapter Five: Nondeterministic Finite Automata From DFA to NFA A DFA has exactly one transition from every state on every symbol in the alphabet. By relaxing this requirement we get a related but more

More information

Introduction to Turing Machines. Reading: Chapters 8 & 9

Introduction to Turing Machines. Reading: Chapters 8 & 9 Introduction to Turing Machines Reading: Chapters 8 & 9 1 Turing Machines (TM) Generalize the class of CFLs: Recursively Enumerable Languages Recursive Languages Context-Free Languages Regular Languages

More information

Introduction to the Theory of Computing

Introduction to the Theory of Computing Introduction to the Theory of Computing Lecture notes for CS 360 John Watrous School of Computer Science and Institute for Quantum Computing University of Waterloo June 27, 2017 This work is licensed under

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 15-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY REVIEW for MIDTERM 1 THURSDAY Feb 6 Midterm 1 will cover everything we have seen so far The PROBLEMS will be from Sipser, Chapters 1, 2, 3 It will be

More information

Proofs, Strings, and Finite Automata. CS154 Chris Pollett Feb 5, 2007.

Proofs, Strings, and Finite Automata. CS154 Chris Pollett Feb 5, 2007. Proofs, Strings, and Finite Automata CS154 Chris Pollett Feb 5, 2007. Outline Proofs and Proof Strategies Strings Finding proofs Example: For every graph G, the sum of the degrees of all the nodes in G

More information

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class CSE 105 THEORY OF COMPUTATION Spring 2018 review class Today's learning goals Summarize key concepts, ideas, themes from CSE 105. Approach your final exam studying with confidence. Identify areas to focus

More information

Computational Models - Lecture 4 1

Computational Models - Lecture 4 1 Computational Models - Lecture 4 1 Handout Mode Iftach Haitner and Yishay Mansour. Tel Aviv University. April 3/8, 2013 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

Theory of Computation (II) Yijia Chen Fudan University

Theory of Computation (II) Yijia Chen Fudan University Theory of Computation (II) Yijia Chen Fudan University Review A language L is a subset of strings over an alphabet Σ. Our goal is to identify those languages that can be recognized by one of the simplest

More information

Finite Automata. Seungjin Choi

Finite Automata. Seungjin Choi Finite Automata Seungjin Choi Department of Computer Science and Engineering Pohang University of Science and Technology 77 Cheongam-ro, Nam-gu, Pohang 37673, Korea seungjin@postech.ac.kr 1 / 28 Outline

More information

Computational Models. Nachum Dershowitz. Jenny (Evgenia) Falkovich

Computational Models. Nachum Dershowitz. Jenny (Evgenia) Falkovich Computational Models Nachum Dershowitz Jenny (Evgenia) Falkovich Main Issues What can a program do? What can t a program do? What is hard for a program to do? What if memory is limited? Time Magazine Put

More information

Recitation 2 - Non Deterministic Finite Automata (NFA) and Regular OctoberExpressions

Recitation 2 - Non Deterministic Finite Automata (NFA) and Regular OctoberExpressions Recitation 2 - Non Deterministic Finite Automata (NFA) and Regular Expressions Orit Moskovich Gal Rotem Tel Aviv University October 28, 2015 Recitation 2 - Non Deterministic Finite Automata (NFA) and Regular

More information

CPSC 421: Tutorial #1

CPSC 421: Tutorial #1 CPSC 421: Tutorial #1 October 14, 2016 Set Theory. 1. Let A be an arbitrary set, and let B = {x A : x / x}. That is, B contains all sets in A that do not contain themselves: For all y, ( ) y B if and only

More information

UNIT-II. NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: SIGNIFICANCE. Use of ε-transitions. s t a r t. ε r. e g u l a r

UNIT-II. NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: SIGNIFICANCE. Use of ε-transitions. s t a r t. ε r. e g u l a r Syllabus R9 Regulation UNIT-II NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: In the automata theory, a nondeterministic finite automaton (NFA) or nondeterministic finite state machine is a finite

More information

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties of Regular Languages Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties Recall a closure property is a statement

More information

Computer Sciences Department

Computer Sciences Department 1 Reference Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER 3 objectives Finite automaton Infinite automaton Formal definition State diagram Regular and Non-regular

More information

Homework. Staff. Happy and fruitful New Year. Welcome to CS105. (Happy New Year) שנה טובה. Meeting Times.

Homework. Staff. Happy and fruitful New Year. Welcome to CS105. (Happy New Year) שנה טובה. Meeting Times. Welcome to CS5 and Happy and fruitful ew Year שנה טובה (Happy ew Year) Meeting Times Lectures: Tue Thu 3:3p -4:5p WLH ote: Thu Oct 9 Lecture is canceled there may be a make-up lecture by quarter s end.

More information

Recap DFA,NFA, DTM. Slides by Prof. Debasis Mitra, FIT.

Recap DFA,NFA, DTM. Slides by Prof. Debasis Mitra, FIT. Recap DFA,NFA, DTM Slides by Prof. Debasis Mitra, FIT. 1 Formal Language Finite set of alphabets Σ: e.g., {0, 1}, {a, b, c}, { {, } } Language L is a subset of strings on Σ, e.g., {00, 110, 01} a finite

More information

Let us first give some intuitive idea about a state of a system and state transitions before describing finite automata.

Let us first give some intuitive idea about a state of a system and state transitions before describing finite automata. Finite Automata Automata (singular: automation) are a particularly simple, but useful, model of computation. They were initially proposed as a simple model for the behavior of neurons. The concept of a

More information

Chapter Two: Finite Automata

Chapter Two: Finite Automata Chapter Two: Finite Automata In theoretical computer science, automata theory is the study of abstract machines (or more appropriately, abstract 'mathematical' machines or systems) and the computational

More information

Introduction to Turing Machines

Introduction to Turing Machines Introduction to Turing Machines Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 12 November 2015 Outline 1 Turing Machines 2 Formal definitions 3 Computability

More information

Part I: Definitions and Properties

Part I: Definitions and Properties Turing Machines Part I: Definitions and Properties Finite State Automata Deterministic Automata (DFSA) M = {Q, Σ, δ, q 0, F} -- Σ = Symbols -- Q = States -- q 0 = Initial State -- F = Accepting States

More information

Final exam study sheet for CS3719 Turing machines and decidability.

Final exam study sheet for CS3719 Turing machines and decidability. Final exam study sheet for CS3719 Turing machines and decidability. A Turing machine is a finite automaton with an infinite memory (tape). Formally, a Turing machine is a 6-tuple M = (Q, Σ, Γ, δ, q 0,

More information

Computational Models - Lecture 4 1

Computational Models - Lecture 4 1 Computational Models - Lecture 4 1 Handout Mode Iftach Haitner. Tel Aviv University. November 21, 2016 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice Herlihy, Brown University.

More information

CS:4330 Theory of Computation Spring Regular Languages. Finite Automata and Regular Expressions. Haniel Barbosa

CS:4330 Theory of Computation Spring Regular Languages. Finite Automata and Regular Expressions. Haniel Barbosa CS:4330 Theory of Computation Spring 2018 Regular Languages Finite Automata and Regular Expressions Haniel Barbosa Readings for this lecture Chapter 1 of [Sipser 1996], 3rd edition. Sections 1.1 and 1.3.

More information

CSE 105 THEORY OF COMPUTATION

CSE 105 THEORY OF COMPUTATION CSE 105 THEORY OF COMPUTATION Spring 2017 http://cseweb.ucsd.edu/classes/sp17/cse105-ab/ Today's learning goals Summarize key concepts, ideas, themes from CSE 105. Approach your final exam studying with

More information

Automata: a short introduction

Automata: a short introduction ILIAS, University of Luxembourg Discrete Mathematics II May 2012 What is a computer? Real computers are complicated; We abstract up to an essential model of computation; We begin with the simplest possible

More information

Lecture 4 Nondeterministic Finite Accepters

Lecture 4 Nondeterministic Finite Accepters Lecture 4 Nondeterministic Finite Accepters COT 4420 Theory of Computation Section 2.2, 2.3 Nondeterminism A nondeterministic finite automaton can go to several states at once. Transitions from one state

More information

CSCI3390-Lecture 6: An Undecidable Problem

CSCI3390-Lecture 6: An Undecidable Problem CSCI3390-Lecture 6: An Undecidable Problem September 21, 2018 1 Summary The language L T M recognized by the universal Turing machine is not decidable. Thus there is no algorithm that determines, yes or

More information

CS 530: Theory of Computation Based on Sipser (second edition): Notes on regular languages(version 1.1)

CS 530: Theory of Computation Based on Sipser (second edition): Notes on regular languages(version 1.1) CS 530: Theory of Computation Based on Sipser (second edition): Notes on regular languages(version 1.1) Definition 1 (Alphabet) A alphabet is a finite set of objects called symbols. Definition 2 (String)

More information

CSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission.

CSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission. CSE 5 Homework Due: Monday October 9, 7 Instructions Upload a single file to Gradescope for each group. should be on each page of the submission. All group members names and PIDs Your assignments in this

More information

CS 301. Lecture 17 Church Turing thesis. Stephen Checkoway. March 19, 2018

CS 301. Lecture 17 Church Turing thesis. Stephen Checkoway. March 19, 2018 CS 301 Lecture 17 Church Turing thesis Stephen Checkoway March 19, 2018 1 / 17 An abridged modern history of formalizing algorithms An algorithm is a finite, unambiguous sequence of steps for solving a

More information

Closure under the Regular Operations

Closure under the Regular Operations September 7, 2013 Application of NFA Now we use the NFA to show that collection of regular languages is closed under regular operations union, concatenation, and star Earlier we have shown this closure

More information

Turing machines COMS Ashley Montanaro 21 March Department of Computer Science, University of Bristol Bristol, UK

Turing machines COMS Ashley Montanaro 21 March Department of Computer Science, University of Bristol Bristol, UK COMS11700 Turing machines Department of Computer Science, University of Bristol Bristol, UK 21 March 2014 COMS11700: Turing machines Slide 1/15 Introduction We have seen two models of computation: finite

More information

Turing Machines. Lecture 8

Turing Machines. Lecture 8 Turing Machines Lecture 8 1 Course Trajectory We will see algorithms, what can be done. But what cannot be done? 2 Computation Problem: To compute a function F that maps each input (a string) to an output

More information

The Pumping Lemma. for all n 0, u 1 v n u 2 L (i.e. u 1 u 2 L, u 1 vu 2 L [but we knew that anyway], u 1 vvu 2 L, u 1 vvvu 2 L, etc.

The Pumping Lemma. for all n 0, u 1 v n u 2 L (i.e. u 1 u 2 L, u 1 vu 2 L [but we knew that anyway], u 1 vvu 2 L, u 1 vvvu 2 L, etc. The Pumping Lemma For every regular language L, there is a number l 1 satisfying the pumping lemma property: All w L with w l can be expressed as a concatenation of three strings, w = u 1 vu 2, where u

More information

CISC4090: Theory of Computation

CISC4090: Theory of Computation CISC4090: Theory of Computation Chapter 2 Context-Free Languages Courtesy of Prof. Arthur G. Werschulz Fordham University Department of Computer and Information Sciences Spring, 2014 Overview In Chapter

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 6 CHAPTER 2 FINITE AUTOMATA 2. Nondeterministic Finite Automata NFA 3. Finite Automata and Regular Expressions 4. Languages

More information

ECS 120: Theory of Computation UC Davis Phillip Rogaway February 16, Midterm Exam

ECS 120: Theory of Computation UC Davis Phillip Rogaway February 16, Midterm Exam ECS 120: Theory of Computation Handout MT UC Davis Phillip Rogaway February 16, 2012 Midterm Exam Instructions: The exam has six pages, including this cover page, printed out two-sided (no more wasted

More information

Inf2A: Converting from NFAs to DFAs and Closure Properties

Inf2A: Converting from NFAs to DFAs and Closure Properties 1/43 Inf2A: Converting from NFAs to DFAs and Stuart Anderson School of Informatics University of Edinburgh October 13, 2009 Starter Questions 2/43 1 Can you devise a way of testing for any FSM M whether

More information

Equivalence of DFAs and NFAs

Equivalence of DFAs and NFAs CS 172: Computability and Complexity Equivalence of DFAs and NFAs It s a tie! DFA NFA Sanjit A. Seshia EECS, UC Berkeley Acknowledgments: L.von Ahn, L. Blum, M. Blum What we ll do today Prove that DFAs

More information

Turing Machines (TM) The Turing machine is the ultimate model of computation.

Turing Machines (TM) The Turing machine is the ultimate model of computation. TURING MACHINES Turing Machines (TM) The Turing machine is the ultimate model of computation. Alan Turing (92 954), British mathematician/engineer and one of the most influential scientists of the last

More information

CS 154. Finite Automata vs Regular Expressions, Non-Regular Languages

CS 154. Finite Automata vs Regular Expressions, Non-Regular Languages CS 154 Finite Automata vs Regular Expressions, Non-Regular Languages Deterministic Finite Automata Computation with finite memory Non-Deterministic Finite Automata Computation with finite memory and guessing

More information

CSE 135: Introduction to Theory of Computation Nondeterministic Finite Automata (cont )

CSE 135: Introduction to Theory of Computation Nondeterministic Finite Automata (cont ) CSE 135: Introduction to Theory of Computation Nondeterministic Finite Automata (cont ) Sungjin Im University of California, Merced 2-3-214 Example II A ɛ B ɛ D F C E Example II A ɛ B ɛ D F C E NFA accepting

More information

CSCI 2670 Introduction to Theory of Computing

CSCI 2670 Introduction to Theory of Computing CSCI 267 Introduction to Theory of Computing Agenda Last class Reviewed syllabus Reviewed material in Chapter of Sipser Assigned pages Chapter of Sipser Questions? This class Begin Chapter Goal for the

More information

Clarifications from last time. This Lecture. Last Lecture. CMSC 330: Organization of Programming Languages. Finite Automata.

Clarifications from last time. This Lecture. Last Lecture. CMSC 330: Organization of Programming Languages. Finite Automata. CMSC 330: Organization of Programming Languages Last Lecture Languages Sets of strings Operations on languages Finite Automata Regular expressions Constants Operators Precedence CMSC 330 2 Clarifications

More information

Course 4 Finite Automata/Finite State Machines

Course 4 Finite Automata/Finite State Machines Course 4 Finite Automata/Finite State Machines The structure and the content of the lecture is based on (1) http://www.eecs.wsu.edu/~ananth/cpts317/lectures/index.htm, (2) W. Schreiner Computability and

More information

Sri vidya college of engineering and technology

Sri vidya college of engineering and technology Unit I FINITE AUTOMATA 1. Define hypothesis. The formal proof can be using deductive proof and inductive proof. The deductive proof consists of sequence of statements given with logical reasoning in order

More information

CS243, Logic and Computation Nondeterministic finite automata

CS243, Logic and Computation Nondeterministic finite automata CS243, Prof. Alvarez NONDETERMINISTIC FINITE AUTOMATA (NFA) Prof. Sergio A. Alvarez http://www.cs.bc.edu/ alvarez/ Maloney Hall, room 569 alvarez@cs.bc.edu Computer Science Department voice: (67) 552-4333

More information

Chapter 2: Finite Automata

Chapter 2: Finite Automata Chapter 2: Finite Automata 2.1 States, State Diagrams, and Transitions Finite automaton is the simplest acceptor or recognizer for language specification. It is also the simplest model of a computer. A

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 5 CHAPTER 2 FINITE AUTOMATA 1. Deterministic Finite Automata DFA 2. Nondeterministic Finite Automata NDFA 3. Finite Automata

More information

CSC236 Week 10. Larry Zhang

CSC236 Week 10. Larry Zhang CSC236 Week 10 Larry Zhang 1 Today s Topic Deterministic Finite Automata (DFA) 2 Recap of last week We learned a lot of terminologies alphabet string length of string union concatenation Kleene star language

More information

} Some languages are Turing-decidable A Turing Machine will halt on all inputs (either accepting or rejecting). No infinite loops.

} Some languages are Turing-decidable A Turing Machine will halt on all inputs (either accepting or rejecting). No infinite loops. and their languages } Some languages are Turing-decidable A Turing Machine will halt on all inputs (either accepting or rejecting). No infinite loops. } Some languages are Turing-recognizable, but not

More information

Lecture Notes On THEORY OF COMPUTATION MODULE -1 UNIT - 2

Lecture Notes On THEORY OF COMPUTATION MODULE -1 UNIT - 2 BIJU PATNAIK UNIVERSITY OF TECHNOLOGY, ODISHA Lecture Notes On THEORY OF COMPUTATION MODULE -1 UNIT - 2 Prepared by, Dr. Subhendu Kumar Rath, BPUT, Odisha. UNIT 2 Structure NON-DETERMINISTIC FINITE AUTOMATA

More information

Computational Models Lecture 11, Spring 2009

Computational Models Lecture 11, Spring 2009 Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Computational Models Lecture 11, Spring 2009 Deterministic Time Classes NonDeterministic Time Classes

More information

Lecture 1: Finite State Automaton

Lecture 1: Finite State Automaton Lecture 1: Finite State Automaton Instructor: Ketan Mulmuley Scriber: Yuan Li January 6, 2015 1 Deterministic Finite Automaton Informally, a deterministic finite automaton (DFA) has finite number of s-

More information

Applied Computer Science II Chapter 1 : Regular Languages

Applied Computer Science II Chapter 1 : Regular Languages Applied Computer Science II Chapter 1 : Regular Languages Prof. Dr. Luc De Raedt Institut für Informatik Albert-Ludwigs Universität Freiburg Germany Overview Deterministic finite automata Regular languages

More information

Theory Bridge Exam Example Questions

Theory Bridge Exam Example Questions Theory Bridge Exam Example Questions Annotated version with some (sometimes rather sketchy) answers and notes. This is a collection of sample theory bridge exam questions. This is just to get some idea

More information