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 the ability to revisit relationships goals can be helpful to a teenager who has suddenly lost interest in social relationships
If you have the following goals, which one is not being met?a. Innovationb. Collaborationc. Sustainabilityd. Revolution
Explain how storge, or affection, is exemplified in the Sermon on the Mount, particularly Matt. 5:43-48.
What is meant by tuition per unit fees in MS programs? How many units do I need to take to finish MS? a) Bold portion b) Italic portion c) Underlined portion d)
Thermometers produce readings. If the resolution of a thermometer is 10°F, what is the uncertainty associated with using it? a) 10°F b) 5°F c) 20°F d) Cannot be
The connection between skin color and evolutionary fitness.
8,1 rotated 180 degress clockwise
In 1965, a newspaper carried a story about a high school student who reported getting 9207 heads and 8743 tails in 17,950 coin tosses. What is the probability o
The following passage describes the effects of a gene mutation, which is a permanent change in a gene. Read the passage and then follow the instructions below.
57) Describe the picture in about ten sentences. ​