Discrete Math & Fixed points

Slides:



Advertisements
Similar presentations
Partial Orderings Section 8.6.
Advertisements

CSE 211- Discrete Structures1 Relations Ch 2 schaums, Ch 7 Rosen.
CSCI 115 Chapter 6 Order Relations and Structures.
Relations Relations on a Set. Properties of Relations.
CS2210(22C:19) Discrete Structures Relations Spring 2015 Sukumar Ghosh.
CSE 231 : Advanced Compilers Building Program Analyzers.
Orderings and Bounds Parallel FSM Decomposition Prof. K. J. Hintz Department of Electrical and Computer Engineering Lecture 10 Update and modified by Marek.
Partial Orderings: Selected Exercises
1 Partial Orderings Based on Slides by Chuck Allison from Rosen, Chapter 8.6 Modified by.
Partially Ordered Sets (POSets)
Chapter 9 1. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing.
Sets, POSets, and Lattice © Marcelo d’Amorim 2010.
CSE 460: Switching Theory David M. Zar
Relations: Operations & Properties. Power Sets Set of all subsets of a set A. –A = {1,2} –P(A) = 2 A = { {}, {1}, {2}, {1,2} } We note that each element.
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
Discrete Structures – CNS2300
8.3 Representing Relations Directed Graphs –Vertex –Arc (directed edge) –Initial vertex –Terminal vertex.
Sets Define sets in 2 ways  Enumeration  Set comprehension (predicate on membership), e.g., {n | n  N   k  k  N  n = 10  k  0  n  50} the set.
Relations, Functions, and Countability
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
CS 267: Automated Verification Lecture 3: Fixpoints and Temporal Properties Instructor: Tevfik Bultan.
1 IS 2150 / TEL 2810 Introduction to Security James Joshi Associate Professor, SIS Lecture 3 September 15, 2009 Mathematical Review Security Policies.
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)
Foundations of Discrete Mathematics Chapter 4 By Dr. Dalia M. Gil, Ph.D.
1 Partial Orderings Aaron Bloomfield CS 202 Epp, section ???
Problem Statement How do we represent relationship between two related elements ?
Unit II Discrete Structures Relations and Functions SE (Comp.Engg.)
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.
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.
Chap. 7 Relations: The Second Time Around
CSCI 115 Course Review.
1 Partial Orderings Based on Slides by Chuck Allison from Rosen, Chapter 8.6 Modified by.
Data Flow Analysis II AModel Checking and Abstract Interpretation Feb. 2, 2011.
1 Iterative Program Analysis Part II Mathematical Background Mooly Sagiv Tel Aviv University
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.
Lecture 7: Relations Dr Andrew Purkiss-Trew Cancer Research UK Mathematics for Computing.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Review: Discrete Mathematics and Its Applications
Chapter 5 Relations and Operations
Discrete Mathematics Lecture 6
Partial Orderings: Selected Exercises
CSCE 355 Foundations of Computation
Fixpoints and Reachability
CSE 2813 Discrete Structures
Partial Orderings CSE 2813 Discrete Structures.
Partial Orders (POSETs)
Introduction to Relations
Equivalence Relations
Partial Orderings.
CS 2210:0001 Discrete Structures Sets and Functions
Discrete Mathematics Lecture 7
Aaron Bloomfield CS 202 Epp, section ???
CS201: Data Structures and Discrete Mathematics I
CSCE 355 Foundations of Computation
IS 2150 / TEL 2810 Information Security & Privacy
CS2210 Discrete Structures Relations
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
Uncountable sets & fixed points
Discrete Math (2) Haiming Chen Associate Professor, PhD
Sungho Kang Yonsei University
IS 2150 / TEL 2810 Introduction to Security
Review: Discrete Mathematics and Its Applications
Background material.
교환 학생 프로그램 내년 1월 중순부터 6월 초 현재 학부 2,3 학년?
Background material.
IS 2150 / TEL 2810 Introduction to Security
Foundations of Discrete Mathematics
IS 2150 / TEL 2810 Information Security & Privacy
Presentation transcript:

Discrete Math & Fixed points CS 350 — Fall 2018 gilray.org/classes/fall2018/cs350/

𝐴={1,2,3}

𝐴×𝐴= {(1,1),(1,2),(1,3), (2,1),(2,2),(2,3), (3,1),(3,2),(3,3)}

ℕ×ℕ= {(0,0),(0,1),(0,2),(0,3),⋯ (1,0),(1,1),(1,2),(1,3),⋯ (2,0),(2,1),(2,2),(3,3),⋯ (3,0),(3,1),(3,2),(3,3), ⋱ ⋮

𝑅⊆ℕ×ℕ

∃𝑥∈𝐴.Even(𝑥) ∀𝑥∈𝐴.Even(𝑥) 𝐴={1,2,3} Even(𝑥) = Δ 𝑥≡0(mod2) Propositions are statements that are True or False. E.g., 𝐴={1,2,3} Predicates are functions that yield True or False. E.g., Even(𝑥) = Δ 𝑥≡0(mod2) Quantifiers lift a proposition over elements to a proposition over sets. E.g. ∃𝑥∈𝐴.Even(𝑥) ∀𝑥∈𝐴.Even(𝑥)

Applies to sets as well: De Morgan’s Laws 𝑎∨𝑏⟺¬(¬𝑎∧¬𝑏) 𝑎∧𝑏⟺¬(¬𝑎∨¬𝑏) Applies to sets as well: 𝐴∩𝐵⟺ ( 𝐴 ∪ 𝐵 )

Or, using set-builder notation: 𝑅={(0,1),(1,2),(2,3),(3,4),…} Or, using set-builder notation: 𝑅={(𝑛,𝑛+1)|𝑛∈ℕ}

Or, as a graph: 1 2 3 4 5

|𝐴|=3 |𝐴×𝐴|=|𝐴|×|𝐴|=9 |𝒫(𝐴)|=| 2 𝐴 |= 2 |𝐴| =8

Counting Problems

𝒫(𝐴)= 2 𝐴 = {Ø,{1},{2},{3}, {1,2},{1,3},{2,3},{1,2,3}}

𝒫(𝐴)= 2 𝐴 = “Hasse” diagram {1,2,3} {1,2} {1,3} {2,3} {1} {2} {3} Ø

(⊆)⊆𝒫(𝐴)×𝒫(𝐴)

𝑥𝑅𝑦⟹𝑦𝑅𝑥 𝑥𝑅𝑦∧𝑦𝑅𝑥⟹𝑥=𝑦 𝑥𝑅𝑦∧𝑦𝑅𝑧⟹𝑥𝑅𝑧 ∀𝑥.𝑥𝑅𝑥 Reflexivity of R: Symmetry of R: 𝑥𝑅𝑦⟹𝑦𝑅𝑥 Antisymmetry of R: 𝑥𝑅𝑦∧𝑦𝑅𝑥⟹𝑥=𝑦 Transitivity of R: 𝑥𝑅𝑦∧𝑦𝑅𝑧⟹𝑥𝑅𝑧

⊑ ⊑ (ℝ,≤) (𝒫(ℕ),⊆) ∀𝑥,𝑦.𝑥𝑅𝑦∨𝑦𝑅𝑥 Partial orders are reflexive, antisymmetric, and transitive. If , then the order is total. If it is not antisymmetric, then it’s a preorder. If it is irreflexive, then it is a strict partial order. A set S and a partial order ( ) form a poset (S, ) together—a partially ordered set. For example: or A equivalence relation is reflexive, symmetric, and transitive—has equivalence classes. What does it’s graph look like? ∀𝑥,𝑦.𝑥𝑅𝑦∨𝑦𝑅𝑥 ⊑ ⊑ (ℝ,≤) (𝒫(ℕ),⊆)

A join , also called a least upper bound, is the unique element of a poset no less than than x and y, but strictly less than all other elements no less than either x or y. A meet , also called a greatest lower bound, is the unique element of a poset no greater than than x and y, but strictly greater than all other elements no greater than either x or y. A lattice is a partially ordered set such that, for all x and y, both a meet and a join exist for x and y. (𝑥⊔𝑦) 𝑥⊑(𝑥⊔𝑦)∧𝑦⊑(𝑥⊔𝑦)∧∀𝑧.(𝑥⊑𝑧∧𝑦⊑𝑧∧𝑧⊑(𝑥⊔𝑦)⟹𝑧=(𝑥⊔𝑦) (𝑥⊓𝑦) 𝑥⊒(𝑥⊓𝑦)∧𝑦⊒(𝑥⊓𝑦)∧∀𝑧.(𝑥⊒𝑧∧𝑦⊒𝑧∧𝑧⊒(𝑥⊓𝑦)⟹𝑧=(𝑥⊓𝑦)

(1.0m, 100kg) (0.5m, 100kg) (1.0m, 50kg) (1.0m, 10kg) (0.5m, 50kg) (0.5m, 10kg)

∀𝑥.∃𝑦.(𝑥,𝑦)∈𝐹 ∀𝑦.∃𝑥.(𝑥,𝑦)∈𝐹 ∀𝑥,𝑦.𝐹(𝑥)=𝐹(𝑦)⟹𝑥=𝑦 F is a function: ∀𝑥,𝑦,𝑧.(𝑥,𝑦)∈𝐹∧(𝑥,𝑧)∈𝐹⟹𝑦=𝑧 F is a total function: ∀𝑥.∃𝑦.(𝑥,𝑦)∈𝐹 F is injective/1-1: ∀𝑥,𝑦.𝐹(𝑥)=𝐹(𝑦)⟹𝑥=𝑦 F is surjective/onto: ∀𝑦.∃𝑥.(𝑥,𝑦)∈𝐹

sets, then they must have the same cardinality. 𝐹:ℕ→ℙ 𝐹(𝑛)=𝑛+1 1 2 3 4 5 6 7 8 9 10 11 If a bijective function (injective, surjective) exists between two finite sets, then they must have the same cardinality.

n f(n) 0 .0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 … 1 .1 0 0 1 0 0 0 0 1 1 0 1 0 1 0 0 0 1 1 0 … 2 .1 1 1 1 1 0 1 1 1 1 0 0 1 1 1 1 1 1 1 0 … 3 .1 1 1 0 0 1 1 0 1 1 0 1 0 0 0 1 1 1 1 1 … 4 .0 0 1 0 1 0 0 0 0 1 1 1 1 1 1 0 0 0 0 1 … 5 .1 0 0 1 0 0 0 1 0 0 0 0 0 0 1 1 1 1 0 1 … 6 .0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 … 7 .1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 … 8 .1 1 0 0 1 0 0 0 0 1 1 1 0 1 1 1 1 1 0 1 …

n f(n) 0 .0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 … 1 .1 0 0 1 0 0 0 0 1 1 0 1 0 1 0 0 0 1 1 0 … 2 .1 1 1 1 1 0 1 1 1 1 0 0 1 1 1 1 1 1 1 0 … 3 .1 1 1 0 0 1 1 0 1 1 0 1 0 0 0 1 1 1 1 1 … 4 .0 0 1 0 1 0 0 0 0 1 1 1 1 1 1 0 0 0 0 1 … 5 .1 0 0 1 0 0 0 1 0 0 0 0 0 0 1 1 1 1 0 1 … 6 .0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 … 7 .1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 … 8 .1 1 0 0 1 0 0 0 0 1 1 1 0 1 1 1 1 1 0 1 … d .0 0 1 0 1 0 0 1 0 …

n f(n) 0 .0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 … 1 .1 0 0 1 0 0 0 0 1 1 0 1 0 1 0 0 0 1 1 0 … 2 .1 1 1 1 1 0 1 1 1 1 0 0 1 1 1 1 1 1 1 0 … 3 .1 1 1 0 0 1 1 0 1 1 0 1 0 0 0 1 1 1 1 1 … 4 .0 0 1 0 1 0 0 0 0 1 1 1 1 1 1 0 0 0 0 1 … 5 .1 0 0 1 0 0 0 1 0 0 0 0 0 0 1 1 1 1 0 1 … 6 .0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 … 7 .1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 0 … 8 .1 1 0 0 1 0 0 0 0 1 1 1 0 1 1 1 1 1 0 1 … d .0 0 1 0 1 0 0 1 0 … d’ cannot exist as it must disagree at the d’th digit! d’ .1 1 0 1 0 1 1 0 1 …

Cantor’s Diagonalization Proof

Fixed-point algorithms

What are fixed points (a.k.a. fixpoints)?

f(x) = x2 (1,1) (0,0)

{𝑥|(𝑥,𝑥)∈𝐹} or {𝑥|𝐹(𝑥)=𝑥}

Babylonian method for computing . 2