Question

Asymptotic notation O satisfies the transitive property i.e. if f(n)=O(g(n)) and g(n)=O(h(n)), then f(n)=O(h(n)). Now we...

Asymptotic notation O satisfies the transitive property i.e. if f(n)=O(g(n)) and g(n)=O(h(n)), then f(n)=O(h(n)). Now we know that 2n =O(2n-1), 2n-1 =O(2n-2?),....... , 2i=O(2i-1?),....... So using rule of transitivity, we can write 2n =O(2i-1?).We can go extending this, so that finally 2n =O(2k?), where k is constant.So we can write

2n =O(1?). Do you agree to what has been proved?If not,where is the fallacy? 6 marks (ALGORITHM ANALYSIS AND DESIGN based problem)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

We say that f(n)=O(g(n)) when there exist constants c and k such that \forall_{n > k} f(n) \leq c*g(n)

In the above analysis, somewhere down the line, we state the following wrongly,

an-b \text{ is } O(d) \text{ where a,b,d } > 0. This thing can never happen because, for any constant value of d we can always find a c such that, an-b \text{ is } > c*d for some value of n.

This disproves the above claim that 2n is O(1).

Add a comment
Know the answer?
Add Answer to:
Asymptotic notation O satisfies the transitive property i.e. if f(n)=O(g(n)) and g(n)=O(h(n)), then f(n)=O(h(n)). Now we...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Example 3: The Growth of Functionsand Asymptotic notation a) Show that x is O(x )but that...

    Example 3: The Growth of Functionsand Asymptotic notation a) Show that x is O(x )but that r is not O(x b) Give as good a big-O estimate as possible for each of the following (A formal proof is not required, but give your reasoning): log,n! 7n n +nlo 3n2 +2n+4 . (n log, (log,n") 2 42" c) Which of the functions in part b) above has the fastest growth rate? d) Show that if f(x) is Ollog, x)where b>1, and...

  • Problem 1: Give the exact and asymptotic formula for the number f(n) of letters “A” printed...

    Problem 1: Give the exact and asymptotic formula for the number f(n) of letters “A” printed by Algo- rithm PRINTAs below. Your solution must consist of the following steps: (a) First express f(n) using a summation notation 2 (b) Next, give a closed-form formula for f(n). (c) Finally, give the asymptotic value of the number of A's (using the O-notation.) Include justification for each step. Note: If you need any summation formulas for this problem, you are allowed to look...

  • 1. a) Let f(n) = 6n2 - 100n + 44 and g(n) = 0.5n3 . Prove...

    1. a) Let f(n) = 6n2 - 100n + 44 and g(n) = 0.5n3 . Prove that f(n) = O(g(n)) using the definition of Big-O notation. (You need to find constants c and n0). b) Let f(n) = 3n2 + n and g(n) = 2n2 . Use the definition of big-O notation to prove that f(n) = O(g(n)) (you need to find constants c and n0) and g(n) = O(f(n)) (you need to find constants c and n0). Conclude that...

  • please answer these three questions thank you! (e) Given that f(n) € O(n) and g(n) e...

    please answer these three questions thank you! (e) Given that f(n) € O(n) and g(n) e O(n log n), please formally prove that f(n) + g(n) € O(nº). [4 (6) We know that kn is in O(n) for any constant k. Is the following claim correct? Briefly explain. I kn = ŻO(n) = O(n?) 13 o f is a function that satisfies the following: • f is in O(n), . f is in 2(1), • f is neither in e(1)...

  • Prove that if f (n) = O (g (n)) and g (n) = Ohm (h (n)),...

    Prove that if f (n) = O (g (n)) and g (n) = Ohm (h (n)), it is not necessarily true that f(n) = O (h (n)). You may assume that low degree (i.e., low-exponent) polynomials do not dominate higher degree polynomials, while higher degree polynomials dominate lower ones. For example, n^3 notequalto O (n^2), but n^2 = O (n^3). Prove that if f (n) = O (g (n)) and g (n) = Ohm (h (n)), it is not necessarily...

  • help please. the goal state is provided where f(n)= g(n) + h(n) g(n) = actual dsitance...

    help please. the goal state is provided where f(n)= g(n) + h(n) g(n) = actual dsitance from n to the start state, and h(n0 = number of tiles out of place Problem 4: (A* Algorithm with Heuristic Search) (25 Points) Apply A* Algorithm to the following 8 Puzzle game: The start state, first moves, and goal state for this 8 puzzle game is shown below Start 12 3 3 1614 g(n) = 0 2 8 3 2 83 g(n) =...

  • Please provide solution/methods so I can understand how this work. Given a algorithm with f(n) 5n2...

    Please provide solution/methods so I can understand how this work. Given a algorithm with f(n) 5n2 + 4n + 14 in the worst case, f(n) 3n2 + 17 log, n + 1in the average case, and f(n) in 17 the best case. Which of the following would be the tightest possible asymptotic descriptions of the algorithm? The following statement that would be tightest possible asymptotic description of the algorithm above A) O(n) B) o (n) C) (n?) D) On Log...

  • Express the given function h as a composition of two functions f and g so that h(x)=(f o g)(x)

    Express the given function h as a composition of two functions f and g so that h(x)=(f o g)(x) h(x) = 1/2x-2 Choose the correct pair of functions. Find the donain of the function. What is the domain of g? (Type your answer in interval notation.)

  • Which of the following series diverges? n +2 2n -1 n1 n+3 O A. 2 B. O C. 1,3 O D. 1, 2 OE. 2, 3 F. None O G. O H. 1,2,3 Find the sum of the series A. B. OC. 1/10 D. 1/2 3/2 3/4 OE. 1 F. 5/12...

    Which of the following series diverges? n +2 2n -1 n1 n+3 O A. 2 B. O C. 1,3 O D. 1, 2 OE. 2, 3 F. None O G. O H. 1,2,3 Find the sum of the series A. B. OC. 1/10 D. 1/2 3/2 3/4 OE. 1 F. 5/12 OG. 1/4 H. Divergent Which of the following series converges? oo 2n 1.Σ n 1 23n nE1 (n+ 1)3 n+ 1 3. O A. None O B. 2 O...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT