Read-only copy. This public copy of trans-bench is read-only: it shows the published campaigns. Clone the repository to run benchmarks or to edit systems. github.com/Sirneij/trans-bench, branch verified-rerun-2026
Topology · reverse_binary_tree

Reverse Binary Tree

Binary tree with edges reversed — children point to parent.

Evaluation
Linear · T ∘ E–iterations (left / right recursion)
Doubling · T ∘ T–iterations (double recursion)
1 / 1
iteration 1new pairs per iteration
Nodes · edges15 · 14
Closure |TC|34
Closure / edges2.4×
16

A small instance from the generator the benchmark runs with n from 100 upwards.

Definition

Symbol
V_h
Edges
\{(2i, i) \mid i \in 1..2^{h-1}\} \cup \{(2i+1, i) \mid i \in 1..2^{h-1}\}

Generator

engine.data_generator.DataGenerator.generate_reverse_binary_tree_graph
generate_db.py
    def generate_reverse_binary_tree_graph(self, n: int) -> Generator[tuple[int, int], None, None]:
        """Generate a reverse binary tree graph with n nodes."""
        h = math.floor(math.log2(n))
        logging.info(f'Generating reverse binary tree graph for n={n} and h={h}')
        parent_count = 2 ** (h - 1) - 1
        for i in range(1, parent_count + 1):
            yield (2 * i, i)
            yield (2 * i + 1, i)