A B = φ No conclusion. 2. (5) List the values of the sets below. Let A = {n 2 : n P n 5} = {1,4,9,16,25} and B = {n 4 : n P n 5} = {1,16,81,256,625}

Similar documents
MATH301 Real Analysis (2008 Fall) Tutorial Note #7. k=1 f k (x) converges pointwise to S(x) on E if and

Mathematical Induction

MIDTERM 3 CALCULUS 2. Monday, December 3, :15 PM to 6:45 PM. Name PRACTICE EXAM SOLUTIONS

Find a formula for the exponential function whose graph is given , 1 2,16 1, 6

62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 +

CS / MCS 401 Homework 3 grader solutions

10.1 Sequences. n term. We will deal a. a n or a n n. ( 1) n ( 1) n 1 2 ( 1) a =, 0 0,,,,, ln n. n an 2. n term.

SCORE. Exam 2. MA 114 Exam 2 Fall 2017

The picture in figure 1.1 helps us to see that the area represents the distance traveled. Figure 1: Area represents distance travelled

Fermat s Little Theorem. mod 13 = 0, = }{{} mod 13 = 0. = a a a }{{} mod 13 = a 12 mod 13 = 1, mod 13 = a 13 mod 13 = a.

This Lecture. Divide and Conquer. Merge Sort: Algorithm. Merge Sort Algorithm. MergeSort (Example) - 1. MergeSort (Example) - 2

10-701/ Machine Learning Mid-term Exam Solution

Different kinds of Mathematical Induction

NUMERICAL METHODS FOR SOLVING EQUATIONS

Regent College Maths Department. Further Pure 1. Proof by Induction

Continuous Functions

Math 132, Fall 2009 Exam 2: Solutions

14.2 Simplifying Expressions with Rational Exponents and Radicals

1 1 2 = show that: over variables x and y. [2 marks] Write down necessary conditions involving first and second-order partial derivatives for ( x0, y

Section 5.5. Infinite Series: The Ratio Test

Lesson 10: Limits and Continuity

MATH 304: MIDTERM EXAM SOLUTIONS

Math 155 (Lecture 3)

3.2 Properties of Division 3.3 Zeros of Polynomials 3.4 Complex and Rational Zeros of Polynomials

Modern Algebra. Previous year Questions from 2017 to Ramanasri

Introduction to Computational Biology Homework 2 Solution

Math 113 Exam 3 Practice

1. By using truth tables prove that, for all statements P and Q, the statement

Injections, Surjections, and the Pigeonhole Principle

17. Joint distributions of extreme order statistics Lehmann 5.1; Ferguson 15

2.4 - Sequences and Series

Sums, products and sequences

PRELIM PROBLEM SOLUTIONS

NAME: ALGEBRA 350 BLOCK 7. Simplifying Radicals Packet PART 1: ROOTS

Model of Computation and Runtime Analysis

De Moivre s Theorem - ALL

Objective Mathematics

CALCULUS AB SECTION I, Part A Time 60 minutes Number of questions 30 A CALCULATOR MAY NOT BE USED ON THIS PART OF THE EXAM.

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018

Direction: This test is worth 250 points. You are required to complete this test within 50 minutes.

Infinite Sequences and Series

Solutions. Number of Problems: 4. None. Use only the prepared sheets for your solutions. Additional paper is available from the supervisors.

3 Gauss map and continued fractions

sin(n) + 2 cos(2n) n 3/2 3 sin(n) 2cos(2n) n 3/2 a n =

Questions and answers, kernel part

Name of the Student:

It is often useful to approximate complicated functions using simpler ones. We consider the task of approximating a function by a polynomial.

Mathematics Review for MS Finance Students Lecture Notes

Hoggatt and King [lo] defined a complete sequence of natural numbers

MAT1026 Calculus II Basic Convergence Tests for Series

n m CHAPTER 3 RATIONAL EXPONENTS AND RADICAL FUNCTIONS 3-1 Evaluate n th Roots and Use Rational Exponents Real nth Roots of a n th Root of a

Z - Transform. It offers the techniques for digital filter design and frequency analysis of digital signals.

Seunghee Ye Ma 8: Week 5 Oct 28

TEACHER CERTIFICATION STUDY GUIDE

UNIT #8 QUADRATIC FUNCTIONS AND THEIR ALGEBRA REVIEW QUESTIONS

and each factor on the right is clearly greater than 1. which is a contradiction, so n must be prime.

Chapter 4. Fourier Series

Chapter 6 Infinite Series

Signals & Systems Chapter3

Applications in Linear Algebra and Uses of Technology

MA Lesson 26 Notes Graphs of Rational Functions (Asymptotes) Limits at infinity

Algebra of Least Squares

Test One (Answer Key)

CHAPTER 10 INFINITE SEQUENCES AND SERIES

Please do NOT write in this box. Multiple Choice. Total

International Contest-Game MATH KANGAROO Canada, Grade 11 and 12

UNIT #8 QUADRATIC FUNCTIONS AND THEIR ALGEBRA REVIEW QUESTIONS

Worksheet on Generating Functions

Quiz No. 1. ln n n. 1. Define: an infinite sequence A function whose domain is N 2. Define: a convergent sequence A sequence that has a limit

Name of the Student:

SCORE. Exam 2. MA 114 Exam 2 Fall 2016

Algorithms and Data Structures Lecture IV

Zeros of Polynomials

Department of Informatics Prof. Dr. Michael Böhlen Binzmühlestrasse Zurich Phone:

Homework 3. = k 1. Let S be a set of n elements, and let a, b, c be distinct elements of S. The number of k-subsets of S is

Section 5.1 The Basics of Counting

Matriculation number: You have 90 minutes to complete the exam of InformatikIIb. The following rules apply:

Series III. Chapter Alternating Series

Read carefully the instructions on the answer book and make sure that the particulars required are entered on each answer book.

6.003 Homework #3 Solutions

Midterm Exam #2. Please staple this cover and honor pledge atop your solutions.

Math 220B Final Exam Solutions March 18, 2002

( 1) n (4x + 1) n. n=0

Ma 530 Introduction to Power Series

Part A, for both Section 200 and Section 501

CS 171 Lecture Outline October 09, 2008

3sin A 1 2sin B. 3π x is a solution. 1. If A and B are acute positive angles satisfying the equation 3sin A 2sin B 1 and 3sin 2A 2sin 2B 0, then A 2B

CSI 2101 Discrete Structures Winter Homework Assignment #4 (100 points, weight 5%) Due: Thursday, April 5, at 1:00pm (in lecture)

M06/5/MATHL/HP2/ENG/TZ0/XX MATHEMATICS HIGHER LEVEL PAPER 2. Thursday 4 May 2006 (morning) 2 hours INSTRUCTIONS TO CANDIDATES

CATHOLIC JUNIOR COLLEGE General Certificate of Education Advanced Level Higher 2 JC2 Preliminary Examination MATHEMATICS 9740/01

Sequences. Notation. Convergence of a Sequence

JANE PROFESSOR WW Prob Lib1 Summer 2000

Kinetics of Complex Reactions

SOLUTIONS TO EXAM 3. Solution: Note that this defines two convergent geometric series with respective radii r 1 = 2/5 < 1 and r 2 = 1/5 < 1.

2.4 Sequences, Sequences of Sets

What Is Required? You need to determine the hydronium ion concentration in an aqueous solution. K w = [H 3 O + ][OH ] =

Chapter 3. Strong convergence. 3.1 Definition of almost sure convergence

ANSWERS SOLUTIONS iiii i. and 1. Thus, we have. i i i. i, A.

Algebra II Notes Unit Seven: Powers, Roots, and Radicals

COMPUTING FOURIER SERIES

Transcription:

CPSC 070 Aswer Keys Test # October 1, 014 1. (a) (5) Defie (A B) to be those elemets i set A but ot i set B. Use set membership tables to determie what elemets are cotaied i (A (B A)). Use set membership elemets are cotaied i (B (A B)). A B B-A A (B A) A B A-B B (A B) 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 0 0 There are o elemets i A (B A). Null set. There are o elemets i B (A B). Null set (b) (5) What ca you say about the sets A ad B give the iformatio below. You should use statemets like A B or A = B or B A or No coclusio or A B = φ or A = φ or B = φ. A B = A? A B = A? A B = B A? A B = A? A B = B A? B = φ or B A A B A = B A B = φ No coclusio. (5) List the values of the sets below. Let A = { : P 5} = {1,4,9,16,5} ad B = { 4 : P 5} = {1,16,81,56,65} A B = {1, 4, 16, 5, 81, 56, 65} B A = {81, 56, 65} A B = {1, 16} A B = {4, 9, 5, 81, 56, 65} A B = {4, 9, 5} 3. (10) Cosider sets A = { 1, 3, 7 }, B={ a, b } ad C={ &, ^ }. Eumerate the members of the Cartesia product: B A C : {(a,1,&), (a,1,^), (a,3,&), (a,3,^), (a,7,&), (a,7,^), (b,1,&), (b,1,^), (b,3,&), (b,3,^), (b,7,&), (b,7,^)} C B A : {(&,a,1), (&,a,3), (&,a,7), (&,b,1), (&,b,3), (&,b,7), (^,a,1), (^,a,3), (^,a,7), (^,b,1), (^,b,3), (^,b,7)} A C B : {(1,&,a), (1,&,b), (1,^,a}, (1,^,b}, (3,&,a), (3,&,b), (3,^,a), (3,^,b), (7,&,a), (7,&,b), (7,^,a), (7,^,b)}

4. (a) (10) Explai clearly why the fuctio: f(x) = e x or f(x) = x or f(x) = 10 x from the set of real umbers to the set of real umbers is ot ivertible, but if the codomai is restricted to the set of positive real umbers, the resultig fuctio is ivertible. Your reasos should be very clear ad specific. (Hit: sketch the graph.) f(x) = 10 x : Sice the fuctio s codomai is oly o the positive real umbers, attemptig to ivert this fuctio would result i somethig that is ot a fuctio from R R, sice the iverse would be udefied for egative iput. If we limit the codomai to oly positive reals, the iverted fuctio s domai is limited to ol positive reals ad it is defied o all iput withi this domai. (Adrew Zhag) f(x) = x : For a fuctio to be ivertible, it must be oe- to- oe ad oto. For all egative real umbers (say x = - ), x = 1/. x will ever be egative ad therefore does t map to egative R i the codomai. It s ot ivertible (ca t take the iverse). However, whe the codomai is oly positive real umbers, x will yield a value for all real umbers that always maps to that codomai (positive real umbers). (Mary Grace Gle) (b) (5) As suggested i part (a) above, let the codomai of f(x) be restricted to the set of positive real umbers. Let g(y) be the iverse of f(x) described above. Defie g(y). That is: f(x) = e x f(x) = x f(x) = 10 x g(y) = l(y) for domai R + ad codomai R g(y) = log(y) for domai R + ad codomai R g(y) = log10(y) for domai R + ad codomai R 5. Use mathematical iductio to show that: i = +1 1 i=0 (5) Basis Step: Let =0. Left had side: i = 0 = 1 Right had side: 0+1 1 = 1 = 1 i=0 Therefore, the equatio is true for =0. (10) Iductive Step: Assume equatio is true for =k. Prove true for =(k+1). k k+1 Assume: i = k+1 1 To prove: i = (k+1)+1 1 = (k+) 1

Proof: k+1 k i = i + k+1 = ( k+1 1) + (k+1) by the assumptio above = * ( k+1 ) 1 = (k+) 1 Therefore, the equatio is true for all k. + 1 k ar a ar =, r 1 k = 0 6. (15) Cosider the followig closed form solutios to sums: r 1 1 j = 0 + 1+... + = ( + 1)/ 3 ( + ) j= 0 k = k = 1 4 Use the formulas above to evaluate the followig sums. Show clearly how you arrived at your aswer. Specify which formula you used. (a) Use equatio above. 19 8 36 + 40 + 44 + 48 + + 516 = 4 (9 + 10 + + 19) = 4 ( i i ) = 4[(19*130/) (8*9/)] 19 9 40 + 44 + 48 + 5 + + 516 = 4 (10 + 11 + + 19) = 4 ( i i ) = 4[(19*130/) (9*10/)] 19 10 44 + 48 + 5 + 56 + + 516 = 4 (11 + 1 + + 19) = 4 ( i i ) = 4[(19*130/) (10*11/)] (b) Use equatio 1 above. 1 + 3 + 9 + 7 + 81 + 43 + + 79 = 3 0 + 3 1 + 3 +3 3 + + 3 6 => a=1, r=3, =6 = (3 7 1)/ 1 + 3 + 9 + 7 + 81 + 43 + + 187 = 3 0 + 3 1 + 3 +3 3 + + 3 7 => a=1, r=3, =7 = (3 8 1)/ 1 j j= 0 = 0 + 1 +... + = ( + 1)( + 1)/6

Expad the followig double summatio ad calculate the sum. 3 (c) (i j) = [(i 0) + + (i 1) + (i ) + (i 3)] = (4i 6) i=1 j=0 i=1 i=1 = 4 i 6 = 4(1 + ) (6) = 1 1 = 0 i=1 i=1 3 3 3 (i j) = [(i 0) + (i 1) + (i )] = (3i 3) i=1 j=0 i=1 i=1 3 3 = 3 i 3 = 3(6) 9 = 9 i=1 i=1 3 (i j) = [(i 1) + (i ) + (i 3)] = (3i 6) i=0 j=1 = 3 i 6 = 3(1 + ) 3(6) = 9 18 = 9 7. (10) Software Correctess. The goal of oe of the verificatio coditios that arise i verifyig a example piece of code is the followig, where S ad S are some strigs: ( S' + 1) Max_Depth; The gives are: I. S Max_Depth; II. S > 0; III. S = <X> o S ; Which of the above gives are ecessary ad sufficiet to prove the goal? (a) I oly, (b) II oly, (c) III oly, (d) I ad II oly, (e) I ad III oly Aswer: (a) 5 pts, (c) 5 poits, (e) 10 poits 8. (10) Specify the order of complexity of each of the followig algorithms. Select amog: O(1), O(log ), O(), O( log ) O( ), O( 3 ), O( ), O(!), Noe of the above. O() Calculatig the average of a array of itegers. O(1) Fidig the largest value i a sorted array of itegers. O(log ) Fidig a specific value i a sorted array of itegers. O( ) Sortig a array of itegers usig Bubble Sort. O( ) Pritig the values of a ( x ) array. O() Takig the sum of the diagoal of a ( x ) array. O( ) Pritig all values of a - bit register. O(!) Pritig all permutatios of the elemets of a set with values.

O( ) O() Takig the sum of the diagoal of a ( x ) array plus all values above the diagoal. Pritig the elemets of oe of the diagoals of a ( x x ) array. 9. (10) Evaluate the expressios below. Your aswer should ivolve oe or more of the followig letters: M, G, T, Z, P, E, K, Y. The first oe has bee doe for you. 9 = 51M log(64p) * 3 = log( 6 * 50 ) * ( 5 ) = log( 56 ) * 10 = 56K log(t/18k) = log( 40 / 17 ) = log( 3 ) = 3 (M / G) * (Y / K) = ( 0 / 30 ) * ( 80 / 10 ) = (1 / 10 ) * ( 70 ) = 60 = E ( 57 / 16 10 ) * 51 = ( 57 / ( 4 ) 10 ) * 9 = ( 57 / 40 ) * 9 = 6 = 64M Number of ways you ca aswer a T/F test with 48 questios. = 48 = 56T 39 = 51G log(64y) * 8 4 = log( 6 * 80 ) * ( 3 ) 4 = log( 86 ) * 1 = 86*4K = 344K Number of ways you ca aswer a T/F test with 68 questios. = 68 = 56E log(p/18k) = log( 50 / 17 ) = log( 33 ) = 33 (M / G) * (P / G) = ( 0 / 30 ) * ( 50 / 30 ) = (1 / 10 ) * ( 0 ) = 10 = K ( 77 / 3 8 ) / 51 = ( 77 / ( 5 ) 8 ) / 9 = ( 77 / 40 ) / 9 = 37 / 9 = 8 = 56M 19 = 51K log(64p) * 3 4 = log( 6 * 50 ) * ( 5 ) 4 = log( 56 ) * 0 = 56M ( 67 / 3 8 ) / 51 = ( 67 / ( 5 ) 8 ) / 9 = ( 67 / 40 ) / 9 = 7 / 9 = 18 = 56K Number of ways you ca aswer a T/F test with 8 questios. = 8 = 56M log(p/64m) = log( 50 / 6 ) = log( 4 ) = 4 (M / K) * (Z / G) = ( 0 / 10 ) * ( 70 / 30 ) = ( 10 ) * ( 40 ) = 50 = P