Programming Algorithms Question:
Download Job Interview Questions and Answers PDF
What is the general algorithm model for any recursive procedure?
Answer:
Prologue: -Saves the parameters, local variables and returns addresses.
Body: -If the best criterion has been reached: then perform the final computation and go to step3, otherwise, perform the partial computation and go to step1.
Restore the most recently saved parameters, local variables and return address. Go to this return addresses.
Body: -If the best criterion has been reached: then perform the final computation and go to step3, otherwise, perform the partial computation and go to step1.
Restore the most recently saved parameters, local variables and return address. Go to this return addresses.
Download Programming Algorithms Interview Questions And Answers
PDF
Previous Question | Next Question |
Give the difference of format between an algorithm and a sub algorithm? | Explain the function of KWIC_Create? |