Linear Representation of Relational Operations Kenneth A. Presting University of North Carolina at Chapel Hill.

Slides:



Advertisements
Similar presentations
Vector Spaces A set V is called a vector space over a set K denoted V(K) if is an Abelian group, is a field, and For every element vV and K there exists.
Advertisements

Probability for a First-Order Language Ken Presting University of North Carolina at Chapel Hill.
4.1 Introduction to Matrices
Chapter 4 Euclidean Vector Spaces
3D Geometry for Computer Graphics
6.1 Vector Spaces-Basic Properties. Euclidean n-space Just like we have ordered pairs (n=2), and ordered triples (n=3), we also have ordered n-tuples.
APPENDIX A: REVIEW OF LINEAR ALGEBRA APPENDIX B: CONVEX AND CONCAVE FUNCTIONS V. Sree Krishna Chaitanya 3 rd year PhD student Advisor: Professor Biswanath.
Elementary Linear Algebra Anton & Rorres, 9th Edition
Maths for Computer Graphics
Lecture 6 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
Lecture 9 Symmetric Matrices Subspaces and Nullspaces Shang-Hua Teng.
1 2. Constraint Databases Next level of data abstraction: Constraint level – finitely represents by constraints the logical level.
CS232.
Elementary Linear Algebra Anton & Rorres, 9 th Edition Lecture Set – 08 Chapter 8: Linear Transformations.
10.1 Gaussian Elimination Method
Algebra Algebra – defined by the tuple:  A, o 1, …, o k ; R 1, …, R m ; c 1, …, c k  Where: A is a non-empty set o i is the function, o i : A p i  A.
Matrices MSU CSE 260.
INDR 262 INTRODUCTION TO OPTIMIZATION METHODS LINEAR ALGEBRA INDR 262 Metin Türkay 1.
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Stats & Linear Models.
Systems and Matrices (Chapter5)
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
Math 3121 Abstract Algebra I Lecture 3 Sections 2-4: Binary Operations, Definition of Group.
1 February 24 Matrices 3.2 Matrices; Row reduction Standard form of a set of linear equations: Chapter 3 Linear Algebra Matrix of coefficients: Augmented.
Little Linear Algebra Contents: Linear vector spaces Matrices Special Matrices Matrix & vector Norms.
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
Multivariate Statistics Matrix Algebra II W. M. van der Veld University of Amsterdam.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Matrices and Vectors Objective.
Vectors in R n a sequence of n real number An ordered n-tuple: the set of all ordered n-tuple  n-space: R n Notes: (1) An n-tuple can be viewed.
Chapter 3 Vector Spaces. The operations of addition and scalar multiplication are used in many contexts in mathematics. Regardless of the context, however,
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
General linear groups, Permutation groups & representation theory.
Matrices. Definitions  A matrix is an m x n array of scalars, arranged conceptually as m rows and n columns.  m is referred to as the row dimension.
4.4 Identify and Inverse Matrices Algebra 2. Learning Target I can find and use inverse matrix.
Chap. 4 Vector Spaces 4.1 Vectors in Rn 4.2 Vector Spaces
2.1 Sets 2.2 Set Operations –Set Operations –Venn Diagrams –Set Identities –Union and Intersection of Indexed Collections 2.3 Functions 2.4 Sequences and.
Chapter 6 Systems of Linear Equations and Matrices Sections 6.3 – 6.5.
CSCI 171 Presentation 9 Matrix Theory. Matrix – Rectangular array –i th row, j th column, i,j element –Square matrix, diagonal –Diagonal matrix –Equality.
Ch 6 Vector Spaces. Vector Space Axioms X,Y,Z elements of  and α, β elements of  Def of vector addition Def of multiplication of scalar and vector These.
Linear Transformations
2.5 – Determinants and Multiplicative Inverses of Matrices.
Introduction to Financial Modeling MGT 4850 Spring 2008 University of Lethbridge.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
1 Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors. Review Matrices.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Graphics Graphics Korea University kucg.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
Lecture 1 Linear algebra Vectors, matrices. Linear algebra Encyclopedia Britannica:“a branch of mathematics that is concerned with mathematical structures.
MTH108 Business Math I Lecture 20.
Vector Spaces B.A./B.Sc. III: Mathematics (Paper II) 1 Vectors in Rn
Linear Algebra review (optional)
Linear Algebra Lecture 2.
RECORD. RECORD Subspaces of Vector Spaces: Check to see if there are any properties inherited from V:
COMP 175: Computer Graphics February 9, 2016
GROUPS & THEIR REPRESENTATIONS: a card shuffling approach
Lecture on Linear Algebra
Linear Algebra Chapter 4 Vector Spaces.
A Brief Summary for Exam 1
Matrix Definitions It is assumed you are already familiar with the terms matrix, matrix transpose, vector, row vector, column vector, unit vector, zero.
Matrix Algebra.
Elementary Linear Algebra
Linear Algebra Lecture 20.
Vector Spaces 1 Vectors in Rn 2 Vector Spaces
Database Design Dr. M.E. Fayad, Professor
Linear Algebra review (optional)
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Lecture 9 Symmetric Matrices Subspaces and Nullspaces
Elementary Linear Algebra Anton & Rorres, 9th Edition
Presentation transcript:

Linear Representation of Relational Operations Kenneth A. Presting University of North Carolina at Chapel Hill

Relations on a Domain Domain is an arbitrary set, Ω Relations are subsets of Ω n All examples used today take Ω n as ordered tuples of natural numbers, Ω n = {(a i ) 1≤i≤n | a i  N } All definitions and proofs today can extend to arbitrary domains, indexed by ordinals

Graph of a Relation We want to study relations extensionally, so we begin from the relation’s graph The graph is the set of tuples, in the context of the n- dimensional space n-ary relation → set of n-tuples Examples: x 2 + y 2 = p → points on a circle, in a plane z = nx + my + b → points in a plane, in 3-space

Hyperplanes and Lines Take an n-dimensional Cartesian product, Ω n, as an abstract coordinate space. Then an n-1 dimensional subspace, Ω n-1, is an abstract hyperplane in Ω n. For each point (a 1,…,a n-1 ) in the hyperplane Ω n-1, there is an abstract “perpendicular line,” Ω x {(a 1,…,a n-1 )}

Illustration Graph, Hyperplane, Perpendicular Line, and Slice

Slices of the Graph Let F(x 1,…,x n ) be an n-ary relation Let the plain symbol F denote its graph: F = {(x 1,…,x n )| F(x 1,…,x n )} Let a 1,…,a n-1 be n-1 elements of Ω Then for each variable x i there is a set F x i |a1,…,an-1 = { ω  Ω | F(a 1,…,a i-1,ω,a i,…, a n-1 } This set is the xi’s which satisfy F(…xi…) when all the other variables are fixed

The Matrix of Slices Every n-ary relation defines n set-valued functions on n-1 variables: F x i (v 1,…,v n-1 ) = { ω  Ω | F(v 1,…,v i-1,ω,v i,…,v n-1) } The n-tuple of these functions is called the “matrix of slices” of the relation F

Properties of the Matrix Each slice is a subset of the domain Each function F x i (v 1,…,v n-1 ) : Ω n-1 → 2 Ω maps vectors over the domain to subsets of the domain Application to measure theory

Inverse Map: Matrices to Relations Two-stage process, one step at a time Union across columns in each row: Row F (v 1,…,v n-1 ) = n | i<j → a i = v j U {  Ω n | i=j → a i  F x j (v 1,…,v n-1 ) } j=1 | i>j → a i = v j-1 Union of n-tuples from every row: F = U  Ω n-1 Row F (v 1,…,v n-1 )

Properties of the Slicing Maps Map from relations to matrices is injective but not surjective Inverse map from matrices to relations is surjective but not injective Not all matrices in pre-image of a relation follow it homomorphically in operations

Boolean Operations on Matrices Matrices treated as vectors i.e., Direct Product of Boolean algebras –Component-wise conjunction –Component-wise disjunction –Component-wise complementation

Cylindrical Algebra Operations Diagonal Elements –Images of diagonal relations, operate by logical conjunction with operand relation Cylindrifications –Binding a variable with existential quantifier Substitutions –Exchange of variables in relational expression

The Diagonal Relations Matrix images of an identity relation, x i = x j Example. In four dimensions, x 2 = x 3 maps to: IndexValue of x 1 Value of x 2 Value of x 3 Value of x 4 0,0,0Ω{0} Ω 0,0,1Ω{0} Ω 0,0, …Ω{0} Ω 0,1,0Ω{1} Ω 0,1,1Ω{1} Ω …Ω……Ω

Axioms for Diagonals Universal Diagonal –d κκ = 1 Independence –κ  {λ,μ} → c κ d λμ = d λμ Complementation –κ  λ → c κ (d κλ F) c κ (d κλ ~F) = 0

Cylindrical Identity Elements 1 is the matrix with all components Ω, i.e. the image of a universal relation such as x i =x i 0 is the matrix with all components Ø, i.e. the image of the empty relation

Diagonal Operations are Boolean Boolean conjunction of relation matrix with diagonal relation matrix Example

Substitution is not Boolean Substitution of variables permutes the slices – not a component-wise operation Composition of Diagonal with Substitution s κ λ F = c κ ( d κλ F ) If we assume Boolean arithmetic, then standard matrix multiplication suffices

Boolean Matrix Multiplication Take union down rows, of intersections across columns

Substitution Operators Square matrices, indexed by all variables in all relations Substitution operator is the elementary matrix operator for exchange of columns Example: in a four-dimensional CA, s 3 2 = x1x1 x2x2 x3x3 x4x4 x1x1 ΩØØØ x2x2 ØØΩØ x3x3 ØΩØØ x4x4 ØØØΩ

Axioms for Cylindrification Identity –c κ 0 = 0 Order –F + c κ F = c κ F Semi-Distributive –c κ (F + c κ G) = c κ F + c κ G Commutative –c κ c λ F = c λ c κ F

Instantiation Take an n-ary relation, F = F(x 1,…,x n ) Fix x i = a, that is, consider the n-1-ary relation F |x i =a = F(x 1,…,x i-1,a,x i+1,…,x n ) Each column in the matrix of F |x i =a is: F x j |x i =a (v 1,…,v n-2 ) = F(v 1,…,v j-1,x j,v j,…,v i-1,a,v i+1,…,v n )

Cylindrification as Union Cylindrification affects all slices in every non-maximal column Each slice in F |x i is a union of slices from instantiations: F x j |x i (v 1,…,v n-2 ) = U F x j |x i =a (v 1,…,v n-2 ) a  Ω Component-wise operation

Conclusion When cylindrification is defined as union of instantiations - Matrix representations of relations form a cylindrical algebra.