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

Which aspect of the March on Washington sent a powerful statement to the United States and the world?
How many moles are in 74 g KI?
In this excerpt from "Colonialism in the United States" by Henry c. Lodge, which word is closest in meaning to the word indelibly?
The taking out of material that may offend others is called _____. a. media b. censorship c. containment d. the credibility gap
What method would you use to divide organisms into groups, or classes, based on specific characteristics?
Self-confidence is the most important quality for A. building new relationships. B. communication. C. good listening skills. D. consideration.
Friends always get along and shouldn't have disagreements. Please select the best answer from the choices provided. T F
what is maiz and why was it important to people?
Bob and Mark talk about their families Bob says he has three kids the product of their ages is 72 he gives another play the sum of the ages of his children Mark
(08.03)Jasper is using the following data samples to make a claim about the house values in his neighborhood: House Value A $150,000 B $175,000 C $200,000 D $1