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

After exercising, Miguel's heartrate was 25 beats in 6 seconds. What is Miguel's heartrate per minute?
Write an equation of the line when m=5 and passes through the point (2,8).​
6th grade ela help me please :))
which is the correct graph for the equation?
what is 6 1/2 ÷ 3/4 lolololol
What is the slope-intercept form of the equation of the line containing the point (-5, 1) and having the slope 7?
The image shows a series of figures. 2 rows of numbers. The top row shows Arabic numbers and the bottom row shows Roman numerals: 1, 2, 3, 4, 5, 6, 7, 8, 9, 0.
70% of the 30 sandcastles at Donatello Beach have moats. How many of the sandcastles have moats?
**Need answer ASAP** What was the significance of ft.pickens during the early parts of the civil war?
Viruses have many things in common with living organisms, but they are NOT actually considered living. Why? A They do not reproduce B They are not made of one