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 word describes all of the processes that happen in a living thing?
differenciate by first principles f(x) = 4x²-4x-3
really dont know what to do ..
How do you write 7.208 in expanded notation form
what are the starting ingredients of photosynthesis?
What word describes all of the processes that happen in a living thing?
what are the starting ingredients of photosynthesis?
Please fill the blanks with the right answers A. Nucleus B. Mitochondria C. Endoplasmic reticulum D. Cell wall E. Cell membrane F. Ribosomes G. Lysosome H.
Which of the following is incapable of reproducing outside a host cell? -alga -mold - moss -virus
Why are different constellations of stars seen during different seasons?