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

Question 16 of 20 : Select the best answer for the question. 16. Which of the following is true of alloys? O A. They must contain a metal. B. They can only be c
Two objects attract each other with a gravitational force of magnitude 1.02 10-8 N when separated by 19.7 cm. If the total mass of the two objects is 5.14 kg, w
Can someone help me with this question please.
A mixing tank initially contains 2000 lb of liquid water. The tank has two inlet pipes, one delivering hot water at a mass flow rate of 0.8 lb/s and the other d
Which fact best supports the city planner's opinion? Designated bike lanes have reduced traffic-related accidents by 43 percent in other cities. A nearby city's
A body from the top of a 180 m high mountain is abandoned. Disregarding air resistance and adopting g = 10m / s2, determine: 1) the time used by the body to rea
Two cars are travelling in the +x direction. A 1.8 x 103 kg BMW with speed 42 m/s hits the rear of a 1.2 x 103 kg VW with speed 25m/s. Neither driver applies th
How does the lack of generativity in middle adulthood affect the adult moving toward older adulthood?
For each of the following depreciable assets, determine the missing amount. Abbreviations for depreciation methods are SL for straight-line and DDB for double-d
can somewon help me plz