Nathan Brunelle Department of Computer Science University of Virginia www.cs.virginia.edu/~njb2b/theory Theory of Computation CS3102 – Spring 2014 A tale.

Slides:



Advertisements
Similar presentations
Sorting algorithms Sieve of Eratosthenes
Advertisements

Binary Relations Binary Relations on Real Numbers.
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.
Theory of Computation CS3102 – Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Nathan Brunelle Department of Computer.
Theory of Computation CS3102 – Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Nathan Brunelle Department of Computer.
CSE 105 Theory of Computation Alexander Tsiatas Spring 2012 Theory of Computation Lecture Slides by Alexander Tsiatas is licensed under a Creative Commons.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Theory of Computation CS3102 – Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Nathan Brunelle Department of Computer.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Basic Properties of Relations
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Algebraic Structures: Group Theory II
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
CS2210(22C:19) Discrete Structures Relations Spring 2015 Sukumar Ghosh.
Discrete Structures Chapter 5 Relations Nurul Amelina Nasharuddin Multimedia Department.
CS 310 – Fall 2006 Pacific University Theoretical Computer Science CS 310 Chadd Williams Office Mon 3:00 – 4:00 PM 202 Strain.
CS 310 – Fall 2006 Pacific University Theoretical Computer Science CS 310 Chadd Williams Office Mon 10:30-11:30 am 202 Strain.
David Evans cs302: Theory of Computation University of Virginia Computer Science Lecture 2: Modeling Computers.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Week 8 - Wednesday.  What did we talk about last time?  Cardinality  Countability  Relations.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Introduction to CS Theory Lecture 1 – Introduction Piotr Faliszewski
Chapter 2 Working with Real Numbers. 2-1 Basic Assumptions.
Theory of Computation CS3102 – Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Nathan Brunelle Department of Computer.
1–2: Properties of Real Numbers. Counting (Natural) Numbers {1, 2, 3, 4, 5, …}
Proving Angle Relationships
Discrete Math for CS Binary Relation: A binary relation between sets A and B is a subset of the Cartesian Product A x B. If A = B we say that the relation.
CSC-2259 Discrete Structures
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
Properties and Mental Computation p. 80. Math talk What are some math properties that we use? Why do you think we have them? Do you ever use them?
Chapter 2 Section 5. Objective  Students will make a connection between reasoning in Algebra and reasoning in Geometry.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Lecture 4.3: Closures and Equivalence Relations CS 250, Discrete Structures, Fall 2013 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
CS 103 Discrete Structures Lecture 19 Relations. Chapter 9.
The Euler-Fermat Theorem Our text calls this “Euler’s Formula”, but I prefer the above name, giving due credit to Fermat. Obvious question: Can Fermat’s.
1–1: Number Sets. Counting (Natural) Numbers: {1, 2, 3, 4, 5, …}
1-4: Properties of Equality and Algebraic Proofs Unit 1: Functions English Casbarro.
Section 7.5 Equivalence Relations Longin Jan Latecki Temple University, Philadelphia
Chapter Relations and Their Properties
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
Objective: To prove and apply theorems about angles Proving Angles Congruent (2-6)
8.5 Equivalence Relations
Given an equation, you can … * Add the same value (or equivalent values) to both sides, If a = b, then a + 7 = b + 7 * Subtract the same value (or equivalent.
MAT 2720 Discrete Mathematics Section 3.3 Relations
§R1∪R2§R1∪R2 §R 1 ∩R 2 R1-R2R1-R2 2.4 Operations on Relations.
Cryptography Lecture 14 Arpita Patra © Arpita Patra.
2.5 Reasoning and Algebra. Addition Property If A = B then A + C = B + C.
Commutative Property of Addition Commutative Property of Multiplication For all real numbers a and b a + b = b + a For all real numbers a and b a b = b.
Geometry October 17, : Proving Angles Congruent.
Algebraic Proofs. 1. Transitive property of equality 2. Symmetric property of equality 3. Reflexive property of equality 4. Substitution 5. Addition property.
CS154 Formal Languages and Computability
2.5 and 2.6 Properties of Equality and Congruence
Lecture 4.3: Closures and Equivalence Relations
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 9 Relations Slides are adopted from.
Real Numbers, Algebra, and Problem Solving
CS2210 Discrete Structures Relations
Relations: representation and closures
Geometric Proofs Standards 2i & 2j.
Solving Inequalities by Adding or Subtracting
2.6 Proving Statements about Angles
Discrete Math (2) Haiming Chen Associate Professor, PhD
Lecture 5 Number Theory & Proof Methods
Homework Pg107(2,6,10,12-15,25-28,30-32,49).
2.5 Proving Statements about Segments
Presentation transcript:

Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale of computers, math, problem solving, life, love and tragic death

Binary Relations Mondays 7pm-10pm Olsson 005 Course reddit New TA: Saba Eskandarian Office Hours: Tues/Thurs 3:30pm-4:30pm Thornton Stacks

Binary Relations

Nate Tom Jill S pork Fish shrimp T beef Nate Tom Jill pork Fish shrimp beef A

Binary Relations- Properties

Binary Relations 1.Can a relation be reflexive and symmetric but not transitive? Yes! Consider the relation “Has eaten a meal with” 2.Can a relation be reflexive and transitive but not symmetric? Yes! Consider the relation “Is the boss of” 3.Can a relation be symmetric and transitive but not reflexive? Tricky…. Reflexive Symmetric Transitive

Binary Relations

Binary Relations- Closure Add in those terms which give the relation a certain property Consider R={(1, 2), (1,1), (3, 2), (2, 4)} Reflexive closure: r(R) {(1, 2), (1,1), (3, 2), (2, 4), (2, 2), (3, 3), (4, 4)} Symmetric closure:s(R) {(1, 2), (1,1), (3, 2), (2, 4), (2, 1), (2, 3), (4, 2)} Transitive closure:t(R) {(1, 2), (1,1), (3, 2), (2, 4), (1,4), (3,4)}

Binary Relations- Closure

Example Equivalence Relation

Equivalence Classes

Problem: Prove that there are an infinity of primes. Extra Credit: Find a short, induction-free proof.

Problem: True or false: there arbitrary long blocks of consecutive composite integers. Extra Credit: find a short, induction-free proof.