Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Answer the following and show how to do 7. The worst-case complexity of Euclid's algorithm for ged(a,b) occurs when a and bare: a) Relatively prime
Answer the following and show how to do
7. The worst-case complexity of Euclid's algorithm for ged(a,b) occurs when a and bare: a) Relatively prime b) Different by one c) Consecutive prime numbers d) Consecutive Exponential numbers e) Consecutive Fibonacci numbers 8. The smallest worst-case complexity for computing the maximum and minimum elements in a list of even size n is: a) n-1 b) 3n/2-2 c) 2n - 2 d) 5n/2-1 e) ? 9. Horner's Rule for the polynomial 2x4 + 6x-44r +x+ 5 is based on which parenthesizing a) (2x + 6x')-(44x + x)) + 5 b) (2x + 6x-44 x + 1x+ 5 c) (2x + 6x) - 44x) + x) + 5 d) x(2x + 6x?)+ x(44x + 1).+ 5 e) none of the above 10. If Euclid's GCD algorithm is initially called with a = 100019 and b = 100 after one iteration a) a = 100, b = 100019 b) a = 100019, b=19 c) a = 100,b=19 d) a = 99919, b = 19 e) b 19, a-100 11. An algorithm with worst-case complexity W (n) is said to be polynomial-time if a) W(n) is a polynomial b) Win) e On) for some constant k c) W(n) E 22() for some constant k d) Win) (n) for some constant k e) Win) has sub-exponential order 12. An algorithm with worst-case complexity Win) is to be exponential if a) W(n) is a super-polynomial b) Wn) E 012") c) W(n) E S2(2") d) Win) e Ole) e) W(n) e S2(a) and (n) E O(b) for real numbers a and b, 1 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started