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

How many kilometers are equivalent to 770 meters? 0.077 km 0.77 km 7.7 km 77 km HELLPPPPPPP!!!!
Which ordered pair is a solution to this equation? 2x + 6y = 10
Living things are capable of responding to different types of
Consequences can be both positive and negative A True B False
In descriptions of the superficial anatomy of the human body, the neck is the __________ region.
Alan is 14 years old. he is twice as old as his brother James. how old is James?
What is the wavelength (angstroms) of a photon that has an energy of 5.69 × 10-17 j?
Which phrase describes an abiotic factor? A. fish in a pond B. bacteria on the skin C. air temperature D. number of species on a seashore
Point M is the midpoint of LN. LM = 7x - 12 and MN = 3x + 16. Find LM.
Need help really hard and confusing