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

calculate [tex] \frac{24}{6}+ \frac{4}{3}+ \frac{12}{2}+ \frac{8}{12} [/tex]
Writing which explains rather than describes, narrates a story, or argues a point is called expository writing. a. True b. False
In 1905, which European nation controlled Morocco? a. France b. Great Britain c. Germany d. Italy
At the beginning of "Young Goodman Brown," Brown's wife says, "Pray tarry with me this night, dear husband, of all nights in the year" (1). This statement is an
1.5%+(.5P) : P=# of people in squad
What was an outcome of the North Atlantic Treaty? A. The United States extended its policy on isolationism. B. The Soviet Union blockaded Berlin. C. North Korea
determine the kinetic energy of a 1000-kg roller coaster car that is moving with a speed of 20.0m/s.
Here are some sentences about playing a band.For each question, complete the second sentence so that it means the same as the first. Use no more than three word
hich of the following had the greatest influence on how Germany was treated after World War I? President Wilson’s desire to form the League of Nations Germany’s
Here are some sentences about playing a band.For each question, complete the second sentence so that it means the same as the first. Use no more than three word