SPPS

Algorithms · 2026

Signed Positional Prüfer Sequences: linear-time bijective encoding and C++ benchmark suite for rooted directed ordered trees.

Quickstart

Clone the repository or pull the weights to inspect and run SPPS locally.

$git clone https://github.com/Cyrax321/spps-experiments.git
spps/encode.cpp4 lines
// Signed Positional Prufer Sequences: O(n) bijective tree serialization
auto seq = spps::encode_tree(rooted_ordered_tree);
auto restored = spps::decode_tree(seq);
assert(restored == rooted_ordered_tree);

Overview & Notes

Experimental C++ implementation and Linux/x86_64 benchmark suite accompanying the Signed Positional Prüfer Sequences manuscript.

C++AlgorithmsCombinatorics

The soul becomes dyed with the color of its thoughts.

Marcus Aurelius

Made with <3 and lots of coffee.