Basic Definitions of Set Theory

Slides:



Advertisements
Similar presentations
Lecture 10 Disjoint Set ADT.
Advertisements

Section 7.5: Equivalence Relations Def: A relation R on a set A is called an equivalence relation if it is reflexive, symmetric, and transitive. Ex: Let.
Equivalence Relations
Discrete Structures Chapter 6: Set Theory
More Set Definitions and Proofs 1.6, 1.7. Ordered n-tuple The ordered n-tuple (a1,a2,…an) is the ordered collection that has a1 as its first element,
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Chapter Primes and Greatest Common Divisors ‒Primes ‒Greatest common divisors and least common multiples 1.
Chapter 2 Probability. 2.1 Sample Spaces and Events.
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
Denoting the beginning
Sets Definition of a Set: NAME = {list of elements or description of elements} i.e. B = {1,2,3} or C = {x  Z + | -4 < x < 4} Axiom of Extension: A set.
Discrete Mathematics Lecture 4 Harper Langston New York University.
Sets 1.
Sets 1.
1 Set Theory. 2 Set Properties Commutative Laws: Associative Laws: Distributive Laws:
Survey of Mathematical Ideas Math 100 Chapter 2 John Rosson Thursday January 25, 2007.
SET Miss.Namthip Meemag Wattanothaipayap School. Definition of Set Set is a collection of objects, things or symbols. There is no precise definition for.
Discrete Mathematics Unit - I. Set Theory Sets and Subsets A well-defined collection of objects (the set of outstanding people, outstanding is very subjective)
Equivalence Relations MSU CSE 260. Outline Introduction Equivalence Relations –Definition, Examples Equivalence Classes –Definition Equivalence Classes.
ICOM 6005 – Database Management Systems Design Dr. Manuel Rodríguez Martínez Electrical and Computer Engineering Department Lecture 2 – Relational Model.
Copyright © 2014 Curt Hill Sets Introduction to Set Theory.
1 Set Theory Foundation of Relational Database Systems E.F. Codd.
Mathematical Proofs. Chapter 1 Sets 1.1 Describing a Set 1.2 Subsets 1.3 Set Operations 1.4 Indexed Collections of Sets 1.5 Partitions of Sets.
1. Set Theory Set: Collection of objects (“elements”) a  A “a is an element of A” “a is a member of A” a  A “a is not an element of A” A = {a 1, a 2,
Copyright © Cengage Learning. All rights reserved.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com ICOM 5016 – Introduction.
CSNB143 – Discrete Structure Topic 1 - Set. Topic 1 - Sets Learning Outcomes – Student should be able to identify sets and its important components. –
Math 3121 Abstract Algebra I Lecture 5 Finish Sections 6 + Review: Cyclic Groups, Review.
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com ICOM 5016 – Introduction.
Module Code MA1032N: Logic Lecture for Week Autumn.
Basic Definitions of Set Theory Lecture 23 Section 5.1 Wed, Mar 8, 2006.
Lecture 3 Fuzzy sets. 1.1 Sets Elements of sets An universal set X is defined in the universe of discourse and it includes all possible elements.
Sets.
Basic Definitions of Set Theory Lecture 23 Section 5.1 Mon, Feb 21, 2005.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Set Operations Section 2.2.
Discrete Mathematics Lecture # 10 Venn Diagram. Union  Let A and B be subsets of a universal set U. The union of sets A and B is the set of all elements.
Introduction to Graph Theory & its Applications
CS 3630 Database Design and Implementation. 2 Set Theory Foundation of Relational Database Systems E.F. Codd.
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
2004/10/5fuzzy set theory chap03.ppt1 Classical Set Theory.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
“It is impossible to define every concept.” For example a “set” can not be defined. But Here are a list of things we shall simply assume about sets. A.
Chapter 4 Introduction to Set Theory
The set of whole numbers less than 7 is {1, 2, 3, 4, 5, 6}
Set Theory.
4.1 Product Sets and Partitions
Week 7 - Monday CS322.
Chapter 2 Sets and Functions.
Math 3121 Abstract Algebra I
Set Operations Section 2.2.
Direct Proof and Counterexample III
Algebra 1 Section 1.1.
Equivalence Relations
2.1 Sets Dr. Halimah Alshehri.
Advanced Algorithms Analysis and Design
Discrete Mathematics CS 2610
Chapter 4 Section 1 Probability Theory.
Lecture 43 Section 10.1 Wed, Apr 6, 2005
Counting Elements of Disjoint Sets: The Addition Rule
ICOM 5016 – Introduction to Database Systems
Counting Elements of Disjoint Sets: The Addition Rule
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Counting Elements of Disjoint Sets: The Addition Rule
ICOM 5016 – Introduction to Database Systems
Counting Elements of Disjoint Sets: The Addition Rule
Number Theory.
Section 3.2 More set operations.
Presentation transcript:

Basic Definitions of Set Theory Lecture 25 Section 5.1 Mon, Mar 5, 2007

Disjoint Sets Sets A and B are disjoint if A  B = . A collection of sets A1, A2, …, An are mutually disjoint, or pairwise disjoint, if Ai  Aj =  for all i and j, with i  j.

Examples The following sets are mutually disjoint. {0} {…, -3, 0, 3, 6, 9, …} = {3k | k  Z} {…, -2, 1, 4, 7, 10, …} = {3k + 1 | k  Z} {…, -1, 2, 5, 8, 11, …} = {3k + 2 | k  Z}

Partitions A collection of sets {A1, A2, …, An} is a partition of a set A if A1, A2, …, An are mutually disjoint, and A1  A2  …  An = A.

Examples {{0}, {1, 2, 3, …}, {-1, -2, -3, …}} is a partition of Z.

Example For each positive integer n  N, define f(n) to be the number of distinct prime divisors of n. For example, f(1) = 0. f(2) = 1. f(4) = 1. f(6) = 2.

Example Define Ai = {n  N | f(n) = i}. Then A0, A1, A2, … is a (infinite) partition of N. Verify that Ai  Aj =  for all i, j, with i j. A0  A1  A2  … = N.

Power Sets Let A be a set. The power set of A, denoted P(A), is the set of all subsets of A. If A = {a, b, c}, then P(A) = {, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c}}. What is P()? What is P(P())? What is P(P({a}))? If A contains n elements, how many elements are in P(A)?

A  B = {(a, b) | a  A and b  B}. Cartesian Products Let A and B be sets. Define the Cartesian product of A and B to be A  B = {(a, b) | a  A and b  B}. R  R = set of points in the plane. R  R  R = set of points in space. What is A  ? How many elements are in {1, 2}  {3, 4, 5}  {6, 7, 8}?

Representing Sets in Software Given a universal set U of size n, there are 2n subsets of U. Given an register of n bits, there are 2n possible values that can be stored. This suggests a method of representing sets in memory.

Representing Sets in Software For simplicity, we will assume that |U|  32. Let U = {a0, a1, a2, …, an – 1}. Using a 32-bit integer to represent a set S, let bit i represent the element ai. If i = 0, then ai  S. If i = 1, then ai  S. For example, 10011101 represents the set S = {a0, a2, a3, a4, a7}.

Example: Sets.cpp