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

Name the ray rhat angle PQR and angle SQR share
Find a rational number halfway in between 1/2 and 4/9
The Aztecs constructed chinampas _____.
What were the major port cities in the 13 colonies
How to simplify 2431-187
What is the diameter of the geosphere?
how is density related to buoyancy
All of the following are accurate statements about history EXCEPT a. it is happening all the time b. it is our collective memory c. it is relevant to your li
How many protons and neutrons are in the nucleus of isotope with mass of 68.926 amu?
How many spark plugs does a diesel truck have