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

write 2784 in expanded notation as the sum of multiplication expressions using multiples of 10
why was New England an ideal place to build factories?
jake can carry 6 1/4 pounds of wood in from the barn. His father can carry 1 5/7 times as much as jake. can how many pounds can jakes father carry than he can?
in what ways did interchangeable parts and mass production affect industry in the United States?
What were the causes of the crusades?
Felix is going to paint a wall. The wall is 23 feet long by 8 feet high. A gallon of paint costs $11 and covers 320 square feet of area. If the wall requires tw
the third term in the expansion of the binomial (2x+Y2)5
The small child does whatever his father was done. A. has done B. did C. does D. had done E. No correction required
how is a mixture such as a plate of pasta with sauce and meatballs different from a mixture such as air? ( the subject is science)
A fact is an idea that can be verified. True False