AVLTrees.jl
AVL self-balancing tree written in pure Julia.
Install / Use
/learn @krynju/AVLTrees.jlREADME
AVLTrees
AVL self-balancing tree written in pure Julia.
Implemented on raw heap assigned storage with minimal overhead coming from balancing the tree itself. The tree node structure only has an additional Int8 keeping the balance factor. All balancing procedures are dynamically propagated (no height calculations during balancing).
Benchmark
An overview of performance is shown below (Julia 1.6.3). Times in nanoseconds. Average of 100 operations performed at tree size n using Int64 keys and data.
Table
Row │ n insert delete search
│ Any Float64? Float64? Float64?
─────┼────────────────────────────────────────
1 │ 1000 18.0 19.0 0.182365
2 │ 10000 31.0 29.0 0.204204
3 │ 100000 52.0 46.0 0.222668
4 │ 1000000 74.0 68.0 0.247743
5 │ 10000000 111.0 99.0 0.25502
Plot
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
