Question: please please please answer all the questions correctly: no need for explanation, just answer all of them directly. Given a polynomial as follows, P (

please please please answer all the questions correctly: no need for explanation, just answer all of them directly.
Given a polynomial as follows,
P(x)=a0+a1x3+a2x6+a3x9+a4x12,
to evaluate it for arbitrary coefficients {a0,a1,a2,a3,a4} and some given value x, the minimum number of multiplications that one needs is:
(a)5
(b)6
(c)7
(d)8 or more
When we use the linear search on many different input arrays, sometimes we have unordered arrays and sometimes we have ordered arrays. Which of the following statements about the efficiency is correct?
(a) We will get better efficiency whenever we process the ondered arrays.
(b) We will get better efficiency whenever we process the unordered arrays.
(c) We will get the same efficiency no matter we process the ordered or unordered
arrays.
Which of the following growth functions has the highest order of growth?
(a)n
(b)logn
(c)nlogn
(d)n2
If a given array does not contain any adjacent inversion, then it does not contain any global inversion.
(a) true (b) false
Is it possible that one can find the solution for the problem: Finding the minimum of an array with n elements with an algorithm that is in (n)?
(a) yes
(b) no
Is it possible that one can find the solution for the problem: Finding both the minimum and the maximum of an array with n elements using an algorithm that
is in (n)?
(a) yes
(b) no
Given an n-element array with n>1, it is possible to arrange these n elements, such that all of them are NOT in place. (Assume that these elements are distinct.)
(a) true
(b) false
Which of the following growth functions has the lowest order of growth?
(a)n3+3n2+52
(b)2n
(c)nlogn
(d)n+logn
Which of the following growth functions has the lowest order of growth?
(a)logn
(b)n2+5n+8n+2
(c)n0.000001
(d)n2logn
Which of the following functions increases faster in the long run?
(a)1.0000001n
(b)n98765430
Let n=101010. Which of the following expressions is larger?
(a)log10n
(b)n0.000001
Given an n-element array with n>1, it is possible to arrange these n elements,
such that only two of the elements are in place. (Assume that these elements are
distinct.)
(a) true
(b) false

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!