Parents : Recursion
Siblings :
| Date and time note was created | $= dv.current().file.ctime |
| Date and time note was modified | $= dv.current().file.mtime |
As humans we’re more accommodated to solve smaller problems instead of bigger ones. So our natural tendency is to break the bigger problem given to us into units of smaller problems which are easier to solve.
Recursion makes use of this concept and breaks a bigger problem into several solvable problems until a already solved problem is found (Base Case In Recursion).
Example: To solve 2^10 , human mind will break the problem into smaller problems like:
2^10= 2 x 2^9 ⇒ 2^9= 2 x 2^8 ⇒ 2^8= 2 x 2^7 ⇒ 2^7= 2 x 2^6 ⇒ 2^6= 2 x 2^5 and so on.. until the person knows the answer to one of the values.
Great Example to illustrate Recursion
To illustrate the flow of the recursion using Power function.
References::