Mind map
Recursion
Map content
Recursion
Form to define functions
- The function calls itself
- It is used in the definition of the function
- Declare how IS something
- Replaces FOR and WHILE
It has a Base Case
- Not defined Recursively
- Limit condition
- Function finishes
MAX Function
- Used for recursion
- Take two things and return the greatest
- It calls itself to compare all the elements
Guards are used
- Boolean conditions
- Replicate data
- Take and show Data
- Reverse Data
- Merge Data
- Search Data
QuickSort
- It allows to order elements
- Much easier than any other programming language
- Two Recursive calls
- Central head element
- Order to the Left
- Order to the right
- Pivot
- Central head element
- It allows to order elements
Steps:
- Define Base Case
- Define the function
- Generally of the first element
- Define Identities or parameters to break
- Define the function
- Define Base Case
Information
- Description
- Ingeniería Mind Map on Recursion, created by Daniel Almanza on 19/02/2018.
- Created by
- Daniel Almanza
- Views
- 0
- Rating
More on Functional Programming and Haskell