CS 1200 Discrete Math Math Preliminaries. A.R. Hurson 323 CS Building, Missouri S&T

Similar documents
CSC Discrete Math I, Spring Sets

Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103. Chapter 2. Sets

Sets MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Sets Fall / 31

9/19/12. Why Study Discrete Math? What is discrete? Sets (Rosen, Chapter 2) can be described by discrete math TOPICS

Algebraic Expressions

CS100: DISCRETE STRUCTURES

2.1 Sets 2.2 Set Operations

Sets 1. The things in a set are called the elements of it. If x is an element of the set S, we say

LECTURE 8: SETS. Software Engineering Mike Wooldridge

CS Bootcamp Boolean Logic Autumn 2015 A B A B T T T T F F F T F F F F T T T T F T F T T F F F

The Further Mathematics Support Programme

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

4 Mathematical Data Types

Today s Topics. What is a set?

SET DEFINITION 1 elements members

A.1 Numbers, Sets and Arithmetic

Set and Set Operations

Calculating Cardinalities

Chapter 3. Set Theory. 3.1 What is a Set?

CSE 20 DISCRETE MATH. Winter

2/18/14. Uses for Discrete Math in Computer Science. What is discrete? Why Study Discrete Math? Sets and Functions (Rosen, Sections 2.1,2.2, 2.

In this section we take an aside from the normal discussion in algebra.

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Review of Sets. Review. Philippe B. Laval. Current Semester. Kennesaw State University. Philippe B. Laval (KSU) Sets Current Semester 1 / 16

Chapter 1: Number and Operations

Slides for Faculty Oxford University Press All rights reserved.

Sets. {1, 2, 3, Calvin}.

Discrete Mathematics Lecture 4. Harper Langston New York University

SOFTWARE ENGINEERING DESIGN I

CSE 20 DISCRETE MATH. Fall

Sets. X. Zhang Dept. of Computer & Information Sciences Fordham University

This Lecture. We will first introduce some basic set theory before we do counting. Basic Definitions. Operations on Sets.

Sets. Mukulika Ghosh. Fall Based on slides by Dr. Hyunyoung Lee

CMPSCI 250: Introduction to Computation. Lecture #7: Quantifiers and Languages 6 February 2012


Summary of Course Coverage

SETS. Sets are of two sorts: finite infinite A system of sets is a set, whose elements are again sets.

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Discrete Mathematics

Math 302 Introduction to Proofs via Number Theory. Robert Jewett (with small modifications by B. Ćurgus)

NAME UNIT 4 ALGEBRA II. NOTES PACKET ON RADICALS, RATIONALS d COMPLEX NUMBERS

The Size of the Cantor Set

Equations and Functions, Variables and Expressions

Algebra 2 Common Core Summer Skills Packet

Outline. CISC 1100/1400 Structures of Comp. Sci./Discrete Structures Chapter 1 Sets. Sets. Enumerating the elements of a set

Sets and set operations

Computer Science and Mathematics. Part I: Fundamental Mathematical Concepts Winfried Kurth

CSE 20 DISCRETE MATH WINTER

Discrete Mathematics

Problem One: A Quick Algebra Review

Set theory is a branch of mathematics that studies sets. Sets are a collection of objects.

Introduction II. Sets. Terminology III. Definition. Definition. Definition. Example

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

What is a Set? Set Theory. Set Notation. Standard Sets. Standard Sets. Part 1.1. Organizing Information

Introduction to Sets and Logic (MATH 1190)

Dr. Relja Vulanovic Professor of Mathematics Kent State University at Stark c 2008

Relational terminology. Databases - Sets & Relations. Sets. Membership

What Is A Relation? Example. is a relation from A to B.

COMS 1003 Fall Introduction to Computer Programming in C. Bits, Boolean Logic & Discrete Math. September 13 th

2 Review of Set Theory

1KOd17RMoURxjn2 CSE 20 DISCRETE MATH Fall

DISCRETE MATHEMATICS

Math Week in Review #5

MITOCW watch?v=kz7jjltq9r4

1.1 - Introduction to Sets

c) the set of students at your school who either are sophomores or are taking discrete mathematics

A point is pictured by a dot. While a dot must have some size, the point it represents has no size. Points are named by capital letters..

AXIOMS FOR THE INTEGERS

Complexity Theory. Compiled By : Hari Prasad Pokhrel Page 1 of 20. ioenotes.edu.np

4 Basis, Subbasis, Subspace

OUTLINES. Variable names in MATLAB. Matrices, Vectors and Scalar. Entering a vector Colon operator ( : ) Mathematical operations on vectors.

Phil 320 Chapter 1: Sets, Functions and Enumerability I. Sets Informally: a set is a collection of objects. The objects are called members or

may be sent to:

Lecture 4. First order logic is a formal notation for mathematics which involves:

2.2 Set Operations. Introduction DEFINITION 1. EXAMPLE 1 The union of the sets {1, 3, 5} and {1, 2, 3} is the set {1, 2, 3, 5}; that is, EXAMPLE 2

Computer Organization

Functions. How is this definition written in symbolic logic notation?

CS402 - Theory of Automata Glossary By

To illustrate what is intended the following are three write ups by students. Diagonalization

Review of Operations on the Set of Real Numbers

EDAA40 At home exercises 1

Pre-Calc Unit 1 Lesson 1

Welcome. Please Sign-In

Identify parallel lines, skew lines and perpendicular lines.

Gulf Shores Middle School 7 th Grade Summer Math Packet Advanced Pre- - - AP Math Reetz

2.1 Symbols and Terminology

To prove something about all Boolean expressions, we will need the following induction principle: Axiom 7.1 (Induction over Boolean expressions):

Sets. Margaret M. Fleck. 15 September 2010

Introduction to Counting, Some Basic Principles

Section 1.7 Sequences, Summations Cardinality of Infinite Sets

CS102 Unit 2. Sets and Mathematical Formalism Programming Languages and Simple Program Execution

Virtual World Development

Math Glossary Numbers and Arithmetic

Quadratic Equations over Matrices over the Quaternions. By Diana Oliff Mentor: Professor Robert Wilson

Relations and Functions

2. Sets. 2.1&2.2: Sets and Subsets. Combining Sets. c Dr Oksana Shatalov, Fall

Your Turn: Explain why each of the following sets are, or are not, well defined:

CHAPTER 8. Copyright Cengage Learning. All rights reserved.

Figure 1.1: This is an illustration of a generic set and its elements.

MAT 090 Brian Killough s Instructor Notes Strayer University

Transcription:

CS 1200 Discrete Math A.R. Hurson 323 CS Building, Missouri S&T hurson@mst.edu 1

Course Objective: Mathematical way of thinking in order to solve problems 2

Variable: holder. A variable is simply a place One of the most important use of variables is that it gives one the ability to refer to quantities unambiguously through out a lengthy mathematical discussion while not restricting one to consider only specific values for that. 3

Examples Is there a number such that doubling it and adding 3 be equal to its square? Are there numbers such that sum of their square is equal to the square of their sum? 2x + 3 = x 2 a 2 + b 2 = (a + b) 2 = a 2 a = 0 or b = 0 x 2 2x 3 = 0 (x + 1) (x 3) = 0 (x + 1) = 0 and (x 3) = 0 x = -1 and x = 3 + b 2 + 2ab 2ab = 0 ab = 0 4

Universal Statement: A universal statement expresses a certain property that is true for all elements in a set. Note, universal statements contain some variation of the word for all. Example: All dogs are mammal 5

Conditional Statement: A Conditional statement expresses that if one thing is true then some other thing also is true. Note, conditional statements contain some variation of the word if-then. Example: If an animal is a dog, then animal is a mammal 6

Universal Conditional Statement: A universal conditional statement is a statement that is both universal and conditional. Example: For all animals a, if a is a dog, then a is a mammal Note, universal conditional statements can be written in different ways as pure universal or pure conditional statements. 7

For example the statement For all animals a, if a is a dog, then a is a mammal Can be written as: Pure conditional If a is a dog, then a is a mammal, or If an animal is a dog, then animal is a mammal All dogs are mammals, or For all dogs a, a is a mammal Pure universal 8

Existential Statement: Existential statement is a statement that there is at least one thing for which the property is true. Example: There exist a prime number that is even 9

Universal Existential Statement: is a statement that is universal since its first part is universal (i.e., certain property is true for all objects of a given type) and it is existential since its second part asserts the existence of something. Example: Every real number has an additive inverse Implies universality Asserts existence of something 10

Existential Universal Statement: is a statement that is existential since its first part asserts that a certain object exist and it is universal since its second part says that the object satisfies property for all things of a certain kind. Example: There is a positive integer that is less than or equal to every positive integer 11

Note, the statement There is a positive integer that is less than or equal to every positive integer can be rewritten in several ways: There is a positive integer m that is less than or equal to every positive integer, or There is a positive integer m that every positive integer is greater than or equal to m, or There is a positive integer m with the property that all positive integer n, m n, or m > 0, such that n > 0, m n 12

Set: A set is a collection of objects (elements) with some common characteristics. Example: set of all integers A set is represented by a capital letter: set S. 13

Set membership: if S is a set then the notation x S represents x as a member of S. Similarly the notation x S means that x is not a member of S. A set can be represented using self-roster notation (i.e., by writing all of its elements between braces: Example: {1, 2, 3} is a set whose members are 1, 2, and 3. 14

Note, in a set the order of elements is immaterial. In addition, duplication of elements does not change a set (axiom of extension). Note, an element of a set could be a set itself. Example: {1, {2}} 15

Some common sets: R set of real numbers Z set of integers Q set of rational numbers N set of natural numbers 16

Some conventions: R + denotes set of positive real numbers R - Z nonneg denotes set of negative real numbers denotes set of non-negative integers 17

Real number line -3-2.5-2 -1 1/2 0 1 2 3 2.6 18

Real number line shows a continuity (no holes). This is in contrast to the notion of discrete mathematics. Example: Set of integers are -3-2 -1 0 1 2 3 19

Formal definition of a set: Let S be a set and let P(x) be a property that elements of S satisfy (i.e., a predicate that is true), then S is defined as: S = {x S P(x)} or in short {x P(x)} Cardinality of S denoted as S is the number of elements of S. 20

Subset: Assume A and B are two set, then A is called a subset of B if every element of A is an element of B. A B for all x such that x A x B A is contained in B or B contains A. 21

Similarly A subset of B. A B indicates that A is not a B there exist x such that x A and x B Proper subset: A is proper subset of B, if every element of A is an element of B and there exist an element of B which is not an element of A A B (every x A x B) and (y B y A) 22

Ordered Pair: Given elements a and b, the symbol (a, b) shows that a is the first element and b is the second one. Hence Note (a, b) (b, a) (a, b) = (c,d) iff a = c and b = d 23

Set Operators: Cartesian Product: Given two sets A and B, the Cartesian product of A and B denoted as A X B is a set of all ordered pair (a, b) such that a is an element of A and b is an element of B. A X B { (a, b) a A b B} 24

Set Operators: Set Union: Given two sets A and B, the set union of A and B denoted as A B is: A B { x x A or x B} 25

Set Union: Set A Set B A B 26

Set Operators: Set intersection: Given two sets A and B, set intersection of A and B denoted as A B is: A B { x x A and x B} 27

Set intersection: Set A Set B A B 28

Set Operators: Set difference: Given two sets A and B, the set difference of A and B denoted as A - B is: A - B { x x A and x B} Note A B B A 29

Set Difference: Set A Set B A - B 30

Some observations: 31

32

Relations: Let A and B be two sets. We define a relation R from A to B as a subset of AXB such that any pair (x, y) A X B satisfy R (i.e., x is related to y by R denoted as x R y). A is called the domain and B is called the co-domain. Symbolically: x R y (x, y) R x y (x, y) R R 33

Assume A = {0, 1, 2} and B = {1, 2, 3} and let us define the following relationship between elements of A and B: x A is related to y B if x<y, then we have: A X B {(0, 1), (0, 2), (0, 3), (1, 1), (1, 2), (1, 3) (2, 1), (2, 2), (2, 3)} Ordered element of A X B related based on < are: {(0, 1), (0, 2), (0, 3), (1, 2), (1, 3), (2, 3)} 34

A relation can be graphically represented as an arrow diagram in which: 1) each set is represented as a region with its elements as a point, and 2) there is a directed edge from each element of the domain to its corresponding element of co-domain that satisfy the relation. 35

Assume A = {0, 1, 2} and B = {1, 2, 3} and let us define the following relationship between elements of A and B: x A is related to y B if x<y, then arrow diagram representation of R is: 0 2 R 1 2 1 3 36

Function: A function F from a set A to a set B is a relation that satisfies the following two properties: 1: for each element x A y B such that (x, y) F, and 2: for all elements x A and y, z B, if (x, y) F and (x, z) F then y = z. 37