File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11# Matlab Dynamic Programming
22
33Dynamic Programming has been demostrated by two examples:
4- 1. Fibonacci squence
5- 2. Find number of path in the Grid Map with obstacles
4+ 1 . Fibonacci squence
5+ 2 . Find number of path in the Grid Map with obstacles
66
77## Example 1: Fibonacci squence
88
@@ -12,6 +12,7 @@ Just run the **Fibonacci/EVAL_fibo.m** file to compare run-time of the following
12122 . Fibo using ___ Dynamic programming___
13133 . Fibo using ___ Matrix Exponentiation___ (Fastest method)
1414
15+ ### MATLAB function
15161 . ** Fibonacci/Fibo_R.m: Fibonacci with Recursive approach:**
1617 * Time Complexity: O(2^n)
1718 * Space Complexity: O(2^n)
5253tic;
5354N2 = GridPath_DP(Map, 1,1)
5455toc;
55-
5656```
5757
5858Grid map is as follows:
You can’t perform that action at this time.
0 commit comments