Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

Carry out an interview and review its success.

Answered: 1 week ago