Algorithms
Pages in this section
- Decision treeLast edited: 2026-02-05Decision tree
Suppose you have two sets $A$ and $B$. A decision tree is a representation of a function $f: A \rightarrow B$, it is comprised of,
- Recursion
Last edited: 2023-11-13This is the technique of a function calling itself recursively to find an answer and returning at some given condition. This is in opposition to Iterative algorithms that achieve what they want in a for or while loop.
The important thing to remember is to set up a return condition that will always be met otherwise, this could go on forever (see Halting problem ).
- Recursion