JeaivonShaluvn JeaivonShaluvn
  • 17-05-2017
  • Computers and Technology
contestada

Which repetition approach is less efficient a loop or a recursive function why?

Respuesta :

weber229 weber229
  • 17-05-2017
In general loops are less efficient because they have to go through data one at a time no matter what. Recursion allows you to split the data into smaller pieces each time the function is called. In general terms the efficiency of loops is x and the efficiency of recursion is log(x)
Answer Link

Otras preguntas

what causes the amount of salt in the water of an estuary to change ?
what's bigger 6 2/3 or 6 12/15
Select all that apply. What two Allied military actions began to take the punch out of Germany's power? their conquest of North Africa the Japanese attack on Pe
In the Declaration of Independence, Thomas Jefferson argued for certain “unalienable rights” that were endowed by the Creator. Mark the statement if it refers t
How did the miners help settle the west? They provided gold for everyone, including those they traveled with. As they mined, they stayed and settled towns. They
The narrator's family in "The Circuit" demonstrates the importance of A. being wealthy. B. education. C. unity and teamwork. D. traveling.
give a common noun for thursday
describe the steps involved in inhalation and exhalation
write the number in order starting with the smallest 1.06, 1.031,1.306,1.36
Help me please Three copies of a triangle were rotated and positioned as shown. Which statement about the figure is always true? A. Angle 2 and angle 3 form a r