---
library: "bootstrap"
slug: "Tree"
name: "Tree"
ref: "Tree#dd92"
hash: "sema:Tree#mh:SHA-256:dd927c24f8165bd3ddc75b29cc96c1e43eb45bdaf084ba1e2bce2b0a71ab05ec"
type: "Data Structures"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Tree"
---

# Tree

Branching reasoning topology

Infrastructure · Data Structures

## Mechanism

A branching [Topology](https://semahash.org/vocabularies/bootstrap/patterns/Topology.md) where multiple lines are explored simultaneously — lines of reasoning, of search, or of provenance. Allows backtracking and pruning of unpromising branches (BFS/DFS). A Tree is the constrained form of a directed acyclic graph where each non-root node has exactly one parent.

## Invariants

- Rootedness: All nodes descend from a single root.
- Acyclicity: No node is an ancestor of itself.

## Parameters

- breadth: type=PositiveInteger, range=unspecified, description=Maximum branches explored per node. Left open at the foundation: binary trees use 2, beam search uses 50+, decision trees can be millions. Descendants specialize.
- depth: type=Integer, range=[1, 20], description=Maximum tree depth

## Where this came from

—

## Builds on

- [Topology](https://semahash.org/vocabularies/bootstrap/patterns/Topology.md) (references)

## Used by

- [Chain](https://semahash.org/vocabularies/bootstrap/patterns/Chain.md) (references)
- [Forest](https://semahash.org/vocabularies/bootstrap/patterns/Forest.md) (references)
- [Reason](https://semahash.org/vocabularies/bootstrap/patterns/Reason.md) (references)
- [RootSolver](https://semahash.org/vocabularies/bootstrap/patterns/RootSolver.md) (references)
- [Solution](https://semahash.org/vocabularies/bootstrap/patterns/Solution.md) (references)
- [SolverTree](https://semahash.org/vocabularies/bootstrap/patterns/SolverTree.md) (references)
- [StrategicReading](https://semahash.org/vocabularies/bootstrap/patterns/StrategicReading.md) (references)
- [TreeOfThoughts](https://semahash.org/vocabularies/bootstrap/patterns/TreeOfThoughts.md) (references)
- [UniversalSolverTree](https://semahash.org/vocabularies/bootstrap/patterns/UniversalSolverTree.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Tree#dd92
- Hash: sema:Tree#mh:SHA-256:dd927c24f8165bd3ddc75b29cc96c1e43eb45bdaf084ba1e2bce2b0a71ab05ec

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Tree
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Tree.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
