Question: These are Computer Science questions not Math. So please answer them according to the computer science. Answer all of them and complete step by step

These are Computer Science questions not Math. So please answer them according to the computer science. Answer all of them and complete step by step
Please answer them complete. show all the steps .
1. Find the following summation:
372+392+412+.............+1572.
Ans:
2. Given a polynomial with the following formula
Q(x)=b2x2+b5x5+b8x8+ cdots +b322x372,
how many additions do we need if we use the brute force method to calculate it?
Ans:
3. We are given a polynomial with the following structure
P(x)=(a0+a1x)(b0+b1x)(c0+c1x),
where a0,a1,b0,b1,c0, and c1 are arbitrarily given coefficients. What is the minimum
number of multiplications do you need to find the value of P(x) for any value of x?
Ans:
4. Find the following summation:
(5+6)+(10+11)+(15+16)+.......+(500+501)
Ans:
We are given a polynomial with the following structure
5.P(x)=(a0+a1x)4(b0+b1x)4(c0+c1x)4,
where a0,a1,b0,b1,c0, and c1 are arbitrarily given coefficients. What is the minimum
number of multiplications do you need to find the value of P(x) for any value of x?
Ans:
6. Given a 4 element array, say {x1,x2,x3,x4}, with x45x{x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11}x6x1, how many more
comparisons do you need to find the 2nd largest element for the worst case?
Ans:
7. To evaluate a monomial x45 for a given value x, what is the minimum number of
multiplications that you need?
Ans:
8. Given 11 elements: {x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11}, it is known that x6 is
not in place. What is the maximum number of inversions in this array?
Ans:
9. Given a 100- element array, we want to find an element that is neither the maximum nor minimum. What is the minimum number of comparisons you
need to solve this problem for the worst case?
Ans:

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!