ICS141: Discrete Mathematics for Computer Science I

Similar documents
Chapter 0. Review of set theory. 0.1 Sets

EE260: Digital Design, Spring n Binary logic and Gates n Boolean Algebra. n Basic Properties n Algebraic Manipulation

Sets. Sets. Operations on Sets Laws of Algebra of Sets Cardinal Number of a Finite and Infinite Set. Representation of Sets Power Set Venn Diagram

Commutativity in Permutation Groups

CEE 522 Autumn Uncertainty Concepts for Geotechnical Engineering

Lecture 10: Mathematical Preliminaries

Wrap of Number Theory & Midterm Review. Recall: Fundamental Theorem of Arithmetic

2.4 Sequences, Sequences of Sets

Lecture Notes for CS 313H, Fall 2011

CS161 Handout 05 Summer 2013 July 10, 2013 Mathematical Terms and Identities

Sets and Probabilistic Models

Apply change-of-basis formula to rewrite x as a linear combination of eigenvectors v j.

Axioms of Measure Theory

Lecture 2.5: Sequences

Sets are collection of objects that can be displayed in different forms. Two of these forms are called Roster Method and Builder Set Notation.

Exercises 1 Sets and functions

Sets and Probabilistic Models

Computing the output response of LTI Systems.

Section 4.3. Boolean functions

If a subset E of R contains no open interval, is it of zero measure? For instance, is the set of irrationals in [0, 1] is of measure zero?

Introduction to Probability. Ariel Yadin. Lecture 2

Computability and computational complexity

It is always the case that unions, intersections, complements, and set differences are preserved by the inverse image of a function.

1 Introduction. 1.1 Notation and Terminology

3.1. Introduction Assumptions.

As stated by Laplace, Probability is common sense reduced to calculation.

CSE 1400 Applied Discrete Mathematics Number Theory and Proofs

Chapter 1. Probability

CSE 191, Class Note 05: Counting Methods Computer Sci & Eng Dept SUNY Buffalo

REVIEW FOR CHAPTER 1

Here are some examples of algebras: F α = A(G). Also, if A, B A(G) then A, B F α. F α = A(G). In other words, A(G)

Structural Functionality as a Fundamental Property of Boolean Algebra and Base for Its Real-Valued Realizations

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES

1 Summary: Binary and Logic

Measure and Measurable Functions

Major Themes. Sets and Logic. Sets and cardinality. Basic terminology. Dr Papalaskari 1. Sets. CSC 1300 Discrete Structures. Villanova University

CIS Spring 2018 (instructor Val Tannen)

PROBLEMS ON ABSTRACT ALGEBRA

CS166 Handout 02 Spring 2018 April 3, 2018 Mathematical Terms and Identities

Hoggatt and King [lo] defined a complete sequence of natural numbers

Introduction to Probability. Ariel Yadin. Lecture 7

CS284A: Representations and Algorithms in Molecular Biology

Machine Learning Theory Tübingen University, WS 2016/2017 Lecture 11

9.3 Power Series: Taylor & Maclaurin Series

Lecture 2: April 3, 2013

Number Representation

Pb ( a ) = measure of the plausibility of proposition b conditional on the information stated in proposition a. & then using P2

Name of the Student:

Class notes on sec+ons 4.2, 5.1, 5.2 and 5.3

1. By using truth tables prove that, for all statements P and Q, the statement

11.1 Arithmetic Sequences and Series

Discrete Math Class 5 ( )

arxiv: v1 [math.co] 23 Mar 2016

LinearAlgebra DMTH502

7. Modern Techniques. Data Encryption Standard (DES)

An Intuitionistic fuzzy count and cardinality of Intuitionistic fuzzy sets

CALCULATING FIBONACCI VECTORS

Properties of Regular Languages. Reading: Chapter 4

Lecture 4: Grassmannians, Finite and Affine Morphisms

Tutorial F n F n 1

Math 113 Exam 3 Practice

The Borel-Cantelli Lemma and its Applications

Algorithm of Superposition of Boolean Functions Given with Truth Vectors

EE260: Digital Design, Spring n MUX Gate n Rudimentary functions n Binary Decoders. n Binary Encoders n Priority Encoders

PROBABILITY LOGIC: Part 2

THE ASYMPTOTIC COMPLEXITY OF MATRIX REDUCTION OVER FINITE FIELDS

Algorithm Analysis. Chapter 3

Mathematical Induction

Probability and Random Processes

CALCULATION OF FIBONACCI VECTORS

Math 155 (Lecture 3)

Chapter 7 COMBINATIONS AND PERMUTATIONS. where we have the specific formula for the binomial coefficients:

CHAPTER I: Vector Spaces

Mathematical Description of Discrete-Time Signals. 9/10/16 M. J. Roberts - All Rights Reserved 1

EEO 401 Digital Signal Processing Prof. Mark Fowler

Homework 9. (n + 1)! = 1 1

In number theory we will generally be working with integers, though occasionally fractions and irrationals will come into play.

MathCity.org Merging man and maths

HILBERT SPACE GEOMETRY

ii. O = {x x = 2k + 1 for some integer k} (This set could have been listed O = { -3, -1, 1, 3, 5 }.)

Review of Discrete-time Signals. ELEC 635 Prof. Siripong Potisuk

Review for Test 3 Math 1552, Integral Calculus Sections 8.8,

Discrete-Time Systems, LTI Systems, and Discrete-Time Convolution

Infinite Sequences and Series

6.003 Homework #3 Solutions

Lecture Overview. 2 Permutations and Combinations. n(n 1) (n (k 1)) = n(n 1) (n k + 1) =

, 4 is the second term U 2

What is Probability?

Product measures, Tonelli s and Fubini s theorems For use in MAT3400/4400, autumn 2014 Nadia S. Larsen. Version of 13 October 2014.

Sequences I. Chapter Introduction

MATH 262A LECTURE 1: AN INTRODUCTION TO BOOLEAN CIRCUITS AND FORMULAE

10.1 Sequences. n term. We will deal a. a n or a n n. ( 1) n ( 1) n 1 2 ( 1) a =, 0 0,,,,, ln n. n an 2. n term.

Quick Review of Probability

Quick Review of Probability

Resolution Proofs of Generalized Pigeonhole Principles

Introduction to Automata Theory. Reading: Chapter 1

1 Lecture 2: Sequence, Series and power series (8/14/2012)

Math F215: Induction April 7, 2013

PAPER : IIT-JAM 2010

15.083J/6.859J Integer Optimization. Lecture 3: Methods to enhance formulations

Transcription:

ICS4: Discrete Mathematics for Computer Sciece I Dept. Iformatio & Computer Sci., Ja Stelovsky based o slides by Dr. aek ad Dr. Still Origials by Dr. M. P. Frak ad Dr. J.L. Gross Provided by McGraw-Hill ICS 4: Discrete Mathematics I Fall 2 9-

Lecture 9 Chapter 2. asic Structures 2.2 Set Operatios ICS 4: Discrete Mathematics I Fall 2 9-2

Set Idetities Idetity: U Domiatio: U U, Idempotet:, Double complemet: () Commutative:, ssociative: ( C) ( ) C, ( C) ( ) C Distributive: ( C) ( ) ( C), ( C) ( ) ( C) bsorptio: ( ), ( ) Complemet: U, ICS 4: Discrete Mathematics I Fall 2 9-3

DeMorga s Law for Sets Eactly aalogous to (ad provable from) DeMorga s Law for propositios. ICS 4: Discrete Mathematics I Fall 2 9-4

Provig Set Idetities To prove statemets about sets, of the form E E 2 (where the Es are set epressios), here are three useful techiques:. Prove E E 2 ad E 2 E separately. 2. Use set builder otatio & logical equivaleces. 3. Use a membership table. 4. Use a Ve diagram. ICS 4: Discrete Mathematics I Fall 2 9-5

Method : Mutual Subsets Eample: Show ( C) ( ) ( C). Part : Show ( C) ( ) ( C). ssume (C), & show ()(C). We kow that, ad either or C. Case : ad. The, so ()(C). Case 2: ad C. The C, so ()(C). Therefore, ()(C). Therefore, (C) ()(C). Part 2: Show ()(C) (C). (Try it!) ICS 4: Discrete Mathematics I Fall 2 9-6

9-7 ICS 4: Discrete Mathematics I Fall 2 Method 2: Set uilder Notatio & Logical Equivalece Show def. of complemet def. of does ot belog def. of itersectio De Morga s law (logic) def. of does ot belog def. of complemet def. of uio by set builder otatio } } } )} ( ) ( )} ( ))} ( ( )} (

Method 3: Membership Tables alog to truth tables i propositioal logic. Colums for differet set epressios. Rows for all combiatios of memberships i costituet sets. Use to idicate membership i the derived set, for o-membership. Prove equivalece with idetical colums. ICS 4: Discrete Mathematics I Fall 2 9-8

Membership Table Eample Prove ( ) - -. () ICS 4: Discrete Mathematics I Fall 2 9-9

Membership Table Eercise Prove ( ) - C ( - C) ( - C). C () C C C ( C)( C) ICS 4: Discrete Mathematics I Fall 2 9-

Method 4: Ve Diagram Prove ( ) - C ( - C) ( - C). C ( ) C C C C C C C ( C) ( C) ICS 4: Discrete Mathematics I Fall 2 9-

Geeralized Uios & Itersectios Sice uio & itersectio are commutative ad associative, we ca eted them from operatig o pairs of sets ad to operatig o sequeces of sets,,, or eve o sets of sets, X P()}. ICS 4: Discrete Mathematics I Fall 2 9-2

Geeralized Uio iary uio operator: -ary uio: 2 (( (( 2 ) ) ) (groupig & order is irrelevat) ig U otatio: i More geerally, uio of the sets i for i I: i i I i For ifiite umber of sets: i i ICS 4: Discrete Mathematics I Fall 2 9-3

9-4 ICS 4: Discrete Mathematics I Fall 2 +,2,3,...},2,3},2} } 3 2 i i Geeralized Uio Eamples Let i i, i+, i+2, }. The, Let i, 2, 3,,i } for i, 2, 3,. The,,2,3,...} 2,...},, 2,3,4,...},2,3,...} 3 2 + + i i

Geeralized Itersectio iary itersectio operator: -ary itersectio: 2 (( (( 2 ) ) ) (groupig & order is irrelevat) ig rch otatio: Geerally, itersectio of sets i for i I: i i i I i For ifiite umber of sets: i i ICS 4: Discrete Mathematics I Fall 2 9-5

9-6 ICS 4: Discrete Mathematics I Fall 2 },2,3},2} } 3 2 i i Geeralized Itersectio Eamples Let i i, i+, i+2, }. The, Let i, 2, 3,,i } for i, 2, 3,. The, 2,...},, 2,...},, 2,3,4,...},2,3,...} 3 2 + + + + i i

it Strig Represetatio of Sets frequet theme of this course are methods of represetig oe discrete structure usig aother discrete structure of a differet type. For a eumerable uiversal set U with orderig, 2, 3,, we ca represet a fiite set S U as the fiite bit strig b b 2 b where b i if i S ad b i if i S. E.g. U N, S 2,3,5,7,},. I this represetatio, the set operators,, are implemeted directly by bitwise OR, ND, NOT! ICS 4: Discrete Mathematics I Fall 2 9-7

Eamples of Sets as it Strigs Let U, 2, 3, 4, 5, 6, 7, 8, 9, }, ad the orderig of elemets of U has the elemets i icreasig order, the S, 2, 3, 4, 5} S 2, 3, 5, 7, 9} 2 S S 2, 2, 3, 4, 5, 7, 9} bit strig 2 S S 2, 3, 5} bit strig 2 S 6, 7, 8, 9, } bit strig ICS 4: Discrete Mathematics I Fall 2 9-8