Tutorial 3 Q&A. En la pregunta 7 de la sección 2.2 el cual dice: 7. Prove the domination laws in Table 1 by showing that: a)a U = U b)a =

Similar documents
3. Determine whether f is a function from the set of all bit strings to the set of integers if

Let A(x) be x is an element of A, and B(x) be x is an element of B.

Discrete Mathematics Lecture 4. Harper Langston New York University

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

Functions 2/1/2017. Exercises. Exercises. Exercises. and the following mathematical appetizer is about. Functions. Functions

CSC Discrete Math I, Spring Sets

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

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

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

2.1 Sets 2.2 Set Operations

MATHEMATICS 191, FALL 2004 MATHEMATICAL PROBABILITY Outline #1 (Countability and Uncountability)

MITOCW watch?v=4dj1oguwtem

Slides for Faculty Oxford University Press All rights reserved.

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

CPSC 121 Some Sample Questions for the Final Exam Tuesday, April 15, 2014, 8:30AM

A set with only one member is called a SINGLETON. A set with no members is called the EMPTY SET or 2 N

EDAA40 At home exercises 1

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

r=1 The Binomial Theorem. 4 MA095/98G Revision

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

CSE 20 DISCRETE MATH. Fall

DISCRETE MATHEMATICS

Summary of Course Coverage

Functions. Def. Let A and B be sets. A function f from A to B is an assignment of exactly one element of B to each element of A.

Section 1.7 Sequences, Summations Cardinality of Infinite Sets

What is a Computer Algorithm?

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

MITOCW watch?v=kz7jjltq9r4

The Size of the Cantor Set

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.

CSE 20 DISCRETE MATH. Winter

Section 2.4 Sequences and Summations

Introduction to Sets and Logic (MATH 1190)

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

1 Probability Review. CS 124 Section #8 Hashing, Skip Lists 3/20/17. Expectation (weighted average): the expectation of a random quantity X is:

2.1 Symbols and Terminology

CSE 215: Foundations of Computer Science Recitation Exercises Set #9 Stony Brook University. Name: ID#: Section #: Score: / 4

Lecture 25 : Counting DRAFT

The Language of Sets and Functions

The set consisting of all natural numbers that are in A and are in B is the set f1; 3; 5g;

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

Integers and Mathematical Induction

Problem One: A Quick Algebra Review

Open and Closed Sets

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

MAT 090 Brian Killough s Instructor Notes Strayer University

Sets. Sets. Subset, universe. Specifying sets, membership. Examples: Specifying a set using a predicate. Examples

MATH 22 MORE ABOUT FUNCTIONS. Lecture M: 10/14/2003. Form follows function. Louis Henri Sullivan

Lecture 6,

Cardinality of Sets. Washington University Math Circle 10/30/2016

2. Functions, sets, countability and uncountability. Let A, B be sets (often, in this module, subsets of R).

ECS 20 Lecture 9 Fall Oct 2013 Phil Rogaway

BMO Round 1 Problem 6 Solutions

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

Introduction to Homotopy Type Theory

THREE LECTURES ON BASIC TOPOLOGY. 1. Basic notions.

Power Set of a set and Relations

1. Draw the state graphs for the finite automata which accept sets of strings composed of zeros and ones which:

CS100: DISCRETE STRUCTURES

Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element.

1.1 - Introduction to Sets

Math 110 FOUNDATIONS OF THE REAL NUMBER SYSTEM FOR ELEMENTARY AND MIDDLE SCHOOL TEACHERS

Ling/CSE 472: Introduction to Computational Linguistics. 4/6/15: Morphology & FST 2

CSC 501 Semantics of Programming Languages

1KOd17RMoURxjn2 CSE 20 DISCRETE MATH Fall

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

CHAPTER 8. Copyright Cengage Learning. All rights reserved.

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

Functions and Sequences Rosen, Secs. 2.3, 2.4

Cantor s Diagonal Argument for Different Levels of Infinity

CS1800 Discrete Structures Final Version A

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

2.3: FUNCTIONS. abs( x)

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

MATH 139 W12 Review 1 Checklist 1. Exam Checklist. 1. Introduction to Predicates and Quantified Statements (chapters ).

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

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

CS 341 Homework 1 Basic Techniques

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

What is Set? Set Theory. Notation. Venn Diagram

Math Introduction to Advanced Mathematics

Experimental Methods I

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

Lecture 1. 1 Notation

.Math 0450 Honors intro to analysis Spring, 2009 Notes #4 corrected (as of Monday evening, 1/12) some changes on page 6, as in .

Discrete Mathematics Exam File Fall Exam #1

CS321. Introduction to Numerical Methods

Discrete Mathematics

1 Elementary number theory

A.1 Numbers, Sets and Arithmetic

Basics of Computational Geometry

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

MA651 Topology. Lecture 4. Topological spaces 2

9 abcd = dcba b + 90c = c + 10b b = 10c.

Computer Architecture and System Software Lecture 02: Overview of Computer Systems & Start of Chapter 2

X 1 = = 1 2, X 2 = = 1 4.

BOOLEAN ALGEBRA AND CIRCUITS

CS314: FORMAL LANGUAGES AND AUTOMATA THEORY L. NADA ALZABEN. Lecture 1: Introduction

1.3 Functions and Equivalence Relations 1.4 Languages

IT 201 Digital System Design Module II Notes

Transcription:

Tutorial 3 Q&A Question 1: 1) Can the range be considered a subset of a function's codomain? No, not always. There are cases that it is like that, but there are many that not. 2) Why is it that if the symmetrical difference between sets A and B equals A, B has to be an empty set? Why doesn't the (intersection of A and B) = ø work? Because then B would be a subset of A, and the empty set is a subset of every set. 3) What is the difference between (A x B) x C and A x B x C if A, B, C are all sets? (For the benefit of the class, the professor already answered this one.) Let A = {1,2}, B = {3,4}, C = {5,6}. Then, A x B = {(1,3),(1,4),(2,3),(2,4)}. Therefore (A x B) x C = {((1,2),5),((1,2),6),((1,3),5), ((1,3),6)...}. While A x B x C = {(1,3,5),(1,3,6),(1,4,5),(1,4,6),(2,3,5),(2,3,6),(2,4,5),(2,4,6)...} 4) What is the difference between a finite sequence and a tuple? Since they are both ordered collections of items, what is the fundamental difference? There's no difference. Strictly speaking in terms of set theory, a tuple is a sequence in itself. En la pregunta 7 de la sección 2.2 el cual dice: 7. Prove the domination laws in Table 1 by showing that: a)a U = U b)a = La a) la entendí, pero en la b) cuando empezé a resolverlo me quedé en esta parte: A = {x x A x } = { x x A F} Por qué en la contestación del libro sale AND en vez de OR? The reason is because the definition of intersection is that A B={x ( x A ) ( x B ) } En la pregunta nueve de la misma sección 2.2 el cual dice: 9. Prove the complement laws in Table 1 by showing that a) A A(Complements of A) = U. b) A A =. Mi contestación fue: A A(Complements of A) = {x x A x A(Complement)} = {x x A x (No Pertenece) A} = {x x A (x A) } = {x T (T) } = {x T } = {x U} Entonces la contestación del libro fue: A A={x x A x A}=U

Eso viene siendo equivalente a lo que yo tengo? It is. Question 3 1. The first one is in exercise 30 (pg 169). I am not pretty sure if I am understanding this notation since it is completely new to me, for example when we try to solve (C), what this notation suggests is that I add up 1/j but replacing j with the first element of the set S and then keep like that or is my approach incorrect? Your approach is correct. In the summation notation you must add iteratively. The number of iterations performed is equal to the number of the elements in the set given or in the range (for example when it says i=1 below the sum and n up of the sum symbol means n iterations). If there s some function that depends of the value of the iteration, then it must be replaced by that value. 2. The second one is the 25 of this same section (pg 169). Even though I have found some formulas I have been having some problems with most of the exercises, for example (e), is there some type of technique that could be use to find this formulas or is it just intuitive? Some basic notions to obtain a closed formula for a sequence: 1. Does the same value appear many times? 2. Are some terms obtained from previous terms by adding a fixed amount? 3. Are some terms obtained from previous terms by multiplying by a fixed amount? 4. Are some terms obtained from previous terms by other means? 5. Are there any cycle among the terms? I suggest that the problem you mention may fall within the last question, as it follows some kind of cycle. Question 4: For each of these lists of integers, provide a simple formula or rule that generates the terms of an integer sequence that begins with the given list. Assuming that your formula or rule is correct, determine the next three terms of the sequence. e) 0, 2, 8, 26, 80, 242, 728, 2186, 6560, 19682,... I found that from n=2 it substracts [(Xn-1 - Xn-2) *3 + Xn-1] = 4(Xn-1)-3(Xn-2) but I cant find the sequence for the n=0 and n=2 numbers. Then this sequence is like the Fibonacci sequence, where the first two terms are specifically stated.

Question 5 How can I make proof like the problems below?: 1. Let A be a set. Show that ø X A = A X ø= ø Since ordered pairs are built using two elements, when we try to create the each ordered pair we notice that we have an element from A, but not one from the empty set. Since we can't make an ordered pair with one element, we obtain as a result a set that contains no ordered pairs, or an empty set. 2. The defining property of an ordered pair is that two ordered pairs are equal if and only if their first elements are equal and their second elements are equal. Surprisingly, instead of taking the ordered pair as a primitive concept, we can consruct ordered pairs using basic notions from set theory. Show that if we define the ordered pair (a,b) to be {{a}, {a,b}}, then (a,b)=(c,d) if and onlyif a=c and b=d. [Hint: First show that {{a}, {a,b}}={{c}, {c,d}} if and only if a=c and b=d]. Taking the given hint, we know that in set theory, the order of the set elements doesn't matters. Therefore, a set A is only equal to a set B if and only if they have the same elements. So, let's begin with the subsets of A = {{a}, {a,b}} and B = {{c}, {c,d}}. For A and B to be equal, we know that {a} = {c} so that a must be c for those two sets. In the same way, {a,b} = {c,d}. Question 6 61. Data are transmitted over a particular Ethernet network in blocks of 1500 octets (blocks of 8 bits). How many blocks are required to transmit the following amounts of data over this Ethernet network? (Note that a byte is a synonym for an octet, a kilobyte is 1000 bytes, and a megabyte is 1,000,000 bytes.) a) 150 kilobytes of data b) 384 kilobytes of data c) 1.544 megabytes of data d) 45.3 megabytes of data In this exercise you must use the fact that 1,500 octets are actually 1,500 bytes. Therefore, the first one, is 150 KB = 150,000 bytes, and this quantity divided by 1,500 yields 100 blocks of 8 bit or 100 blocks of bytes. The rest are done the same way. 20. Assume that the population of the world in 2010 was 6.9 billion and is growing at the rate of 1.1% a year. b) Find an explicit formula for the population of the

world n years after 2010. c) What will the population of the world be in 2030? b. P(n) = 6,900,000,000 + (0.011*n*6,900,000,000) c. P(20) = 8,418,000,000 Question 7: Exercise 46 from section 2.3 states "Show that floor function(x+.5) is the closest integer to the number x, except when x is midway between two integers, when it is the larger of these two integers." I understand that since it is a floor function in the end x will always be the largest integer that is less than or equal to x. In this case if x ends with a.5 of higher it will end up becoming x+1 in the end because of the 0.5 in the floor function. But how can I show or prove this? Let x = n + e, where n is an integer part, and e is a fractional part. Then, performing a proof by cases: Case 1: e = 0 floor(x+0.5) = floor(n + 0.5) = n Case 2: 0 < e < 1 floor (x+0.5) = floor(n + 0.5 + e) where 0 < e < 1. Therefore, we have two additional cases: Case 3: e < 0.5 If e < 0.5, then we can see that e + 0.5 < 1. Let's call m = e + 0.5 < 1, therefore m < 1. floor(x + 0.5) = floor ( n + m ) where n is an integer number and 0 < m < 1. Therefore, floor (n+m) = n. Case 4: 0.5 < e < 1 If e > 0.5 and e < 1, we can see that e + 0.5 > 1. Therefore, we know that floor(e + 0.5) = 1. Therefore, we know: floor(x + 0.5) = floor (n + e + 0.5), where e+0.5 > 1. It is safe to round up e+0.5 = 1, since for the purposes of the floor function, it will act the same. So, floor (n + 1) = n + 1. Question 8: In example 2 of page 172 I don't get how you can give a room in a fully booked hotel by moving everyone to the next room. How can you create an empty room at the end of the sequence? How is that different than just giving the next room to the new guest? Remember that a sequence may be infinite. There's no way to move guests to a new room except

if we accept the facts that the rooms are infinite. Question 9: 28. Show that the function f(x)= ex from the set of real numbers to the set of real numbers is not invertible, but if the codomain is restricted to the set of positive real numbers, the resulting function is invertible.. BY assuming contradiction I e^x it is invertible, so f=ex and if 1/f or f-1(x) x<0 then it does not exist therefore it's not invertible...is it true? It is true. Question 10: 13. Show that the hexadecimal expansion of a positive integer can be obtained from its binary expansion by grouping together blocks of four binary digits, adding initial zeros if necessary, and translating each block off our binary digits into a single hexadecimal digit. Assume a decimal positive integer number whose binary expansion is: a n a n 1...a 2 a 1 a 0 We take into account that hexadecimal numbers go from 0 to F, where F = 15 (F has a value of 15 in decimal number). Also, we know that with n bits, we can represent 2 n different numbers. Therefore, with 4 bits, we can represents 16 different numbers, which are exactly the same quantity of numbers represented in hexadecimal system. Therefore, we can take the first four binary numbers, a 3 a 2 a 1 a 0 and this will be a number that is less or equal to F (or 15). Therefore, we can always group block of 4 binary numbers and exchange them for an hexadecimal number. Notice that if there are not more than 4 bits, this doesn't affect, with 1 bit set to 1 we are saying also 1 hexadecimal; with the combination 0011 we are saying 3 hexadecimal, and so on. Question 11: My questions for the topics of the next tutorials are; How the operations of sets apply to sets that is not finite or that is define by predicate logic statements? Especially those that contain a universal quantifier. There's no difference. Most probably the set operations will be performed over a subset of that infinite subset.

Question 12 On slide 16 of the power point the element 0 is described as always being part of a set. however i did not understood the reason for it. Because a is always false, S, for every set S. The empty set is always part of any other set because it s empty. It s a property. Question 13 Buenas, estoy tratando de hacer el ejercicio 6 de la seccion 2.2 el cual dice: Prove the identity laws: a) A union (null set) = A b)a interseccion U=A En la parte a) hice lo siguiente: Let x exista en A union (null set) x existe en A Luego de eso me quede trancado. En la parte b) hice lo siguiente: Let x exista en A Therefore x existe en A implica que x existe en U No estoy muy seguro de este ultimo paso A = A Let a A. a is always false. The union acts like an or, then, therefore (a A ) ( a ) (a A ) or the set A. A U niv Let a A. a U niv is always true. The intersection acts like an and, then, therefore (a A ) (a U niv ) (a A ) or the set A. Question 14 1.The Cartesian product A B is A B = {(1, a), (1, b), (1, c), (2, a), (2, b), (2, c)} The Cartesian product B A is B A = {(a, 1), (a, 2), (b, 1), (b, 2), (c, 1), (c, 2)} A x B is not equal to B x A Porqué no son iguales si la definición de un SET dice que es una colección de elementos sin orden y la única diferencia que veo es el orden de los elementos? Because the result of a cartesian product is a set contianing ordered pairs. Ordered pairs are tuples of 2 elements in which the order of the occurrence of its elements matters.

Question 15 On question 34, section 2.3. Notice that it asks the following: 34. If "f" and "f o g" are one-to-one, does it follow that "g" is one-to-one? Justify your answer. The justifying part is naturally the difficult area of the exercise. What approach would you follow? I can start by assuming that f: B --> C and g: A --> B, and thus f o g: A --> C. We need to prove that if "f" is one-to-one, then "g" is one-to-one. Or do I suppose that "g" is not one-to-one and go from there (like a sort of proof by contradiction)? It would be of great help if we do this exercise on the tutorials. As always, thank you. Suppose that g(x) is not surjective, that is, there is a real number in g that is not mapped onto (e.g. if g(x) = x, -3 would be a counterexample). Then f(g(x)) would not be defined everywhere because g(x) has an incomplete domain so f(g(x)) would not be surjective over all real numbers (another way to phrase it -- the cardinality of the range of f(g(x)) is less than or equal to the cardinality of the domain of g(x), so there must be some f(g(x)) value that is not mapped onto). This contradicts our claim so g(x) must be surjective. (reference: http://www.algebra.com/algebra/homework/functions/functions.faq.question.504558.html)