Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 11c14ad

Browse files
author
Mansour Torabi
committed
Grid Path Count Example Added
1 parent bd8ec49 commit 11c14ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Matlab Dynamic Programming
22

33
Dynamic 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
1212
2. Fibo using ___Dynamic programming___
1313
3. Fibo using ___Matrix Exponentiation___ (Fastest method)
1414

15+
### MATLAB function
1516
1. **Fibonacci/Fibo_R.m: Fibonacci with Recursive approach:**
1617
* Time Complexity: O(2^n)
1718
* Space Complexity: O(2^n)
@@ -52,7 +53,6 @@ toc;
5253
tic;
5354
N2 = GridPath_DP(Map, 1,1)
5455
toc;
55-
5656
```
5757

5858
Grid map is as follows:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /