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

PLEASE HELP ASAP! BRAINLIEST TO BEST/RIGHT ANSWER
Which component of physical fitness is skill related
Why does the body respond to stress? Question 1 options: A. to defend itself B. to awaken the senses C. to reserve its resources D. to fully restore motor activ
Why is the percentage of food eaten a good number to use? Explain.
If volkswagen owners see themselves as being more economical and conservative than do owners of the buick regal, ________ is probably at work.
Why were merchants glad to trade in quanzhou
Can someone please help me?100% sure please In social studies class, Cole is making a scale drawing of a flag. The flag measures 24 inches high by 36 inches wid
When taking a test assessment, strive for progress, not for perfection! In this sentence, the word "strive" is being used as what part of speech? adjective a
Find the general solution of the given differential equation. y'' + 2y' + 5y = 3 sin 2t
Which characteristics describe the human genetic code? Check all that apply. contains over 3 billion base pairs can only help understand human genetics can hel