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

Find the measure of each angle indicated. A) 95° C) 26° B) 92° D) 20°
5. According to the law of reflection, the is equal to the angle of incidence and a line drawn perpendicular to the reflecting surface. O reflected ray angle of
The function f(x) = - (x + 5) * (x + 1) shown What is the range of the function ? 10 all real numbers loss than or equal to all roal numbers less than or equal
Nitrogen,oxygen and argon are obtained from liquid air by fractional distillation.State the physical property that makes this possible​
Find the measure of each angle indicated. A) 87° C) 130° B) 25° D) 105°
which statement best describes the polarity of the molecule Sil4 a. it is polar, because the bond polarities add together in a tetrahedral molecule b. It is no
Identify the missing terms in the given arithmetic sequence. 5, ?, ?, ?, -9.
write one difference between the following. A.Focus and epicenterB.Magma and lava​
write one difference between the following. A.Focus and epicenterB.Magma and lava​
Summarize the mRNA translation process in eukaryotes.