Unit-4: Regular properties

Similar documents
One Minute To Learn Programming: Finite Automata

Unambiguous Recognizable Two-dimensional Languages

Homework 3 Solutions

Regular Sets and Expressions

flex Regular Expressions and Lexical Scanning Regular Expressions and flex Examples on Alphabet A = {a,b} (Standard) Regular Expressions on Alphabet A

Regular Languages and Finite Automata

FORMAL LANGUAGES, AUTOMATA AND THEORY OF COMPUTATION EXERCISES ON REGULAR LANGUAGES

Solution to Problem Set 1

Binary Representation of Numbers Autar Kaw

Generating In-Line Monitors For Rabin Automata

A Visual and Interactive Input abb Automata. Theory Course with JFLAP 4.0

Learning Workflow Petri Nets

Bypassing Space Explosion in Regular Expression Matching for Network Intrusion Detection and Prevention Systems

Java CUP. Java CUP Specifications. User Code Additions You may define Java code to be included within the generated parser:

Pointed Regular Expressions

1. In the Bohr model, compare the magnitudes of the electron s kinetic and potential energies in orbit. What does this imply?

Polynomial Functions. Polynomial functions in one variable can be written in expanded form as ( )

Advanced Baseline and Release Management. Ed Taekema

PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY

When Simulation Meets Antichains (on Checking Language Inclusion of NFAs)

9 CONTINUOUS DISTRIBUTIONS

SE3BB4: Software Design III Concurrent System Design. Sample Solutions to Assignment 1

AntiSpyware Enterprise Module 8.5

, and the number of electrons is -19. e e C. The negatively charged electrons move in the direction opposite to the conventional current flow.

2 DIODE CLIPPING and CLAMPING CIRCUITS

Integration by Substitution

Bayesian Updating with Continuous Priors Class 13, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Appendix D: Completing the Square and the Quadratic Formula. In Appendix A, two special cases of expanding brackets were considered:

Regular Repair of Specifications

Algebra Review. How well do you remember your algebra?

Mathematics. Vectors. hsn.uk.net. Higher. Contents. Vectors 128 HSN23100

Solutions for Selected Exercises from Introduction to Compiler Design

Linear Equations in Two Variables

Example 27.1 Draw a Venn diagram to show the relationship between counting numbers, whole numbers, integers, and rational numbers.

Automata theory. An algorithmic approach. Lecture Notes. Javier Esparza

On the expressive power of temporal logic

Outline of the Lecture. Software Testing. Unit & Integration Testing. Components. Lecture Notes 3 (of 4)

Math 135 Circles and Completing the Square Examples

Unit 6: Exponents and Radicals

Section 5-4 Trigonometric Functions

Modular Generic Verification of LTL Properties for Aspects

Automated Grading of DFA Constructions

Version 001 Summer Review #03 tubman (IBII ) 1

Scalar and Vector Quantities. A scalar is a quantity having only magnitude (and possibly phase). LECTURE 2a: VECTOR ANALYSIS Vector Algebra

9.3. The Scalar Product. Introduction. Prerequisites. Learning Outcomes

Chapter. Contents: A Constructing decimal numbers

Complexity Results in Epistemic Planning

Concept Formation Using Graph Grammars

Quick Reference Guide: One-time Account Update

Answer, Key Homework 10 David McIntyre 1

The Principle of No Punishment Without a Law for It LEARNING OBJECTIVES: CRLA.GAAN:

Orbits and Kepler s Laws

Physics 43 Homework Set 9 Chapter 40 Key

Health insurance exchanges What to expect in 2014

Health insurance marketplace What to expect in 2014

Graphs on Logarithmic and Semilogarithmic Paper

Example A rectangular box without lid is to be made from a square cardboard of sides 18 cm by cutting equal squares from each corner and then folding

and thus, they are similar. If k = 3 then the Jordan form of both matrices is

Treatment Spring Late Summer Fall Mean = 1.33 Mean = 4.88 Mean = 3.

Protocol Analysis / Analysis of Software Artifacts Kevin Bierhoff

FAULT TREES AND RELIABILITY BLOCK DIAGRAMS. Harry G. Kwatny. Department of Mechanical Engineering & Mechanics Drexel University

Week 11 - Inductance

Or more simply put, when adding or subtracting quantities, their uncertainties add.

Object Semantics Lecture 2

On Recognizable Timed Languages

Review guide for the final exam in Math 233

On decidability of LTL model checking for process rewrite systems

5 a LAN 6 a gateway 7 a modem

Distributions. (corresponding to the cumulative distribution function for the discrete case).

6.2 Volumes of Revolution: The Disk Method

Ratio and Proportion

Use Geometry Expressions to create a more complex locus of points. Find evidence for equivalence using Geometry Expressions.

5.2. LINE INTEGRALS 265. Let us quickly review the kind of integrals we have studied so far before we introduce a new one.

A Network Management System for Power-Line Communications and its Verification by Simulation

Small Business Networking

Hillsborough Township Public Schools Mathematics Department Computer Programming 1

Operations with Polynomials

NQF Level: 2 US No: 7480

South East of Process Main Building / 1F. North East of Process Main Building / 1F. At 14:05 April 16, Sample not collected

Small Business Networking

Small Business Networking

I calculate the unemployment rate as (In Labor Force Employed)/In Labor Force

SPECIAL PRODUCTS AND FACTORIZATION

Practice Test 2. a. 12 kn b. 17 kn c. 13 kn d. 5.0 kn e. 49 kn

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Chapter 6. Logic and Action. 6.1 Actions in General

Pay over time with low monthly payments. Types of Promotional Options that may be available: *, ** See Page 10 for details

LINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES

Section 7-4 Translation of Axes

Lesson 4.1 Triangle Sum Conjecture

v T R x m Version PREVIEW Practice 7 carroll (11108) 1

PDF hosted at the Radboud Repository of the Radboud University Nijmegen

LECTURE #05. Learning Objective. To describe the geometry in and around a unit cell in terms of directions and planes.

NOTES. Cohasset Associates, Inc Managing Electronic Records Conference 8.1

19. The Fermat-Euler Prime Number Theorem

CURVES ANDRÉ NEVES. that is, the curve α has finite length. v = p q p q. a i.e., the curve of smallest length connecting p to q is a straight line.

Reasoning to Solve Equations and Inequalities

Geometry 7-1 Geometric Mean and the Pythagorean Theorem

Polynomials. Common Mistakes

Transcription:

1/26 Unit-4: Regulr properties B. Srivthsn Chenni Mthemticl Institute NPTEL-course July - November 2015

2/26 Module 2: A gentle introduction to utomt

3/26 { p 1 } { p 1,p 2 } request=1 redy request=1 busy request=0 redy {} request=0 busy { p 2 } AP = set of tomic propositions AP-INF = set of infinite words over PowerSet(AP) A property over AP is subset of AP-INF

Gol: Need finite descriptions of properties 4/26

4/26 Gol: Need finite descriptions of properties Here: Finite stte utomt to describe sets of words

4/26 Gol: Need finite descriptions of properties Here: Finite stte utomt to describe sets of finite words

Alphbet: {,b } 5/26

5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...}

5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1

5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1 q 0 q 1 q 2 q 3 q 4

5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1 q 0 q 1 q 2 q 3 b q 4

5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1 b q 0 q 1 q 2 q 3 b q 4

5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1 b q 0 q 1 q 2 q 3 b b q 4

5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1 b q 0 q 1 q 2 q b 3 b b q 4

5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1 b q 0 q 1 q 2 q b 3 b b q 4,b

6/26 Alphbet: {,b } L 2 = {,, b,, b, b, bb,...} L 2 is the set of ll words strting with

6/26 Alphbet: {,b } L 2 = {,, b,, b, b, bb,...} L 2 is the set of ll words strting with Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 2

6/26 Alphbet: {,b } L 2 = {,, b,, b, b, bb,...} L 2 is the set of ll words strting with Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 2 q 0 q 1,b b q 2,b

6/26 Alphbet: {,b } L 2 = {,, b,, b, b, bb,...} L 2 is the set of ll words strting with Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 2 q 0 q 1,b b q 2,b Finite Automton

Coming next: Some terminology 7/26

Alphbet Σ = {, b } 8/26

8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b }

8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b } = {, b, b, bb }

8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b } = {, b, b, bb } Σ 1 = words of length 1 Σ 2 = words of length 2

8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b } = {, b, b, bb } Σ 1 = words of length 1 Σ 2 = words of length 2 Σ 3 = words of length 3

8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b } = {, b, b, bb } Σ 1 = words of length 1 Σ 2 = words of length 2 Σ 3 = words of length 3 Σ k. = words of length k.

8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b } = {, b, b, bb } b ε ε bbb w ε ε w = b = bbb = w = w Σ 0 = { ε } (empty word, with length 0) Σ 1 = words of length 1 Σ 2 = words of length 2 Σ 3 = words of length 3. Σ k = words of length k.

8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b } = {, b, b, bb } b ε ε bbb w ε ε w = b = bbb = w = w Σ 0 = { ε } (empty word, with length 0) Σ 1 = words of length 1 Σ 2 = words of length 2 Σ 3 = words of length 3. Σ k = words of length k. Σ = i 0 Σi = set of ll finite length words

Σ = set of ll words over Σ 9/26

9/26 Σ = set of ll words over Σ Any set of words is clled lnguge

9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} Σ words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} Σ bσ words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} Σ bσ b words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} Σ bσ b (b) words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} Σ bσ b (b) (bbb) words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} Σ bσ b (b) (bbb) words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} Σ words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

10/26 In this module... Tsk: Design Finite Automt for some lnguges

11/26 Words Lnguges Finite Automt

12/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design Finite utomton for L 1 q 0 b q 1 q 2 b q 3 b b q 4,b

13/26 Alphbet: {,b } L 3 = { ε, b, bb, bbb,...} Design Finite utomton for L 3 q 0 q b 1 b q 2,b

14/26 Alphbet: {,b } Σ = { ε,, b,, b, b, bb...} Design Finite utomton for Σ,b q 0

15/26 Alphbet: {,b } = { ε,,,,, 5,...} is the set of ll words hving only Design Finite utomton for

15/26 Alphbet: {,b } = { ε,,,,, 5,...} is the set of ll words hving only Design Finite utomton for q 0

15/26 Alphbet: {,b } = { ε,,,,, 5,...} is the set of ll words hving only Design Finite utomton for q 0 Non-deterministic utomton

16/26 Trnsition Systems Deterministic Non-deterministic Single initil stte nd Multiple initil sttes or s r s r 1 r 2. r m

16/26 Trnsition Systems Deterministic Non-deterministic Single initil stte nd Multiple initil sttes or s r s r 1 r 2. r m Sme pplies in the cse of Finite Automt

17/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} Design Finite utomton for b

17/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} Design Finite utomton for b b q 0 q 1

17/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} Design Finite utomton for b b q 0 q 1 Non-deterministic utomton

18/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} b = { b, b, b 2, b 3, b 4,...} Design Finite utomton for b b

18/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} b = { b, b, b 2, b 3, b 4,...} Design Finite utomton for b b b q 0 q 1 b q 2

18/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} b = { b, b, b 2, b 3, b 4,...} Design Finite utomton for b b b q 0 q 1 b q 2 Non-deterministic utomton

19/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} b = { b, b, b 2, b 3, b 4,...} Design Finite utomton for b b

19/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} b = { b, b, b 2, b 3, b 4,...} Design Finite utomton for b b b q 0 q 1 q 2 b q 3

19/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} b = { b, b, b 2, b 3, b 4,...} Design Finite utomton for b b b q 0 q 1 q 2 b q 3 Multiple initil sttes: non-deterministic utomton

20/26 Wht is the lnguge of the following utomton?,b q 0 q 1 q 2

20/26 Wht is the lnguge of the following utomton?,b q 0 q 1 q 2 Answer: Σ words strting nd ending with

21/26 Wht is the lnguge of the following utomton?,b,b b q 0 q 1 q 2

21/26 Wht is the lnguge of the following utomton?,b,b b q 0 q 1 q 2 Answer: Σ b Σ words contining b

22/26 Wht is the lnguge of the following utomton?,b,b,b b q 0 q 1 q 2

22/26 Wht is the lnguge of the following utomton?,b,b,b b q 0 q 1 q 2 Answer: Σ Σ b Σ words where there exists n followed by b fter sometime

23/26 Wht is the lnguge of the following utomton?,b,c b,b,c q 0 q 1 c q 2

23/26 Wht is the lnguge of the following utomton?,b,c b,b,c q 0 q 1 c q 2 Answer: Σ b c Σ (Σ = {, b, c }) words where there exists n followed by only b s nd fter sometime c occurs

24/26 Alphbet: {,b } L = { ε, b, bb, bbb,..., i b i,...} Cn we design Finite utomton for L?

24/26 Alphbet: {,b } L = { ε, b, bb, bbb,..., i b i,...} Cn we design Finite utomton for L? Need infinitely mny sttes to remember the number of s

24/26 Alphbet: {,b } L = { ε, b, bb, bbb,..., i b i,...} Cn we design Finite utomton for L? Need infinitely mny sttes to remember the number of s Cnnot construct finite utomton for this lnguge

25/26 Regulr lnguges Lnguges { n b n n 0} L L Regulr lnguges Σ,, b, etc. Definition A lnguge is clled regulr if it cn be ccepted by finite utomton

26/26 Words Lnguges Finite Automt Deterministic (DFA) Non-deterministic (NFA) Regulr lnguges

26/26 Words Lnguges Finite Automt Deterministic (DFA) Non-deterministic (NFA) Regulr lnguges Next module: Are DFA nd NFA equivlent?