Skip to content

Getting Started

Gburi edited this page Dec 14, 2025 · 1 revision

Getting Started

Prerequisites

  • Python 3.10+
  • FFmpeg
  • LaTeX (optional, for math)

Installation

# Clone the repository
git clone https://github.com/YOUR_USERNAME/Algorithms-Visualized.git
cd Algorithms-Visualized

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # Linux/Mac
# .venv\Scripts\activate   # Windows

# Install dependencies
pip install manim

Render Your First Animation

# Preview quality (fast, 480p)
cd Chapter1_BinarySearchVsLinearSearch
manim -pql main.py Chapter1Animation

# HD quality (slower, 1080p60)
manim -pqh main.py Chapter1Animation

Output Location

Rendered videos are saved to:

ChapterX_Name/media/videos/main/1080p60/ChapterXAnimation.mp4

Render All Chapters

# Chapter 1 - Binary Search
cd Chapter1_BinarySearchVsLinearSearch && manim -pqh main.py Chapter1Animation

# Chapter 2 - Arrays & Selection Sort
cd Chapter2_ArraysLinkedListsSelectionSort && manim -pqh main.py Chapter2Animation

# Chapter 3 - Recursion
cd Chapter3_Recursion && manim -pqh main.py Chapter3Animation

# Chapter 4 - Quicksort
cd Chapter4_DivideConquerQuicksort && manim -pqh main.py Chapter4Animation

# Chapter 5 - Hash Tables
cd Chapter5_HashTables && manim -pqh main.py Chapter5Animation

# Chapter 6 - BFS
cd Chapter6_BreadthFirstSearch && manim -pqh main.py Chapter6Animation

# Chapter 7 - Dijkstra's
cd Chapter7_DijkstrasAlgorithm && manim -pqh main.py Chapter7Animation

# Chapter 8 - Greedy
cd Chapter8_GreedyAlgorithms && manim -pqh main.py Chapter8Animation

Troubleshooting

"manim: command not found"

Use the full path: .venv/bin/manim

LaTeX errors

Install texlive: sudo apt install texlive-full (Linux)

Slow rendering

Use -pql for preview quality during development.

Clone this wiki locally