Array Algorithms are defined as functional algorithms where each step of the algorithm results in a function being applied to an array, producing an array result
Array Algorithms are defined as functional algorithms where each step of the algorithm results in a function being applied to an array, producing an array result. Array algorithms are compared with non-array algorithms.
A brief rationale for teaching array algorithms is given together with an example which shows that array algorithms sometimes lead to surprising results.
Example of such algorithms:
- Sorting
- Searching an number in array
- Finding most frequent number in a list
- Maximum Sum Subset