Preview

Discrete Math Quiz Essay Example

Good Essays
Open Document
Open Document
1666 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Discrete Math Quiz Essay Example
Quiz 6
1. Determine whether f is a function from R to N if f (x) = x No, negative integers are possible. 2. Determine whether g is a function from R to N if g(x) = x Yes. 3. Give the value of g(−2.2) −2.2
2 2

= −22 = 4

The next two should have been g(x) instead of f (x). 4. Is g(x) one-to-one? No. g(2.2) = g(2.4) 5. Is g(x) onto? Yes.

1

Homework 6
2. Determine whether each of these function is O(x2 ). To do this type of problem, try to alter each function so that it is either in the Cx2 form or is clearly less than a function in Cx2 form while only making it larger. a) f (x) = 17x + 11. Yes. 17x + 11 ≤ 17x + x = 18x ≤ 18x2 when x > 11. Here, C = 18 and k = 11. b) f (x) = x2 + 1000. Yes. x2 + 1000 ≤ x2 + x2 = 2x2 when x2 > 1000 or x > sqrt1000. C = 2, k = √ 1000

c) f (x) = x log x x2 isx ∗ x. x is larger than logx for all x. So, x log x ≤ x ∗ x = x2 C = 1, k = 0

2

d) f (x) = x4 /2 No. x4 is not comparable to x2 . There is no C such that x4 /2 ≤ Cx2 for large x. e) f (x) = 2x No. 2x grows really fast for large x. It is certainly not comparable to x2 .

f) f (x) = x ∗ x Yes.

x ∗ x ≤ 2x2

3

6. Show that (x3 + 2x)/(2x + 1) is O(x2 ) If we can alter this function so that it is in the Cx2 form while only making it larger, we show that it is O(x2 ) a) Remove the 1 from the denominator. Making the denominator of a fraction smaller will make the fraction larger. b) Change the 2x to 2x3 . Now we have (x3 + 2x)/2x c) So divide through by 2x to get f rac32x2 . The witnesses are C = 3/2 and k = 1.

4

8. Find the least integer n such that f (x) is O(xn ) for each of these functions. a) f (x) = 2x2 +x3 log x logx grows at a lesser rate than x, but it still grows without bound. So, this is not O(x3 ). The answer is 4. b) f (x) = 3 x5 +(log x)4 5 c) f (x) = (x4 +x2 + 1)/(x4 +1) The x4 terms are dominant here, as x increases this becomes closer to x4 x4 , or 1. So, the answer is 0. d) f (x) = (x3 + 5logx)/(x4 +1) At large x, this is close to

You May Also Find These Documents Helpful

  • Satisfactory Essays

    PT1420 U8 Homework

    • 431 Words
    • 4 Pages

    6. a loop that never hits a max value or that never turns true is infinite…

    • 431 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Samuel Aggor CSC 1100 3/3/16 Assignment 5 Problem 1 a. Output: 3.94 b. Output: 6.67 c. Output: 15.00 d. Output: -35.00 e. Output: 0 Problem 2 a. Output: 62 b. Output: 20160 c. Output: 20 213837312 d. Output: 1 Problem 3 a. Func1 has two parameters. Func1 is an integer function. b. Func2 has three parameters. Func2 is a double function.…

    • 188 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    b. Include the function written in Exercise 2a in a working program. Make sure your function…

    • 720 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Mat 540 Week 4

    • 4465 Words
    • 18 Pages

    SECTION – C Note: (i) Answer 9 questions (ii) Answer any 8 questions from the first 14 questions. Question No. 45 is Compulsory. (iii) Each question carries Five marks 9 × 5 = 45 31. Use Venn diagrams to verify De Morgan’s law for set difference A \ ^ B + C h = ^ A \ Bh , ^ A \ C h . 32. A function f : 6- 7, 6h ( R Find (i) 2 f (- 4) + 3 f (2) x 2 + 2x + 1 - 7 # x 1 - 5 f (x) = * x + 5 -5 # x # 2. x-1 2 1x1 6 (ii) f (- 7) - f (- 3) (iii) 4 f (- 3) + 2 f (4) . f (- 6) - 3 f…

    • 4465 Words
    • 18 Pages
    Powerful Essays
  • Good Essays

    Calculus Exam

    • 1347 Words
    • 6 Pages

    | (, ∞)Question 12 Sketch the graph and show all local extrema and inflection points. f(x) = >…

    • 1347 Words
    • 6 Pages
    Good Essays
  • Better Essays

    BIOL 3101 Assignment 1

    • 1014 Words
    • 5 Pages

    8. C) Not only had to have B>C but the difference between B and C had to be greater than any other alternative.…

    • 1014 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    XIII. Finding Zeros from Standard Form (by Factoring) – Find the zeros of the following functions by factoring first…

    • 269 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week Five

    • 268 Words
    • 2 Pages

    1. f (x) = 2x+5 2. g (x) = x2 -3 3. H (x) 7-x3…

    • 268 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    1. Answer Questions #1 & #2 on the exam paper and Questions #3 to #6 in the exam booklet(s). Show computations.…

    • 1903 Words
    • 8 Pages
    Satisfactory Essays
  • Powerful Essays

    You are expected to use a calculator where appropriate.  You are reminded of the need for good English and clear presentation in your answers.  Question 5 should be answered in continuous prose.…

    • 1552 Words
    • 14 Pages
    Powerful Essays
  • Good Essays

    math 239 assignment 1

    • 1831 Words
    • 8 Pages

    It is fine for students to prove (b) first and apply it to get (a).…

    • 1831 Words
    • 8 Pages
    Good Essays
  • Satisfactory Essays

    hiihihi

    • 10962 Words
    • 41 Pages

    a. Sketch the graph of a function that is the sum, difference, product or quotient of two functions, given their…

    • 10962 Words
    • 41 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Derivative and Graph

    • 1884 Words
    • 8 Pages

    11. A. 0.203 B. 0.422 C. 0.003 D. 0.020 E. 1.041 12. The graph of a twice-differentiable function is shown below. Which of the following is true?…

    • 1884 Words
    • 8 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Math Problems

    • 527 Words
    • 3 Pages

    2. Describe the transformations on the following graph of f (x)  log( x) . State the…

    • 527 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Mrs Thompson

    • 273 Words
    • 2 Pages

    I NEED HELP ON THE FOLLOWING QUESTIONS, I JUST DON'T SEEM TO BE ABLE TO GET MY HEAD ROUND IT!…

    • 273 Words
    • 2 Pages
    Satisfactory Essays