Course 1 Introduction to Automata Theory

Similar documents
Language properties and Grammar of Parallel and Series Parallel Languages

COMPUTATIONAL COMPLEXITY OF LEFT-ASSOCIATIVE GRAMMAR

A R "! I,,, !~ii ii! A ow ' r.-ii ' i ' JA' V5, 9. MiN, ;

Proof Theory for Syntacticians

Informatics 2A: Language Complexity and the. Inf2A: Chomsky Hierarchy

A General Class of Noncontext Free Grammars Generating Context Free Languages

Erkki Mäkinen State change languages as homomorphic images of Szilard languages

Grammars & Parsing, Part 1:

A Version Space Approach to Learning Context-free Grammars

"f TOPIC =T COMP COMP... OBJ

Abstractions and the Brain

Enumeration of Context-Free Languages and Related Structures

Syntax Parsing 1. Grammars and parsing 2. Top-down and bottom-up parsing 3. Chart parsers 4. Bottom-up chart parsing 5. The Earley Algorithm

Objectives. Chapter 2: The Representation of Knowledge. Expert Systems: Principles and Programming, Fourth Edition

The Strong Minimalist Thesis and Bounded Optimality

Natural Language Processing. George Konidaris

On the Polynomial Degree of Minterm-Cyclic Functions

Introduction to HPSG. Introduction. Historical Overview. The HPSG architecture. Signature. Linguistic Objects. Descriptions.

Self Study Report Computer Science

RANKING AND UNRANKING LEFT SZILARD LANGUAGES. Erkki Mäkinen DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF TAMPERE REPORT A ER E P S I M S

arxiv: v1 [math.at] 10 Jan 2016

Developing a TT-MCTAG for German with an RCG-based Parser

PRODUCT PLATFORM DESIGN: A GRAPH GRAMMAR APPROACH

WSU Five-Year Program Review Self-Study Cover Page

GRAMMAR IN CONTEXT 2 PDF

Improving Fairness in Memory Scheduling

(Sub)Gradient Descent

Discriminative Learning of Beam-Search Heuristics for Planning

Parsing of part-of-speech tagged Assamese Texts

CS 598 Natural Language Processing

AGS THE GREAT REVIEW GAME FOR PRE-ALGEBRA (CD) CORRELATED TO CALIFORNIA CONTENT STANDARDS

Version Space. Term 2012/2013 LSI - FIB. Javier Béjar cbea (LSI - FIB) Version Space Term 2012/ / 18

Parsing natural language

Refining the Design of a Contracting Finite-State Dependency Parser

Evolution of Collective Commitment during Teamwork

Lecture 1: Basic Concepts of Machine Learning

Lecture 1: Machine Learning Basics

Computer Organization I (Tietokoneen toiminta)

Probability and Game Theory Course Syllabus

Efficient Normal-Form Parsing for Combinatory Categorial Grammar

ABSTRACT. A major goal of human genetics is the discovery and validation of genetic polymorphisms

CS4491/CS 7265 BIG DATA ANALYTICS INTRODUCTION TO THE COURSE. Mingon Kang, PhD Computer Science, Kennesaw State University

Lecture 10: Reinforcement Learning

ENGBG1 ENGBL1 Campus Linguistics. Meeting 2. Chapter 7 (Morphology) and chapter 9 (Syntax) Pia Sundqvist

University of Groningen. Systemen, planning, netwerken Bosman, Aart

Using dialogue context to improve parsing performance in dialogue systems

Compositional Semantics

Basic Parsing with Context-Free Grammars. Some slides adapted from Julia Hirschberg and Dan Jurafsky 1

TabletClass Math Geometry Course Guidebook

Evolutive Neural Net Fuzzy Filtering: Basic Description

Parallel Evaluation in Stratal OT * Adam Baker University of Arizona

Cognitive Modeling. Tower of Hanoi: Description. Tower of Hanoi: The Task. Lecture 5: Models of Problem Solving. Frank Keller.

Module 12. Machine Learning. Version 2 CSE IIT, Kharagpur

16 WEEKS STUDY PLAN FOR BS(IT)2 nd Semester

systems have been developed that are well-suited to phenomena in but is properly contained in the indexed languages. We give a

MASTER OF SCIENCE (M.S.) MAJOR IN COMPUTER SCIENCE

An Introduction to the Minimalist Program

GACE Computer Science Assessment Test at a Glance

A Minimalist Approach to Code-Switching. In the field of linguistics, the topic of bilingualism is a broad one. There are many

Empiricism as Unifying Theme in the Standards for Mathematical Practice. Glenn Stevens Department of Mathematics Boston University

Visual CP Representation of Knowledge

Prediction of Maximal Projection for Semantic Role Labeling

Spring 2016 Stony Brook University Instructor: Dr. Paul Fodor

Lecture Notes on Mathematical Olympiad Courses

Artificial Neural Networks written examination

The Interface between Phrasal and Functional Constraints

Writing Research Articles

Machine Learning from Garden Path Sentences: The Application of Computational Linguistics

Assignment 1: Predicting Amazon Review Ratings

Ontological spine, localization and multilingual access

Radius STEM Readiness TM

Courses in English. Application Development Technology. Artificial Intelligence. 2017/18 Spring Semester. Database access

Mathematics. Mathematics

Lecture 2: Quantifiers and Approximation

THE UNIVERSITY OF SYDNEY Semester 2, Information Sheet for MATH2068/2988 Number Theory and Cryptography

Chapter 2 Rule Learning in a Nutshell

Stacks Teacher notes. Activity description. Suitability. Time. AMP resources. Equipment. Key mathematical language. Key processes

have to be modeled) or isolated words. Output of the system is a grapheme-tophoneme conversion system which takes as its input the spelling of words,

Facilitating Students From Inadequacy Concept in Constructing Proof to Formal Proof

Testing A Moving Target: How Do We Test Machine Learning Systems? Peter Varhol Technology Strategy Research, USA

Data Modeling and Databases II Entity-Relationship (ER) Model. Gustavo Alonso, Ce Zhang Systems Group Department of Computer Science ETH Zürich

THE ANTINOMY OF THE VARIABLE: A TARSKIAN RESOLUTION Bryan Pickel and Brian Rabern University of Edinburgh

IT Students Workshop within Strategic Partnership of Leibniz University and Peter the Great St. Petersburg Polytechnic University

Specifying Logic Programs in Controlled Natural Language

MYCIN. The MYCIN Task

GUIDE TO THE CUNY ASSESSMENT TESTS

CS Machine Learning

CSC200: Lecture 4. Allan Borodin

cambridge occasional papers in linguistics Volume 8, Article 3: 41 55, 2015 ISSN

Chinese Language Parsing with Maximum-Entropy-Inspired Parser

Computerized Adaptive Psychological Testing A Personalisation Perspective

We are strong in research and particularly noted in software engineering, information security and privacy, and humane gaming.

IAT 888: Metacreation Machines endowed with creative behavior. Philippe Pasquier Office 565 (floor 14)

On Human Computer Interaction, HCI. Dr. Saif al Zahir Electrical and Computer Engineering Department UBC

MADERA SCIENCE FAIR 2013 Grades 4 th 6 th Project due date: Tuesday, April 9, 8:15 am Parent Night: Tuesday, April 16, 6:00 8:00 pm

Computer Science (CS)

Classroom Connections Examining the Intersection of the Standards for Mathematical Content and the Standards for Mathematical Practice

Detecting English-French Cognates Using Orthographic Edit Distance

Type Theory and Universal Grammar

Context Free Grammars. Many slides from Michael Collins

Transcription:

Course 1 Introduction to Automata Theory The structure and the content of the lecture is based on http://www.eecs.wsu.edu/~ananth/cpts317/lectures/index.htm 1

What is Automata Theory? Study of abstract computing devices, or machines Automaton = an abstract computing device Note: A device need not even be a physical hardware! A fundamental question in computer science: Find out what different models of machines can do and cannot do The theory of computation Computability vs. Complexity 2

(A pioneer of automata theory) Alan Turing (1912-1954) Father of Modern Computer Science English mathematician Studied abstract machines called Turing machines even before computers existed Heard of the Turing test? 3

Theory of Computation: A Historical Perspective 1930s Alan Turing studies Turing machines Decidability Halting problem 1940-1950s Finite automata machines studied Noam Chomsky proposes the Chomsky Hierarchy for formal languages 1969 Cook introduces intractable problems or NP-Hard problems 1970- Modern computer science: compilers, computational & complexity theory evolve 4

Languages & Grammars Or words Languages: A language is a collection of sentences of finite length all constructed from a finite alphabet of symbols Grammars: A grammar can be regarded as a device that enumerates the sentences of a language - nothing more, nothing less N. Chomsky, Information and Control, Vol 2, 1959 Image source: Nowak et al. Nature, vol 417, 2002 5

The Chomsky Hierachy A containment hierarchy of classes of formal languages Regular (DFA) Contextfree (PDA) Contextsensitive (LBA) Recursivelyenumerable (TM) 6

The Central Concepts of Automata Theory 7

Alphabet An alphabet is a finite, non-empty set of symbols We use the symbol (sigma) to denote an alphabet Examples: Binary: = {0,1} All lower case letters: = {a,b,c,..z} Alphanumeric: = {a-z, A-Z, 0-9} DNA molecule letters: = {a,c,g,t} 8

Strings A string or word is a finite sequence of symbols chosen from Empty string is (or epsilon ) Length of a string w, denoted by w, is equal to the number of (non- ) characters in the string E.g., x = 010100 x = 6 x = 01 0 1 00 x =? xy = concatentation of two strings x and y 9

Powers of an alphabet Let be an alphabet. k = the set of all strings of length k * = 0 U 1 U 2 U + = 1 U 2 U 3 U 10

Languages L is a said to be a language over alphabet, only if L * this is because * is the set of all strings (of all possible length including 0) over the given alphabet Examples: 1. Let L be the language of all strings consisting of n 0 s followed by n 1 s: L = {, 01, 0011, 000111, } 2. Let L be the language of all strings of with equal number of 0 s and 1 s: L = {, 01, 10, 0011, 1100, 0101, 1010, 1001, } Canonical ordering of strings in the language Definition: Let L = { }; Is L=Ø? NO Ø denotes the Empty language 11

The Membership Problem Given a string w *and a language L over, decide whether or not w L. Example: Let w = 100011 Q) Is w the language of strings with equal number of 0s and 1s? 12

Finite Automata Some Applications Software for designing and checking the behavior of digital circuits Lexical analyzer of a typical compiler Software for scanning large bodies of text (e.g., web pages) for pattern finding Software for verifying systems of all types that have a finite number of states (e.g., stock market transaction, communication/network protocol) 13

Finite Automata : Examples On/Off switch action state Modeling recognition of the word then Start state Transition Intermediate state Final state 14

Structural expressions Grammars Regular expressions E.g., unix style to capture city names such as Palo Alto CA : [A-Z][a-z]*([ ][A-Z][a-z]*)*[ ][A-Z][A-Z] Start with a letter A string of other letters (possibly empty) Should end w/ 2-letter state code Other space delimited words (part of city name) 15

Formal Proofs 16

Deductive Proofs From the given statement(s) to a conclusion statement (what we want to prove) Logical progression by direct implications Example for parsing a statement: If y 4, then 2 y y 2. given conclusion (there are other ways of writing this). 17

On Theorems, Lemmas and Corollaries We typically refer to: A major result as a theorem An intermediate result that we show to prove a larger result as a lemma A result that follows from an already proven result as a corollary An example: Theorem: The height of an n-node binary tree is at least floor(lg n) Lemma: Level i of a perfect binary tree has 2 i nodes. Corollary: A perfect binary tree of height h has 2 h+1-1 nodes. 18

Quantifiers For all or For every Universal proofs Notation= There exists Used in existential proofs Notation= Implication is denoted by => E.g., IF A THEN B can also be written as A=>B 19

Proving techniques By contradiction Start with the statement contradictory to the given statement E.g., To prove (A => B), we start with: (A and ~B) and then show that could never happen What if you want to prove that (A and B => C or D)? By induction (3 steps) Basis, inductive hypothesis, inductive step By contrapositive statement If A then B If ~B then ~A 20

Proving techniques By counter-example Show an example that disproves the claim Note: There is no such thing called a proof by example! So when asked to prove a claim, an example that satisfied that claim is not a proof 21

Different ways of saying the same thing If H then C : i. H implies C ii. iii. iv. H => C C if H H only if C v. Whenever H holds, C follows 22

If-and-Only-If statements A if and only if B (A <==> B) (if part) if B then A ( <= ) (only if part) A only if B ( => ) (same as if A then B ) If and only if is abbreviated as iff i.e., A iff B Example: Theorem: Let x be a real number. Then floor of x = ceiling of x if and only if x is an integer. Proofs for iff have two parts One for the if part & another for the only if part 23

The Chomsky Hierarchy 24

The Chomsky Hierarchy Regular Contextsensitive Contextfree Recursivelyenumerable Grammar Languages Automaton Production Rules Type-0 Recursively enumerable L 0 Turing machine Type-1 Context sensitive Linear-bounded non-deterministic L 1 Turing machine Type-2 Context-free Nondeterministic push L 2 down automaton Type-3 Regular L Finite state 3 automaton α β αaβ αγβ A γ A a and A ab 25

The Chomsky Hierarchy (cont d) Cat. I rules Cat. II rules Classification using the structure of their rules: Type-0 grammars: there are no restriction on the rules; Type-1 grammars/context sensitive grammars: the rules for this type have the next form: uav upv, u, p, v V G, p λ, A V N Type-2 grammars/context free grammars: the rules for this type are of the form: A p, p V G, A V N Type-3 grammars/regular grammars: the rules for this type have one of the next two forms: A Bp C q or A, B, C V N, p, q V T A pb C q Examples: see whiteboard 26

Summary Automata theory & a historical perspective Chomsky hierarchy Finite automata Alphabets, strings/words/sentences, languages Membership problem Proofs: Deductive, induction, contrapositive, contradiction, counterexample If and only if Chomsky hierarchy 27