Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: Arshanhp/RBTree-Visualizer

v1.0

17 Feb 14:36
@Arshanhp Arshanhp

Choose a tag to compare

v1.0 Pre-release
Pre-release

🌳 RBTree Visualizer v1.0

A CLRS-based Red-Black Tree Visualizer with Step-by-Step Animation

Built with Python & Tkinter | CLRS 4th Edition Algorithms

License: MIT
Python 3.8+
Platform


πŸ“₯ Download & Install

Platform How to Get
πŸͺŸ Windows EXE ⬇️ Download RBTree-Visualizer.exe from Assets below β†’ Double-click β†’ Done!
🐍 From Source git clone β†’ pip install Pillow reportlab opencv-python imageio β†’ python main.py

πŸ’‘ No Python installation needed for the EXE version β€” just download and run!


🎬 What Does It Do?

RBTree Visualizer brings your Data Structures & Algorithms textbook to life! Watch Red-Black Tree operations happen step-by-step with synchronized pseudocode, case explanations, and beautiful animations.


✨ Features at a Glance

πŸ”¨ Build Mode β€” Interactive Learning

Feature Description
🎯 CLRS Insert & Delete Exact algorithm from CLRS 4th Edition
πŸ“– Pseudocode Panel Real-time synced with highlighted current line
🧠 Case Explanations Insert Cases 0-3, Delete Cases 0-4 with full detail
⏱️ Timeline Scrubber Navigate forward/backward through any step
πŸ“‹ Operation Log Clickable history β€” jump to any past operation
⚑ Adjustable Speed Control animation speed with a slider

πŸ“Š Analyze Mode β€” Batch Operations

Feature Description
πŸ“¦ Batch Insert/Delete Process multiple operations at once
βœ… Tree Validation Verify BST ordering + all 5 RB properties
🎲 Random Generation Generate random valid RB trees instantly

🎨 Visual & UX

Feature Description
πŸŒ™β˜€οΈ Dark & Light Theme Full UI theme switching β€” every element updates
πŸ” Zoom & Pan Mouse wheel zoom + click-drag pan on canvas
✨ Smooth Animations Node movements, rotations, and recoloring animated
🎯 Node Highlighting Current node, parent, uncle, sibling all highlighted

πŸ“€ Export Options

Format What You Get
πŸ–ΌοΈ PNG High-quality snapshot of current tree state
πŸ“„ PDF Complete step-by-step walkthrough document
πŸŽ₯ MP4 Animated video recording of the entire operation

πŸ–₯️ System Requirements

For EXE (Recommended)

  • βœ… Windows 10 / 11 (64-bit)
  • βœ… No additional software needed

For Source Code

  • βœ… Python 3.8+
  • βœ… pip install Pillow reportlab opencv-python imageio

πŸš€ Quick Start

Loading

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /