Relations, operations, structures. Motivation To evidence memners of some set of objects including its attributes (see relational databases) For evidence.

Slides:



Advertisements
Similar presentations
Binary Relations Binary Relations on Real Numbers.
Advertisements

Chapter 4 – Finite Fields. Introduction will now introduce finite fields of increasing importance in cryptography –AES, Elliptic Curve, IDEA, Public Key.
Chapter 7 Relations : the second time around
Relations. Binary Relations a relation between elements of two sets is a subset of their Cartesian product (of ordered pairs). Note the di ff erence between.
EE1J2 – Discrete Maths Lecture 7
SETS CSC 172 SPRING 2002 LECTURE 20 Sets Defined by membership relation  Atoms many not have members, but may be members ofa set Sets may also be members.
Lattice and Boolean Algebra
Chapter 2 Sets, Relations, and Functions SET OPERATIONS The union of A and B.
SETS A set B is a collection of objects such that for every object X in the universe the statement: “X is a member of B” Is a proposition.
Partially Ordered Sets (POSets)
Relations Chapter 9.
Chapter 9 1. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing.
Unit – IV Algebraic Structures
Temperature Readings The equation to convert the temperature from degrees Fahrenheit to degrees Celsius is: c(x) = (x - 32) The equation to convert the.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Homework Review notes Complete Worksheet #1. Homework Let A = {a,b,c,d}, B = {a,b,c,d,e}, C = {a,d}, D = {b, c} Describe any subset relationships. 1.
2-6 Multiplying Rational Numbers Objective: To multiply rational numbers.
Chapter 9. Section 9.1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and.
Temperature Readings The equation to convert the temperature from degrees Fahrenheit to degrees Celsius is: c(x) = (x - 32) The equation to convert the.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
Discrete Mathematics Relation.
1. Vector Space 24. February Real Numbers R. Let us review the structure of the set of real numbers (real line) R. In particular, consider addition.
Lecture 1: Construction & Extension: Story of Numbers Addressed by Z.Liu.
Sets, Relations, and Lattices
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
Mathematical Preliminaries
Sets and Subsets Set A set is a collection of well-defined objects (elements/members). The elements of the set are said to belong to (or be contained in)
THE REAL NUMBERS College Algebra. Sets Set notation Union of sets Intersection of sets Subsets Combinations of three or more sets Applications.
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
Relations. Important Definitions We covered all of these definitions on the board on Monday, November 7 th. Definition 1 Definition 2 Definition 3 Definition.
Equivalence Relations. Partial Ordering Relations 1.
Algebra Properties Definition Numeric Example  Algebraic Example.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Chapter 6 Abstract algebra
Lecture 1 Overview Topics 1. Proof techniques: induction, contradiction Proof techniques June 1, 2015 CSCE 355 Foundations of Computation.
Chapter 8: Relations. 8.1 Relations and Their Properties Binary relations: Let A and B be any two sets. A binary relation R from A to B, written R : A.
SEMESTERFIVE SUBJECT CODEMA1256 PROFESSORV.SUNDARARAJAN.
Set Theory Concepts Set – A collection of “elements” (objects, members) denoted by upper case letters A, B, etc. elements are lower case brackets are used.
Chapter 13 Mathematic Structures 13.1 Modular Arithmetic Definition 1 (modulo). Let a be an integer and m be a positive integer. We denoted by a mod m.
EXAMPLE 1 Find multiplicative inverses of numbers a. The multiplicative inverse of 1 5 – is – 5 because b. The multiplicative inverse of 6 7 – is 7 6 –
Lesson 15: Relations and algebras Compiled by: Ondřej Kohut (within the Theory of formal systems course)
ORDERED SETS. RELATIONS COSC-1321 Discrete Structures 1.
Chap. 7 Relations: The Second Time Around
CSCI 115 Course Review.
Advanced Digital Designs Jung H. Kim. Chapter 1. Sets, Relations, and Lattices.
Week 8 - Monday.  What did we talk about last time?  Properties of functions  One-to-one  Onto  Inverses  Cardinality.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 41 May 7, 2008.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
Discrete Mathematics Lecture # 17 Function. Relations and Functions  A function F from a set X to a set Y is a relation from X to Y that satisfies the.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Review: Discrete Mathematics and Its Applications
CSCE 355 Foundations of Computation
Unit-III Algebraic Structures
Introduction to Relations
Relations Chapter 9.
Chapter 1 Logic and Proofs Homework 2 Given the statement “A valid password is necessary for you to log on to the campus server.” Express the statement.
Aaron Bloomfield CS 202 Epp, section ???
CSCE 355 Foundations of Computation
Lesson 15: Relations and algebras
Algebra 1 Section 1.1.
Introductory Material
Number Properties Magic Book Foldable
Sungho Kang Yonsei University
Review: Discrete Mathematics and Its Applications
Introduction to Relations and Functions
MCS680: Foundations Of Computer Science
Number Properties Magic Book Foldable
2-1Sets 2-2 The Number System Properties of Real Numbers
REVISION Relation. REVISION Relation Introduction to Relations and Functions.
Introductory Material
Presentation transcript:

Relations, operations, structures

Motivation To evidence memners of some set of objects including its attributes (see relational databases) For evidence relations between members of some set

Definition Relation among sets A1,A2,…,An is any subset of cartesian product A1xA2x…xAn. n-ntuple relation on set A is a subset of cartesian product AxAx…xA. – Unary relation – attribut of the item – Binary relation – relation between items

Relation types Reflexive relation: for any x from A holds x R x Symetrical relation: for any x,y from A holds: if x R y, then y R x Transitive relation: for any x,y,z from A holds: if x R y and y R z, then x R z

Relation types Non symetric relation: there exist at leat one pair x,y from A so that x R y, but not y R x Antisymetric relation: for any x,y from A holds: if x R y and y R x, then x=y Asymetric relation: for any x,y from A holds: if x R y, then not y R x

Ralation completness Complete relation: for any x,y from A either x R y, or y R x Weakly complete relation: for any different x,y from A either x R y, or y R x

Equivalence Relation – Reflexive – Symetrical – Tranzitive Divides the set into classes of equivalence

Ordering Quasiordering – Reflexive – Tranzitive Partial ordering – Reflexive – Tranzitive – Antisymetrical

Ordering Weak ordering – Reflexive – Tranzitive – Complete (Complete) ordering – Reflexive – Tranzitive – Antisymetrical – Complete

Uspořádání

Crisp ordering Crisp partial ordering Crisp weak ordering crisp (complete) ordering – Not reflexive

Relation recording Items enumeration: {(Omar,Omar), (Omar,Ramazan), (Omar,Kadir), (Omar,Turgut), (Omar,Fatma), (Omar,Bulent), (Ramazan,Ramazan), (Ramazan,Kadir), (Ramazan,Turgut), (Ramazan,Bulent), (Kadir,Kadir), (Kadir,Bulent), (Turgut,Turgut), (Turgut,Bulent), (Fatma,Fatma), (Fatma,Bulent), (Bulent,Bulent)}.

Relation recording Table OmarRamazanKadirTurgutFatmaBulent Omar Ramazan Kadir Turgut Fatma Bulent

Relation graph

Hasse diagram Only for transitive relation

Operation Prescription for 2 or more items to find one result n-nary operation on the set A is (n+1)-nary relation on the set A so that if (x1,x2,…xn,y) is in the relation and a (x1,x2,…,xn,z) is in the relation then y=z.

Operation -arity 0 (constante) 1 (function) 2 (classical operation) 3 or more

Attributes of binary operations Complete: for any x,y there exist x ⊕ y Comutative: x ⊕ y = y ⊕ x Asociative: (x ⊕ y) ⊕ z = x ⊕ (y ⊕ z) Neutral item: there exist item ε, so that x ⊕ ε = ε ⊕ x = x Inverse items: for any x there exist y, so that x ⊕ y = ε

Algebra Set System of operations Systém of attributes (axioms), for these operations

Semigroup, monoid Arbitary set Operation ⊕ – Semigroup Complete Asociative – Monoid Complete Asociative With neutral item

Group Operation ⊕ – Complete – Asocoative – With neutral item – With inverse items Abel group – Comutative

Group examples Integers and adding Non zero real numbers and multipling Permutation of the finite set Matrices of one size Moving of Rubiks cube

Ring Set with 2 operations  and  – By the operation  it is an o Abel group – Operation  is complete, comutative, asociate, with neutral item Inverse items does not need to exist to the operation  – distributive: x  (y  z)=(x  y)  ( y  z) Examples – Integers and addind, multipling – Modular classes of integers with the number n.

Division ring Set T with 2 operation  and  – T and  forms Abel group with neutral item ε – T-{ε} and  forms Abel group In addition to a ring there is a need of existence of the inverse items to  (it means „posibility of dividing“) Examples: fractions, real numbers, complex numbers, modular class by dividing with the prime number p, logical operations AND and OR

Lattice Set S with 2 operations  (union) and  (intersect) –  and  are comutative and asociative – Holds distributive rules a  (b  c) = (a  b)  (a  c) a  (b  c) = (a  b)  (a  c) – Absorbtion: a  (b  a)=a, a  (b  a)=a – Idenpotencea  a = a, a  a = a Examples – Propositional calculus and logical operators AND and OR – Subsets of given set and operations of union and intersection – Members of partialy ordered set and operations of supremum and infimum.