Algorithm¶
Core Idea¶
Step-by-step procedure for solving a problem.
How would you explain it like I'm…
Step-by-Step Recipe
Recipe of Exact Steps
Step-by-Step Procedure
Broad Use¶
Guides reasoning in structured problem-solving (e.g., recipes, workflows, or business processes).
Clarity¶
Breaks processes into repeatable, structured steps, like recipes or sorting algorithms.
Manages Complexity¶
Standardizes problem-solving into repeatable steps.
Abstract Reasoning¶
Encourages structured, sequential reasoning and process optimization.
Knowledge Transfer¶
Found in computer science, logistics, and medicine (diagnostic protocols).
Example¶
A navigation app uses Dijkstra's algorithm to find the shortest path between two locations.
Relationships to Other Abstractions¶
Current abstraction Algorithm Prime
Parents (2) — more general patterns this builds on
-
Algorithm presupposes Function (Mapping) Prime
An algorithm presupposes function because the procedure it specifies is precisely a mechanical way of realizing a deterministic input-to-output mapping.
-
Algorithm presupposes Iteration Prime
An algorithm presupposes iteration because executing a finite sequence of prescribed steps that update state until termination is the iterative pattern.
Children (5) — more specific cases that build on this
-
Search Algorithm Domain-specific is a kind of Algorithm
A search algorithm is an algorithm specialized to exploring a generated state space by a frontier strategy until a goal or stopping report is reached.
-
Sorting Algorithm Domain-specific is a kind of Algorithm
A sorting algorithm is an algorithm specialized to rearranging a finite sequence into a key-defined total order under explicit resource bounds.
-
Topological Sorting Domain-specific is a kind of Algorithm
Topological sorting is an algorithm specialized to producing a linear extension of a precedence DAG or reporting a cycle in linear time.
-
Type Inference Domain-specific is a kind of Algorithm
Type inference is an algorithm specialized to generating and unifying typing constraints to return a principal type or a located type error.
-
Computability Prime presupposes Algorithm
Per dossier and file: computability is 'the boundary/meta-level relation that algorithm presupposes' — the existence-question (does an effective procedure exist at all?) over algorithm's central object.
Hierarchy paths (2) — routes to 2 parentless roots
- Algorithm → Function (Mapping)
- Algorithm → Iteration
Not to Be Confused With¶
- Algorithm is not Transformation because transformation is a general mapping rule from inputs to outputs; an algorithm is a sequence of deterministic steps that, when executed, performs a computation or transformation—transformation is the abstract mapping; algorithm is the executable procedure.
- Algorithm is not Recursion because recursion is the self-referential pattern where a function calls itself with reduced problem size; an algorithm may use recursion as a technique but can also use iteration or other control structures—recursion is a specific control pattern; algorithm is the broader executable procedure.
- Algorithm is not Heuristic because a heuristic is a practical rule or shortcut that produces good (but not guaranteed optimal) results efficiently; an algorithm is a step-by-step procedure that is deterministic and guaranteed to terminate with a specified output—heuristic sacrifices optimality for efficiency; algorithm guarantees correctness.
- Algorithm is not Iteration because iteration is the repetition of a process; an algorithm may use iteration but also uses other control structures (conditionals, recursion)—iteration is a control technique; algorithm is the full executable procedure.
- Algorithm is not Sequencing because sequencing is the ordering of actions in time; an algorithm specifies not just the sequence but the logical control flow, conditionals, and data transformations—sequencing is the ordering; algorithm is the complete procedure with logic and data structures.