Exam in Discrete Mathematics

Similar documents
Exam in Discrete Mathematics

Reexam in Discrete Mathematics

CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati

MATH 13 SAMPLE FINAL EXAM SOLUTIONS

MATH 363: Discrete Mathematics

Practice Exam 1 CIS/CSE 607, Spring 2009

Math 230 Final Exam, Spring 2009

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

CS1800 Discrete Structures Fall 2016 Profs. Gold & Schnyder April 25, CS1800 Discrete Structures Final

7.11 A proof involving composition Variation in terminology... 88

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

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

Writing Assignment 2 Student Sample Questions

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

Exam Practice Problems

UNIVERSITY OF VICTORIA DECEMBER EXAMINATIONS MATH 122: Logic and Foundations

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination I (Spring 2008)

Review 3. Andreas Klappenecker

Math 230 Final Exam, Spring 2008

McGill University Faculty of Science. Solutions to Practice Final Examination Math 240 Discrete Structures 1. Time: 3 hours Marked out of 60

CS1800 Discrete Structures Spring 2018 February CS1800 Discrete Structures Midterm Version A

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Discrete Structures: Sample Questions, Exam 2, SOLUTIONS

CS1800 Discrete Structures Final Version A

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

University of Toronto Faculty of Arts and Science Solutions to Final Examination, April 2017 MAT246H1S - Concepts in Abstract Mathematics

CSE 321 Solutions to Practice Problems

(Practice)Exam in Linear Algebra

CSE 20 DISCRETE MATH. Fall

MATH 13 FINAL EXAM SOLUTIONS

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

Mathematics for Computer Science MATH 1206C [P.T.O] Page 1 of 5

MATH FINAL EXAM REVIEW HINTS

CS 70 Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand Midterm 1 Solutions

Name: Mathematics 1C03

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

CMSC Discrete Mathematics FINAL EXAM Tuesday, December 5, 2017, 10:30-12:30

Problem Points Score Total 100

Practice Final Solutions. 1. Consider the following algorithm. Assume that n 1. line code 1 alg(n) { 2 j = 0 3 if (n = 0) { 4 return j

Propositional Logic. What is discrete math? Tautology, equivalence, and inference. Applications

At least one of us is a knave. What are A and B?

USA Mathematical Talent Search Round 2 Solutions Year 27 Academic Year

IVA S STUDY GUIDE FOR THE DISCRETE FINAL EXAM - SELECTED SOLUTIONS. 1. Combinatorics

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.

STUDY GUIDE FOR THE WRECKONING. 1. Combinatorics. (1) How many (positive integer) divisors does 2940 have? What about 3150?

REVIEW QUESTIONS. Chapter 1: Foundations: Sets, Logic, and Algorithms

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

Review Sheet for the Final Exam of MATH Fall 2009

(c) Give a proof of or a counterexample to the following statement: (3n 2)= n(3n 1) 2

CSC 125 :: Final Exam May 3 & 5, 2010

arxiv: v2 [cs.ds] 17 Sep 2017

FINAL EXAM PRACTICE PROBLEMS CMSC 451 (Spring 2016)

MATH 215 Final. M4. For all a, b in Z, a b = b a.

Exam in Linear Algebra

Algorithm Analysis Recurrence Relation. Chung-Ang University, Jaesung Lee

MATH 114 Fall 2004 Solutions to practice problems for Final Exam

Problem 1: Suppose A, B, C and D are finite sets such that A B = C D and C = D. Prove or disprove: A = B.

Recurrence Relations and Recursion: MATH 180

Midterm 1. Your Exam Room: Name of Person Sitting on Your Left: Name of Person Sitting on Your Right: Name of Person Sitting in Front of You:

Induction and Recursion

Winter 2014 Practice Final 3/21/14 Student ID

Discussion Summary 10/16/2018

Discrete Mathematics & Mathematical Reasoning Course Overview

Discrete Structures CRN Test 3 Version 1 CMSC 2123 Spring 2011

Algorithms: Background

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

COMP1002 exam study sheet

Discrete Math Midterm 2014

CSE 20 DISCRETE MATH SPRING

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

PRINCIPLE OF MATHEMATICAL INDUCTION

Chapter 1 : The language of mathematics.

Exploring the infinite : an introduction to proof and analysis / Jennifer Brooks. Boca Raton [etc.], cop Spis treści

Math Fall Final Exam. Friday, 14 December Show all work for full credit. The problems are worth 6 points each.

Chapter Summary. Mathematical Induction Strong Induction Well-Ordering Recursive Definitions Structural Induction Recursive Algorithms

Midterm 2 for CS 170

Models of Computation. by Costas Busch, LSU

Discrete Mathematics and Probability Theory Fall 2017 Ramchandran and Rao Midterm 2 Solutions

Complexity. Complexity Theory Lecture 3. Decidability and Complexity. Complexity Classes

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

Math 564 Homework 1. Solutions.

CSCE 750 Final Exam Answer Key Wednesday December 7, 2005

*Final Exam* EECS 203 Spring 2016

CSI 4105 MIDTERM SOLUTION

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

DISCRETE STRUCTURES AMIN WITNO

ICS141: Discrete Mathematics for Computer Science I

DO FIVE OUT OF SIX ON EACH SET PROBLEM SET

CMPSCI 311: Introduction to Algorithms Second Midterm Exam

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

CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic:

Mathematical Induction

MATH 341, Section 001 FALL 2014 Introduction to the Language and Practice of Mathematics

Massachusetts Institute of Technology Handout J/18.062J: Mathematics for Computer Science May 3, 2000 Professors David Karger and Nancy Lynch

Quiz 1 Solutions. Problem 2. Asymptotics & Recurrences [20 points] (3 parts)

Contents. Counting Methods and Induction

Name: Student ID: Instructions:

*Final Exam* EECS 203 Spring 2016

CSE101: Design and Analysis of Algorithms. Ragesh Jaiswal, CSE, UCSD

Computer Science Section 3.2

Transcription:

Exam in Discrete Mathematics First Year at the Faculty of Engineering and Science and the Technical Faculty of IT and Design June 4th, 018, 9.00-1.00 This exam consists of 11 numbered pages with 14 problems. All the problems are multiple choice problems. The answers must be given on these sheets. It is allowed to use books, notes, photocopies etc. It is not allowed to use any electronic devices such as pocket calculators, mobile phones or computers. The listed percentages specify by which weight the individual problems influence the total examination. Remember to write your full name (including middle names) together with your student number below. NAME: STUDENT NUMBER: Page 1 of 11

There is only one correct answer to each question. Problem 1 (6 %) P (x, y) means x y, where the domain for x and y is the set of nonnegative integers. What are the truth values of the following statements? 1. np (0, n). x yp (x, y). y xp (x, y) Problem (8 %) Determine whether each of the following statements is true or false. 1. If A and B are sets and A B then A B. TRUE FALSE. If A and B are sets, A is uncountable, and A B then B is countable. TRUE FALSE. If A and B are sets with A = B then P(A) = P(B). TRUE FALSE 4. If A is an infinite set, then it contains a countably infinite subset. TRUE FALSE Page of 11

Problem (8 %) Determine whether each of the following theorems is true or false. Assume that a, b, c, m Z with m > 1 1. If a b (mod m) and a c (mod m) then a b + c (mod m). TRUE FALSE. If a b (mod m) then a b (mod m). TRUE FALSE. If a b (mod m) then a b (mod m). TRUE FALSE 4. If a b (mod m ) then a b (mod m). TRUE FALSE Page of 11

Problem 4 (9 %) Let f(x) = (x! + x )(x + log x), for x > 0. Answer the following true/false problems. 1. f(x) is O( x x ). f(x) is O(x! x ). f(x) is O(log x!) 4. f(x) is Ω( x x ) 5. f(x) is Ω(x! x ) 6. f(x) is Ω(log x!) 7. f(x) is Θ( x x ) 8. f(x) is Θ(x! x ) 9. f(x) is Θ(log x!) Problem 5 (8 %) 1. What is the value of 9 45 mod? 7 1 9 4 6. What is gcd( 89, 46 )? 4 89 9 4 46 6 Page 4 of 11

Problem 6 (5 %) Consider the following recursive algorithm:. procedure power(n: nonnegative integer).. if n = 0 then power(n) :=.. else power(n) := power(n 1) power(n 1). return power (n) Which one can be calculated using this recursive algorithm? n n n n n n 1 Problem 7 (6 %) We consider the following moves of a particle in the xy plane R : (x, y) (x + 1, y) (one unit right) U : (x, y) (x, y + 1) (one unit up)? In how many ways can the particle move from the origin to the point (8,5)? P(8,5) C(8,5) C(1,8) P(1,5) P(1,8) Page 5 of 11

Problem 8 (6 %) What is the binomial expansion of (x x )5? x 5 + 15x + 90x + 70 + 405 + 4 x x x 5 x 5 + 15x + 90x + 70x + 405 x 5 5x + 15x 45 + 45 4 x x x 5 x 5 15x + 90x 70x + 405 x 5 15x + 90x 70 + 405 4 x x x 5 Problem 9 (8 %) 1. What is a recurrence relation for the number of bit strings of length n that do not contain consecutive 0 s? an = a n 1 + a n for n an = 5a n 1 a n for n 4 an = a n 1 + a n + a n for n 4 an = a n 1 + a n + a n for n 4 an = a n 1 + a n for n. What are the initial conditions? a1 =, a = 4, a = 7 a1 = 1, a =, a = 5 a1 =, a = 4, a = 6 a1 =, a =, a = 7 a1 = 1, a = 4, a = 5 Page 6 of 11

Problem 10 (7 %) Let P (n) be the following statement n k=0 k = n+1 1 We want to prove by induction that P (n) is true for all n 0. 1. What is the correct basis step of the induction proof? Prove that P (1) is true Prove that P () is true Prove that P (0) is true Prove that P (n) is true, for all n 1. Which one of the following is a correct outline of the inductive step? Let i 1 and assume that P (i) is true. By the induction hypothesis i k=0 k = i+1 1. Use this to prove P (i + ). Let i 0 and assume that P (i) is true. By the induction hypothesis i k=0 k = i+1 1. Use this to prove P (i + 1). Let i = 0 and assume that P (i) is true. i k=0 k = i+1 1. Use this to prove P (i). By the induction hypothesis Let i 0 and assume that P (i) is true. By the induction hypothesis i k=0 k = i+1 1. Use this to prove P (i + ). Let i and assume that P (i) is true. By the induction hypothesis i k=0 k = i+1 1. Use this to prove P (i + 1). Page 7 of 11

Problem 11 (9 %) Let R be the relation on the set A = {1,,, 4} defined by R = {(i, j) divides (i j)}. 1. What is the matrix that represents the relation R? 1 0 1 1 1 1 1 1 0 1 0 0 0 1 0 0 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1. Answer the following true/false problems. 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1 R is reflexive R is symmetric R is antisymmetric R is transitive R is an equivalence relation. What is the matrix that represents the relation R? 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 Page 8 of 11

b f a d g c e Figure 1: The graph G, considered in Problems 1, 1 and 14. Problem 1 (8 %) In this problem we use Dijkstra s algorithm (see Figure on page 11) on the graph G in Figure 1. 1. What is the length of the shortest path from a to g (found by Dijkstra s algorithm)? 7 8 9 10 11 1 1 14. In what order are vertices added to the set S? a, c, d, e, g a, b, c, f, d, e, g a, b, c, d, e, f, g a, e, b, f, g a, c, b, d, e, f, g a, e, f, b, c, g a, e, c, d, e, g Page 9 of 11

Problem 1 (5 %) What is the weight of a minimum spanning tree of the graph G in Figure 1. 14 15 16 17 1 19 10 1 Problem 14 (7 %) In this problem G is the graph in Figure 1. considered in this problem.) (The edge weights of G are not 1. Answer the following true/false problems. G has an Euler circuit G has an Euler path G has a Hamilton circuit G has a Hamilton path. What is the length of a shortest simple circuit of G? 1 4 5 6 7 8 Page 10 of 11

Figure : Page 11 of 11