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 is the solution of this linear system? 4x+y=-1 y= -2x+3
Select the equation for the line crossing the point (6,-4) and parallel to the line 3y=2x+6. Pleaseeeeee help me.
Read the passage from When Birds Get Flu by John DiConsiglio. It was September 2004. An 11-year-old girl had fallen ill after playing with some sick chickens.
So Im not good at this. Its asking if the underline sentence is correct or needs correcting
Rewriting your notes before an exam is an example of a. Too much work to complete when studying c. A waste of time b. A study skill d. All of these Please selec
which phrase provides the best definition on sedimentary rocks​
Even though public schools are not supposed to teach that one social class is better than others, many school rules emphasize the values of the dominant white c
use a number line to tell how many hundreds,tens,ones you use when you count from $776to $900
What was the main purpose of the House of Wisdom
2x^2+7x+4 do not have answer ?​