CIS 375 Intro to Discrete Mathematics Exam 3 (Section M001: Green) 6 December Points Possible

Similar documents
CIS 375 Intro to Discrete Mathematics Exam 3 (Section M004: Blue) 6 December Points Possible

CIS 375 Intro to Discrete Mathematics Exam 2 (Section M001: Yellow) 10 November Points Possible

CIS 375 Intro to Discrete Mathematics Exam 1 (Section M004: Blue) 6 October Points Possible

Discrete Structures: Sample Questions, Exam 2, SOLUTIONS

Selected Solutions to Even Problems, Part 3

Practice Exam 1 CIS/CSE 607, Spring 2009

(a) We need to prove that is reflexive, symmetric and transitive. 2b + a = 3a + 3b (2a + b) = 3a + 3b 3k = 3(a + b k)

Equivalence relations

REVIEW FOR THIRD 3200 MIDTERM

Mathematical Structures Combinations and Permutations

Functions and cardinality (solutions) sections A and F TA: Clive Newstead 6 th May 2014

MATH 433 Applied Algebra Lecture 14: Functions. Relations.

MODEL ANSWERS TO THE SEVENTH HOMEWORK. (b) We proved in homework six, question 2 (c) that. But we also proved homework six, question 2 (a) that

Section 7.2: One-to-One, Onto and Inverse Functions

Generating Permutations and Combinations

Do not open this exam until you are told to begin. You will have 75 minutes for the exam.

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007)

Math Fall 2014 Final Exam Solutions

Midterm Exam. There are 6 problems. Your 5 best answers count. Please pay attention to the presentation of your work! Best 5

Selected problems from past exams

CSE 311: Foundations of Computing I Autumn 2014 Practice Final: Section X. Closed book, closed notes, no cell phones, no calculators.

MATH 3300 Test 1. Name: Student Id:

MAD 3105 PRACTICE TEST 2 SOLUTIONS

Section 4.4 Functions. CS 130 Discrete Structures

UNIVERSITY OF VICTORIA DECEMBER EXAMINATIONS MATH 122: Logic and Foundations

CMSC 250 Spring 2016: Final Exam Review Questions Key

Exam in Discrete Mathematics

Practice Second Midterm Exam I

RED. Name: Instructor: Pace Nielsen Math 290 Section 1: Winter 2014 Final Exam

CSE 20 DISCRETE MATH WINTER

Math 300: Final Exam Practice Solutions

Fall 2014 CMSC250/250H Midterm II

2MA105 Algebraic Structures I

Principles of Real Analysis I Fall I. The Real Number System

Diskrete Mathematik Solution 6

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

Functions. Definition 1 Let A and B be sets. A relation between A and B is any subset of A B.

MATH FINAL EXAM REVIEW HINTS

MATH 215 Sets (S) Definition 1 A set is a collection of objects. The objects in a set X are called elements of X.

Section 0. Sets and Relations

(1) Which of the following are propositions? If it is a proposition, determine its truth value: A propositional function, but not a proposition.

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

Discussion Summary 10/16/2018

1.2 Functions What is a Function? 1.2. FUNCTIONS 11

Course 311: Michaelmas Term 2005 Part III: Topics in Commutative Algebra

Exercises for Unit VI (Infinite constructions in set theory)

Is g one-to-one? Is g onto? Why? Solution: g is not one-to-one, since for c A, g(b) = g(c) = c. g is not onto, since a / g(a).

Name: Student ID: Instructions:

Functions Functions and Modeling A UTeach/TNT Course

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland

Exam Practice Problems

Introduction to Proofs

Review Problems for Midterm Exam II MTH 299 Spring n(n + 1) 2. = 1. So assume there is some k 1 for which

Mobius Inversion on Partially Ordered Sets

S15 MA 274: Exam 3 Study Questions

NOTE: You have 2 hours, please plan your time. Problems are not ordered by difficulty.

MATH 13 SAMPLE FINAL EXAM SOLUTIONS

Week 4-5: Generating Permutations and Combinations

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations

Homework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4

POL502: Foundations. Kosuke Imai Department of Politics, Princeton University. October 10, 2005

RYERSON UNIVERSITY DEPARTMENT OF MATHEMATICS

Order Relations and Functions

Prof. Ila Varma HW 8 Solutions MATH 109. A B, h(i) := g(i n) if i > n. h : Z + f((i + 1)/2) if i is odd, g(i/2) if i is even.

6 Permutations Very little of this section comes from PJE.

Name: Mathematics 1C03

Exam 2. Is g one-to-one? Is g onto? Why? Solution: g is not one-to-one, since for c A, g(b) = g(c) = c. g is not onto, since a / g(a).

Notes on ordinals and cardinals

Math 230 Final Exam, Spring 2009

Practice Midterm 1 UCLA: Math 61, Winter 2018

Carleton University. Final Examination Fall DURATION: 2 HOURS No. of students: 223

0 Sets and Induction. Sets

1. (12 points) Give a table-driven parse table for the following grammar: 1) X ax 2) X P 3) P DT 4) T P 5) T ε 7) D 1

Theory of Computation

MATH 580, exam II SOLUTIONS

2.1 Sets. Definition 1 A set is an unordered collection of objects. Important sets: N, Z, Z +, Q, R.

0 Logical Background. 0.1 Sets

MATH 2200 Final Review

CSC Discrete Math I, Spring Relations

Notation Index. gcd(a, b) (greatest common divisor) NT-16

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

CSCE 222 Discrete Structures for Computing. Dr. Hyunyoung Lee

Cardinality and ordinal numbers

Review 3. Andreas Klappenecker

CSCE 222 Discrete Structures for Computing. Review for the Final. Hyunyoung Lee

Cartesian Products and Relations

Mathematical Induction Assignments

Chapter 1. Sets and Numbers

3. R = = on Z. R, S, A, T.

Math 10850, fall 2017, University of Notre Dame

Rings and Fields Theorems

Lecture Notes Math 371: Algebra (Fall 2006) by Nathanael Leedom Ackerman

CMSC Discrete Mathematics SOLUTIONS TO FIRST MIDTERM EXAM October 18, 2005 posted Nov 2, 2005


RELATIONS AND FUNCTIONS

MATH 220 (all sections) Homework #12 not to be turned in posted Friday, November 24, 2017

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

Relations, Functions, Binary Relations (Chapter 1, Sections 1.2, 1.3)

Infinite-Dimensional Triangularization

Transcription:

Name: CIS 375 Intro to Discrete Mathematics Exam 3 (Section M001: Green) 6 December 2016 Question Points Possible Points Received 1 12 2 14 3 14 4 12 5 16 6 16 7 16 Total 100 Instructions: 1. This exam is a closed-book, closed-notes exam. 2. Legibility counts! Make sure I can read (and find!) your answers. If you need more room for an answer than that given, use the back side of the pages. Be sure to leave a note indicating where the answer is. 3. This test should have 9 pages (including this cover sheet). Let me know now if your copy does not have the correct number of pages. 4. The last page of this exam lists some relevant definitions. Also recall these sets: Z: set of all integers R: set of all real numbers Z + = {z Z : z > 0} Z = {z Z : z < 0} N= {z Z : z 0} A reminder from algebra: For all real (or integer) numbers a, b, m, m a+b = m a m b.

1. (12 points) Consider the poset (A, ) given by the following Hasse diagram: T Q U J P W L N K (a) List all of the maximal elements of the poset. S (b) List all of the minimal elements of the poset. (c) List all of the elements that are comparable with J. (d) List all of the elements that are not comparable with N.

2. (14 points) (a) Consider the function h : {1, 2, 3, 4} {1, 2, 3, 4, 5, 6, 7, 8} defined by: { 2x + 1 x < 3 h(x) = 2x x 3 i. What is the image of h? ii. Is h an invertible function? iii. Every function can be viewed as a set of pairs: give h as a set of pairs. iv. Give a pair that, if added to h, would yield a function that is not 1-1. v. What is the domain of the function created in part (iv)? (b) Give a function f : N N Z that is onto and not 1-1. (c) Give a function g : Z Z + that is 1-1 and not onto.

3. (14 points) (a) Give a relation on the set {a, b, c, d, e} that is a partial order and not an equivalence relation. (b) How many elements (i.e., pairs) are in the smallest partial order R such that {(1, 6), (3, 5), (3, 6), (5, 7)} R? (c) How many maximal elements does the poset (2 {0,2,4,6,8}, ) have? (d) How many elements (i.e., pairs) are in the smallest partial order on the set {1, 2, 3, 4, 5}? (e) How many elements (i.e., pairs) are in the largest partial order on the set {1, 2, 3, 4, 5, 6}? (f) Give a Hasse diagram for a five-element poset that has exactly three maximal elements and four minimal elements.

4. (12 points) Consider the set A of strings, which is defined recursively as follows: The string 32 is in A. The string 012 is in A. If u is a string in A, then the string 3u3u is also in A. If s and w are strings in A, then the string 2sw2 is also in A. Thus, all elements of A are strings constructed from just four symbols: 0, 1, 2, and 3. (a) List five elements of A. (b) Suppose you were to use structural induction to prove that some property P holds of all elements of the set A. i. For the basis step, what would you need to show true? ii. For the inductive step, what conditional(s) would you need to show true? A Reminder for Inductive Proofs Follow the boilerplate for inductive proofs, including: Always label the basis, inductive step, and inductive hypothesis. Explicitly state when/where you use the inductive hypothesis. Include appropriate wrap-up statements. For this exam, you do not need to include the claim or the Proof: by induction preface.

5. (16 points) Use mathematical induction to prove the following claim: For every integer m 0, m (3i 2 + 5i) = m(m + 1)(m + 3). i=1

6. (16 points) Use mathematical induction to prove the following claim: For all integers q 1, 6 q 5q 1 is divisible by 25.

7. (16 points) Consider the set T Z Z defined recursively as follows: The pair (0, 7) is in T. The pair (1, 32) is in T. If the pairs (m, k) and (m + 1, j) are both in T, then the pair (m + 2, 9j 20k) is in T. Use structural induction to prove the following claim: For all (a, b) T, b = 4 5 a + 3 4 a.

A Collection of Some Relevant Definitions Subsets Let A and B be sets. A is a subset of B provided that the following condition holds: for all objects x, if x A then x B. Relations Let R X X be a relation. R is reflexive provided that the following condition holds: for all x X, (x, x) R. R is irreflexive provided that the following condition holds: for all x X, (x, x) R. R is symmetric provided that the following condition holds: for all x, y X, if (x, y) R then (y, x) R. R is antisymmetric provided that the following condition holds: for all x, y X, if (x, y) R and (y, x) R, then x = y. R is transitive provided that the following condition holds: for all x, y, z X, if (x, y) R and (y, z) R, then (x, z) R. R is an equivalence relation provided that R is reflexive, symmetric, and transitive. R is a partial order provided that R is reflexive, antisymmetric, and transitive. Functions Let f : X Y be a function. f is an injection (or 1-1) provided that the following condition holds: for all x 1, x 2 X, if f(x 1 ) = f(x 2 ) then x 1 = x 2. f is a surjection (or onto) provided that the following condition holds: for all y Y, there is a w X such that f(w) = y. f is a bijection provided that f is both 1-1 and onto.