subject

Consider the following description of two algorithms, A and B, each with the same Big-O. In A's actual growth function there is a larger constant being added than in B's. In B's actual growth function the dominant factor has a larger constant multiplier than in A's. Assume that the functions are alike in every other way. When looking at actual run-times (rather than Big-Oh), is one likely to be better than the other in all circumstances? If so, which? Explain. A. Neither is better than the other in any circumstance, because the two algorithms have the same Big-Oh and will always have exactly the same performance.
B. B is the better algorithm because the larger constant addend in A means that A will always have more overhead than B.
C. A is the better algorithm because the larger constant multiplier in B means that A will always be more efficient than B.
D. None of these is correct.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Scientists have changed the model of the atom as they have gathered new evidence. one of the atomic models is shown below. what experimental evidence led to the development of this atomic model from the one before it? a few of the positive particles aimed at a gold foil seemed to bounce back. the colors of light emitted from heated atoms had very specific energies. experiments with water vapor showed that elements combine in specific proportions. cathode rays were bent in the same way whenever a magnet was brought near them.
Answers: 2
question
Computers and Technology, 23.06.2019 21:30
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
You know the right answer?
Consider the following description of two algorithms, A and B, each with the same Big-O. In A's actu...
Questions
question
Mathematics, 31.10.2021 03:30
question
Mathematics, 31.10.2021 03:30
question
Mathematics, 31.10.2021 03:30
question
Arts, 31.10.2021 03:30
Questions on the website: 13722367