Transparency No. 5-1 Formal Language and Automata Theory Chapter 5 Kleene Algebra and Regular Expressions (Supplementary Lecture A)

Slides:



Advertisements
Similar presentations
Chapter 1 Review In Algebra, we use symbols to stand for various numbers. One type of symbol used is a variable. An expression that contains at least one.
Advertisements

CSE 20 Lecture 9 Boolean Algebra: Theorems and Proofs CK Cheng April 26, 2011 Lecture notes 1.
CSE 202 – Formal Languages and Automata Theory 1 REGULAR LANGUAGE.
Chapter 4 Systems of Linear Equations; Matrices Section 6 Matrix Equations and Systems of Linear Equations.
Mathematics. Matrices and Determinants-1 Session.
MATRIX ALGEBRA MGT 4850 Spring 2009 University of Lethbridge.
Transparency No. 4-1 Formal Language and Automata Theory Chapter 4 Patterns, Regular Expressions and Finite Automata (include lecture 7,8,9) Transparency.
1.2 Algebraic Expressions. PROPERTIES - REVIEW  a+b=b+a or a∙b=b·a  a+(b+c) = (a+b)+c a ∙ (b ∙ c) = (a ∙ b) ∙ c a ∙ (b ∙ c) = (a ∙ b) ∙ c  a+0=a 
CALCULUS – II Matrix Multiplication by Dr. Eman Saad & Dr. Shorouk Ossama.
1 Regular Expressions/Languages Regular languages –Inductive definitions –Regular expressions syntax semantics Not covered in lecture.
12.2 Multiplication of Matrices. Matrix Multiplication The product of two matrices, A m×p and B p×n, is the matrix AB with dimensions m × n. Any element.
Properties of Real Numbers. 2 PROPERTIES OF REAL NUMBERS COMMUTATIVE PROPERTY: Addition:a + b = b + a = = =
Algebraic Properties: The Rules of Algebra Be Cool - Follow The Rules!
Boolean Algebra and Logic Simplification. Boolean Addition & Multiplication Boolean Addition performed by OR gate Sum Term describes Boolean Addition.
(2 + 1) + 4 = 2 + (1 + 4) Associative Property of Addition.
The Distributive Property Purpose: To use the distributive property Outcome: To simplify algebraic expressions.
Lesson 54 – Multiplication of Matrices
MAT 2401 Linear Algebra 2.3 The Inverse of a Matrix
Day Problems Evaluate each expression for 1. a – 2b2. b ÷ c 3. a ÷ c4. -2abc.
Copyright © 2011 Pearson, Inc. 7.2 Matrix Algebra.
Inverse and Identity Matrices Can only be used for square matrices. (2x2, 3x3, etc.)
CW Matrix Division We have seen that for 2x2 (“two by two”) matrices A and B then AB  BA To divide matrices we need to define what we mean by division!
Chapter 4 – Matrix CSNB 143 Discrete Mathematical Structures.
Laws (Theorems) of Boolean algebra Laws of Complementation oThe term complement means, to invert or to change 1's to 0's and 0's to 1's, for which purpose.
Properties of Addition and Multiplication. Commutative Property In the sum you can add the numbers in any order. a+b = b+a In the product you can multiply.
1 Module 14 Regular languages –Inductive definitions –Regular expressions syntax semantics.
Section 1.4 Inverses; Rules of Matrix Arithmetic.
CSCI 171 Presentation 9 Matrix Theory. Matrix – Rectangular array –i th row, j th column, i,j element –Square matrix, diagonal –Diagonal matrix –Equality.
For real numbers a and b,we always have ab = ba, which is called the commutative law for multiplication. For matrices, however, AB and BA need not be equal.
CMSC 330: Organization of Programming Languages Theory of Regular Expressions Finite Automata.
Chapter 2 … part1 Matrices Linear Algebra S 1. Ch2_2 2.1 Addition, Scalar Multiplication, and Multiplication of Matrices Definition A matrix is a rectangular.
The Distributive Property You will be able to use the distributive property You will be able to simplify expressions with like terms.
(2 + 1) + 4 = 2 + (1 + 4) Associative Property of Addition.
Chapter 1 Sections 1.1 and 1.2. Objectives: To use the order of operations to evaluate expressions. To determine the sets of numbers to which a given.
PROPERTIES OF REAL NUMBERS. COMMUTATIVE PROPERTY OF ADDITION What it means We can add numbers in any order Numeric Example Algebraic Example
by D. Fisher (2 + 1) + 4 = 2 + (1 + 4) Associative Property of Addition 1.
(2 + 1) + 4 = 2 + (1 + 4) Associative Property of Addition.
Transparency No. 1 Formal Language and Automata Theory Homework 1.
Axioms for Rational Numbers 9/14-9/15. Natural Numbers – Numbers used for counting: 1, 2, 3, and so on. Whole Numbers – Natural numbers and zero: 0, 1,
1 Set Theory Second Part. 2 Disjoint Set let A and B be a set. the two sets are called disjoint if their intersection is an empty set. Intersection of.
LINEAR MODELS AND MATRIX ALGEBRA - Part 2 Chapter 4 Alpha Chiang, Fundamental Methods of Mathematical Economics 3 rd edition.
Boolean Algebra. Laws of Boolean Algebra Commutative LawExpression Addition: A + B = B + A Multiplication: A B = B A Associative Addition: A + (B+C) =
1 Chapter 3 Regular Languages.  2 3.1: Regular Expressions (1)   Regular Expression (RE):   E is a regular expression over  if E is one of:
1 Introduction to the Theory of Computation Regular Expressions.
CSE 202 – Formal Languages and Automata Theory 1 REGULAR EXPRESSION.
12-2 MATRIX MULTIPLICATION MULTIPLY MATRICES BY USING SCALAR AND MATRIX MULTIPLICATION.
MATRICES. Introduction Matrix algebra has several uses in economics as well as other fields of study. One important application of Matrices is that it.
Lecture 03: Theory of Automata:2014 Asif Nawaz Theory of Automata.
13.3 Product of a Scalar and a Matrix.  In matrix algebra, a real number is often called a.  To multiply a matrix by a scalar, you multiply each entry.
Boolean Operations and Expressions Addition = = = = 1 Multiplication 0 * 0 = 0 0 * 1 = 0 1 * 0 = 0 1 * 1 = 1.
Linear Algebra Lecture 2.
1.4 Inverses; Rules of Matrix Arithmetic
The Distributive Property
The Distributive Property
Formal Language & Automata Theory
Real Numbers, Algebra, and Problem Solving
6.2/6.3: Properties of Parallelograms
Boolean Algebra.
Regular Expressions • Equivalence Of Reg. Exps. And Finite Automata
Properties of Real Numbers
Математици-юбиляри.
Terra Alta/East Preston School
Factorization by Using Identities of Sum and Difference of Two Cubes
Multiplication of Matrices
The Distributive Property Guided Notes
Linear Algebra Lecture 11.
Warm up: Name the sets of numbers to which each number belongs: -2/9
Matrices - Operations INVERSE OF A MATRIX
Matrices - Operations MULTIPLICATION OF MATRICES
Properties of Numbers Review Problems.
Presentation transcript:

Transparency No. 5-1 Formal Language and Automata Theory Chapter 5 Kleene Algebra and Regular Expressions (Supplementary Lecture A)

Nondeterministic Finite Automata Transparency No. 5-2 Kleene algebra (the algebra of regular sets) A Kleene algebra is a algebra K = (K, 0, 1,, +, *) where + is ACII:  (a + b) + c = a + (b + c) assoc.(A.1)  a + b = b + ccommutive(A.2)  a + a = aidempotent(A.3)  a + 0 = a0 is the identity for + (A.4) is A I An:  a(bc) = (ab) is associative(A.5)  a1 = 1a = a1 is the identity for (A.6)  a0 = 0a = 00 is an annihilator(A.7) is distributive w.r.t. +:  a(b+c) = ab + acleft distributive(A.8)  (a+b)c = ac + bcright distributive(A.9) The laws of *:

Nondeterministic Finite Automata Transparency No. 5-3 Kleene algebra (cont’d) Axioms involving *:  1 + aa* = a*(A.10)  1 + a*a = a*(A.11)  b + ac  c  a*b  c(A.12)  a + ca  c  ba*  c(A.13) where  refers to the order a  b  a + b = b in 2  *,  is the set inclusion  Examples of Kleene algebras: (2  *, {},  *, U,, *) (2 AxA, {}, {(x,x) | x in A}, U,, *) (the set of nxn boolean matrices, zero matrix, Identity matrix, +, x, * )

Nondeterministic Finite Automata Transparency No. 5-4 Matrices K: a Kleene algebra M(n,K): the set of nxn matrices over K, is also a Kleene algebra. Example: in M(2,K), the identities for + and are The operations +,, and * are given by: 

Nondeterministic Finite Automata Transparency No. 5-5 Matrices (cont’d) Find E* for a nxn matrix E over K: (by induction on n) n=1 => M(n,K) = K, and E* = E*. N > 1 => break E into E = s.t. A D are squares, say mxm and (n-m)x(n-m). Since A and D are squares, by ind. Hyp., A* and D* are meaningful, it then make sense to define E* = Problem: how about E* if n = 3, 6,... ? 

Nondeterministic Finite Automata Transparency No. 5-6 Matrices (cont’d) If E = ==> E* = ?

Nondeterministic Finite Automata Transparency No. 5-7