Library / Skill
Trace union-find operations with union by rank and path compression
baltor_union_find_trace
Trace union, find and connected operations on a disjoint-set forest with union by rank or size and path compression, recording parent arrays and ranks before and after every operation, the paths followed, the nodes compressed and the roots linked.
LICENSE1.0 KBSKILL.md1.5 KBcontracts/input.schema.json1.6 KBcontracts/output.schema.json4.7 KBexamples/example.expected.json7.1 KBexamples/example.input.json447 bytesreferences/README.md3.0 KBreferences/provenance.json4.5 KBscripts/tool.py12.0 KBverification/test_tool.py10.0 KB
Full files in your harness.
What it takes and gives
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- elements, union_rule, compression, operations
- Test
python3 -B -m unittest discover -s verification -p 'test_*.py' -v- Files
- SKILL.md, contracts/input.schema.json, contracts/output.schema.json, scripts/tool.py
- Placed for
- Claude Code, Codex, OpenCode, Pi
Details
- Kind
- Skill
- Licence
- MIT
- Declared effects
- reads files, runs commands
- Placed for
- Claude Code, Codex, OpenCode, Pi
- Source
- docs/architecture/NORTH-STAR.md
- Size
- 10 files, 45.9 KB
- Identity
baltor_union_find_trace- Version
3bfe455b749cf323d7323d817158c330e749e17afae2c1a1b6bf0d7eaced0465
The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.
Where it is shown
- Algorithms that show their workDeterministic skills
Related components
Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.