Question: Q 1 : a ) Develop an efficient algorithm to find a list of prime numbers from 1 0 0 to ( 2 Marks )

Q1: a) Develop an efficient algorithm to find a list of prime numbers from 100 to (2 Marks) b) Differentiate between Polynomial-time and exponential-time algorithms. Give (2 Marks) an example of one problem each for these two running times. c) Using Horner's rule, evaluate the polynomial p(x)=2x^(5)-5x^(4)-3x^(2)+15 at x=2. Analyse the computation time required for polynomial evaluation using (2 Marks) Horner's rule against the Brute force method. d) State and explain the theorems for computing the bounds O,\Omega and \Theta . Apply (4 Marks) these theorem to find the O-notation, \Omega-notation and \Theta-notation for the function: f(n)=10n^(3)+18n^(2)+1 e) Explain binary exponentiation for computing the value 5^(19). Write the right-to- left binary ex

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!