|
INTERVIEW QUESTIONS
ALGORITHM
DETAILS
Question: 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.
|
|
|
Category |
Algorithm Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8457 users |
Added on |
9/14/2014 |
Views |
68621 |
Rate it! |
|
|
Question:
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. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Give the difference of format between an algorithm and a sub algorithm?
|
View Answer
|
|
Define and state the importance of sub algorithm in computation and its relation ship with main algorithm?
|
View Answer
|
|
How to find median of a BST?
|
View Answer
|
|
How do you apply Binary Search on 2D array supposed you have 2D array with integers sorted both horizontally and vertically. If you find any occurrence of the value you are looking for you return true else false. What is the complexity?
For example the 2D array could look like the following
1 4 5 6 2 5 7 9
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Algorithm Interview Questions & Answers - Exam Mode /
Learning Mode
|