1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Verizon [17]
3 years ago
14

. Consider the following brute-force algorithm for evaluating a polynomial. ALGORITHM Brute Force Polynomial Evaluation(P[0..n],

x) //Computes the value of polynomial P at a given point x //by the "highest to lowest term" brute-force algorithm //Input: An array P[0..n] of the coefficients of a polynomial of degree n, // stored from the lowest to the highest and a number x //Output: The value of the polynomial at the point x p ← 0.0 for in downto 0 do power ← 1 for j ← 1 to i do power ← power ∗ x p ← p + P[i] ∗ power return p Find the total number of multiplications and the total number of additions made by this algorithm.
Computers and Technology
1 answer:
podryga [215]3 years ago
7 0

Answer:

The answer of the the following question are 0(n^2)

The total number of multiplication is 2

And the total number of addition is 1

Explanation:

Let the size of the input is the degree of the polynomial = "n"

Than the number of the multiplications depends on "n"

Let the number of multiplication = M(n)

Let the number of addition = A(n)

1): Solution-

M(n) = n∑_{i=0}          i∑_{j=1}          2

= 2     n∑_{i=0}           i∑_{j=1}  

= 2      n∑_{i=0}      i-1+1

= 2      n∑_{i=0}     i

= 2  *  n*(n+1)/2    =   n*(n+1)

= n^2 + n ∈ 0(n^2)

2): Solution for addition-

A(n) = n∑_{i=0}          i∑_{j=1}          1

= by solving this from the same way it leads to

= n^2 + n   and n^2 + n ∈ 0(n^2)

You might be interested in
Write in general about ergonomic injuries and also mention the symptoms that computer users exhibit when they experience these s
Tema [17]

Ergonomic injuries are caused by ergonomic risk factors like awkward or sustained postures, strain, contact pressure, exposure to vibration and exposure to heat or cold. Over time, a combination of these factors may lead to injury, pain, and disability. Ergonomic injuries which can directly or indirectly be related to work environment can affect the nerves, tissues, muscles, tendons, and joints. For instance, on average, an employee may spend about 6-8 hours on the computer.

<span>The symptoms that computer users may exhibit when they experience these musculoskeletal disorders include pain in the shoulders, upper or lower back and the neck. Others include discomfort when making certain movements, loss of coordination, general feeling of cramping, weakness of muscle function, and a sharp burning stabbing  pain in the wrists.</span>
3 0
3 years ago
Read 2 more answers
Give a detailed easy to understand explanation what the kerneltrapmode is. WILL AWARD BRAINLIEST!
pochemuha

Answer:

Kernel Trap Mode is one of the Windows 10 errors that often show Blue Screen of Death (BSoD) and cause PC crashes and freezes. Windows 10 error message “UNEXPECTED KERNEL MODE TRAP” is a bug check indicating the CPU generated a trap and the kernel failed to catch the trap.

Explanation:

4 0
3 years ago
The worst "review platform" (e.g. TripAdvisor, Zomato, Yelp) that can't be trusted?
BigorU [14]

I think it would be Zomato since its not popular and probably have bad and fake reviews.

4 0
3 years ago
To connect several computers together, one generally needs to be running a(n) ____ operating system
Anastaziya [24]

Answer:

Local Area Network

Explanation:

In the Information technology it is called Local Area Network.

5 0
3 years ago
Help me. its due tonight
Novosadov [1.4K]
d- enjoy
b- national service !
5 0
3 years ago
Other questions:
  • Ann wants to create a bookmark. She should
    9·2 answers
  • If a simple pipelined processor is super-pipelined by a factor of 3 (the ALU takes 3 cycles instead of one for the smallest oper
    15·1 answer
  • Variables set equal to patterns are said to be:_______.
    7·1 answer
  • What are 5 ways we can reduce our energy?
    5·1 answer
  • Which clauses in the Software Engineering Code of Ethics are upheld by a whistleblower (check all that apply). "Respect confiden
    15·1 answer
  • What type of device is the keyboard?<br><br> Output<br> Input<br> Monitoring<br> Software
    7·2 answers
  • Seeing her Daughter graduate from college is most likely a short term goal for a person of which of these ages ? A) 24 years old
    10·1 answer
  • What is the internal working of the computer called?
    9·1 answer
  • Write two eaxmple of operating system​
    14·2 answers
  • What is the answer <br> Answer 1<br> Answer 2<br> Answer 3<br> Answer 4
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!