ashleyortego9468 ashleyortego9468
  • 17-01-2020
  • Computers and Technology
contestada

What is the order of adding 10.0 to each element in a one-dimensional array of N real numbers?
Note: The log is base 2.[1] O(1)[2] O(logN)[3] O(N)[4] O(N logN)[5] O(N*N)

Respuesta :

SyntaxError
SyntaxError SyntaxError
  • 17-01-2020

Answer:

O(n)

Explanation:

it's an array of N numbers so worst case scenario is N time

Answer Link

Otras preguntas

What is the correct formula for density?
use matlab to plot the function T=6lnt-7e^(0.2t) over the interval 1 < t < 3 ( 1 than 3). put a title on the plot and properly label the axes. The variabl
How does supply and demand affect consumers? A. It controls how much we pay for goods and services, B. It controls how we pay for goods and services. C. It cont
i need help to talk about Aristotle's environment such as how he grew up, his religion, where he worked, etc​
The staff educator from the hospital’s respiratory unit is providing a public educational event. The educator is talking about health promotion activities for p
The mean life of a particular brand of light bulb is 1200 hours and the standard deviation is 50 hours. We can conclude that at least 75% of this brand of bulbs
How did the use of Agriculture change how people lived and interacted with each other? Write 3 sentences
Solve for x. 5(х – 10) = 30 — 15х х = 1 x = 4 x = 5 x = 8
if f(x) = 7+ 4x and g(x) = 1/2, what is the value of (f/g)(5) 11/2 27/10 160 270
I really don't get this can someone please help me?