-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# Recursive Algorithms | ||
# Recursion | ||
|
||
Algorithms that use recursion that do not fall in any more specific category. For example, the problem "the nth fibonacci number" can be solved using recursion, but it can also be solved more interestingly using dynamic programming, and so you can find those algorithms (including the recursive one) under the folder `dp`. | ||
|
||
There are many other algorithms in other repositories, such as in [sorting](../sorting) that use recursion, for example quicksort and merge sort use recursion. | ||
Algorithms that use recursion that do not fall in any more specific category and which are, in my opinion, good and simple examples of recursive algorithms. | ||
|
||
There are other recursive algorithms in this project that would also be good examples to show how recursion works, for example [`quick_sort`](../sorting/quick_sort.py), but I thought they would be better examples of other concepts. | ||
|
||
|
||
## Possibly useful resources | ||
|
||
- [https://en.wikipedia.org/wiki/Recursion_(computer_science)](https://en.wikipedia.org/wiki/Recursion_(computer_science)) | ||
|
||
- [https://www.khanacademy.org/computing/computer-science/algorithms/recursive-algorithms/a/recursion](https://www.khanacademy.org/computing/computer-science/algorithms/recursive-algorithms/a/recursion) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters