Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Definitions of Big 0, Q and are given below: Olg(n))={f(n) there exists a positive constant c and no such that ostin)scg(n), Vn, nn) (gin))={f(n)

image text in transcribed

3. Definitions of Big 0, Q and are given below: Olg(n))={f(n) there exists a positive constant c and no such that ostin)scg(n), Vn, nn) (gin))={f(n) there exists a positive constant c and no such that Osce(n)sfin), Vn, nano) Olen))={fin) there exists positive constants C1,C, and no such that Osc g(n)sfin)scg(n). Vn, nano) Using the definitions prove that a.) n +4n+4 = O(n) b.) n'+5n = e(n) C) n(n) 3/4 4. An algorithm takes 0.7 msec to run on an input set of size 100. How long will th algorithm take to run if the input size is 500 and the algorithm is (1) cubic, (ii) quadr. (ii) linear? 5. An algorithm takes 0.8 msec to run on an input set of size 1000. How much input we can process in 0.4 msec if the algorithm is (1) cubic, (ii) quadratic, and (1) linear? 3. Definitions of Big 0, Q and are given below: Olg(n))={f(n) there exists a positive constant c and no such that ostin)scg(n), Vn, nn) (gin))={f(n) there exists a positive constant c and no such that Osce(n)sfin), Vn, nano) Olen))={fin) there exists positive constants C1,C, and no such that Osc g(n)sfin)scg(n). Vn, nano) Using the definitions prove that a.) n +4n+4 = O(n) b.) n'+5n = e(n) C) n(n) 3/4 4. An algorithm takes 0.7 msec to run on an input set of size 100. How long will th algorithm take to run if the input size is 500 and the algorithm is (1) cubic, (ii) quadr. (ii) linear? 5. An algorithm takes 0.8 msec to run on an input set of size 1000. How much input we can process in 0.4 msec if the algorithm is (1) cubic, (ii) quadratic, and (1) linear

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions