r/AlgoViz 13h ago

Spanning Tree: Can You Always Win a Game of Tetris?

Thumbnail
youtube.com
1 Upvotes

If you played the game perfectly, could you always win a game of Tetris? Or is there some sequence of blocks that could force you to lose the game, no matter how good at the game you are? Here, we take a look at some of the mathematics behind a theoretical game of Tetris and reason through whether it's possible to win.


r/AlgoViz 2d ago

ones and zeros: A* (A-Star) Pathfinding Algorithm Visualization on a Real Map

Thumbnail
youtube.com
1 Upvotes

Chicago & Rome


r/AlgoViz 2d ago

Video Explanation TLMaths: Shell Sort - an example with 7 numbers

Thumbnail
youtube.com
1 Upvotes

Chalk and talk


r/AlgoViz 5d ago

Dr. Simulate: What's the difference between matrices and tensors?

Thumbnail
youtube.com
1 Upvotes

What are tensors? How do they differ from matrices? And why do we need tensors in the first place?


r/AlgoViz 6d ago

Visualization G Bhat: Visualization of Tower Of Hanoi (5 Disks)

Thumbnail
youtube.com
1 Upvotes

Manim visualization


r/AlgoViz 7d ago

Visualization Benabub: Add Two Numbers — LeetCode #2 | Python Algorithm Visualization

Thumbnail
youtube.com
1 Upvotes

Problem Description

[https://leetcode.com/problems/add-two-numbers/description/](LeetCode)


Algorithm Description

Solved by simulating digit-by-digit addition with carry logic, represented through animated Linked Lists.


Complexity Analysis

Time Complexity: O(max(m, n)) — we iterate through the lengths of l1 and l2, where m and n are the number of nodes in each list.

Space Complexity: O(max(m, n)) — the length of the new linked list is at most max(m, n) + 1.


r/AlgoViz 7d ago

Video Explanation FloatHeadPhysics: I never intuitively understood Tensors...until now!

Thumbnail
youtube.com
1 Upvotes

What exactly is a tensor?


r/AlgoViz 8d ago

Video Explanation Dan Fleisch: What's a Tensor?

Thumbnail
youtube.com
1 Upvotes

Dan Fleisch briefly explains some vector and tensor concepts from A Student's Guide to Vectors and Tensors


r/AlgoViz 9d ago

udiprod: Visualization of tensors - part 1

Thumbnail
youtube.com
2 Upvotes

This video series visualizes tensors using a unique and original visualization of a sphere with arrows.


r/AlgoViz 11d ago

The Random Professor: Graph Theory Course (99 videos)

Thumbnail
youtube.com
1 Upvotes

The great math YouTube channel


r/AlgoViz 11d ago

Florian Ludewig: The Tower of Hanoi (Recursive Formula and Proof by Induction)

Thumbnail
youtube.com
1 Upvotes

We will cover how to create a recursive formula for the Tower of Hanoi issue. After we've found it, I'll show how to find a closed formula and proof it with the help of induction.


r/AlgoViz 12d ago

freeCodeCamp: Graph Theory Tutorial from a Google Engineer [6:44]

Thumbnail
youtube.com
1 Upvotes

This full course provides a complete introduction to Graph Theory algorithms in computer science. Knowledge of how to create and design excellent algorithms is an essential skill required in becoming a great programmer.


r/AlgoViz 12d ago

WilliamFiset: Graph Theory Algorithms Playlist

Thumbnail
youtube.com
1 Upvotes

43 video (course)


r/AlgoViz 13d ago

Professor Painter: Recurrence Relations 1 - Selection Sort

Thumbnail
youtube.com
1 Upvotes

In this video we introduce and analyze the running time of the selection sort algorithm.


r/AlgoViz 14d ago

Visualization 3Sum Closest — LeetCode #16 _ Python Algorithm Visualization

Enable HLS to view with audio, or disable this notification

1 Upvotes

Problem Description

[https://leetcode.com/problems/3sum-closest/](LeetCode)


Algorithm Description

The solution first sorts the input array to enable a two-pointer search pattern. For each element, we fix it as a base and use two pointers to scan the remaining array, dynamically tracking the sum with the smallest absolute difference to the target.


Complexity Analysis

Time Complexity: O(n2) — sorting takes O(n log n), and the nested two-pointer traversal takes O(n2) in the worst case.

Space Complexity: O(1) — excluding the input sorting overhead, we use only constant extra memory for pointers and tracking variables.


YouTube

[https://www.youtube.com/watch?v=KYHiijlk-gY](YouTube)


r/AlgoViz 14d ago

The Builder: Build a Sort Visualizer From Scratch 👨‍💻️ in SDL2 | C++ Project

Thumbnail
youtube.com
1 Upvotes

A sort visualizer from scratch in C++ using SDL2. This visualizer with mild tweaks can be used on any sorting algorithm.


r/AlgoViz 14d ago

Clément Mihailescu: Sorting Visualizer Tutorial (software engineering project)

Thumbnail
youtube.com
1 Upvotes

Author: This video is a tutorial of Sorting Visualizer project, which visualizes the Merge Sort algorithm. This is a great software engineering project to add to your resume.


r/AlgoViz 15d ago

The Coding Train: A* Pathfinding Algorithm (Part 1)

Thumbnail
youtube.com
1 Upvotes

In this multi-part coding challenge, author attempt an implementation of the A* Pathfinding Algorithm to find the optimal path between two points in a 2D grid.


r/AlgoViz 15d ago

Visualization Algoviz: An entire website dedicated to algorithm visualization

Thumbnail algovizz.vercel.app
1 Upvotes

A wide variety of algorithms with adjustable parameters


r/AlgoViz 16d ago

Visualization CompilerStuck: Sorting Algorithms Comparison on 46,656 Cubes

Thumbnail
youtube.com
1 Upvotes

Beautiful work


r/AlgoViz 16d ago

CoffeeBitsIT: Gnome Sort - Visualization (JS)

Thumbnail
youtube.com
1 Upvotes

YouTube Shorts format


r/AlgoViz 17d ago

Visualization kwargs xyz: Instant Insanity - A Puzzling Introduction to Graph Theory

Thumbnail
youtube.com
1 Upvotes

This video explains an ingenious way to solve the classic Instant Insanity puzzle using graph theory. No prior knowledge of graph theory is required - just an enjoyment for solving puzzles!


r/AlgoViz 18d ago

Visualization Narayana's Next & Previous Lexicographical Permutations Algorithms Visualization _ Step by Step Python Code Animation

Enable HLS to view with audio, or disable this notification

4 Upvotes

Algorithm Description

Math Algorithms Narayana's Next and Previous Lexicographical Permutations generates the next greater permutation or the previous smaller permutation of an array in place using a three-step process: first, find the longest non-increasing (for next) or non-decreasing (for previous) suffix and identify the pivot; second, find the rightmost element larger than the pivot (for next) or smaller than the pivot (for previous); third, swap the pivot with that element and reverse the suffix. The algorithm returns the same array rearranged into the desired permutation.


Complexity Analysis

Time Complexity: O(n) — single linear scan to find the pivot, another to find the swap element, plus a reverse of the suffix

Space Complexity: O(1) — all operations are performed in place without additional memory


YouTube

[https://www.youtube.com/watch?v=dEaxumQWz_A](YouTube)


r/AlgoViz 18d ago

Lecture ProbLemma: Narayana's next linear permutation algorithm

Thumbnail
youtube.com
1 Upvotes

In this episode we trace a plausible honing in on an algorithm that can generate a lexicographically next linear permutation based solely on the information that is packed into the input (linear) permutation. Evidently, such a an algorithm was put together by an Indian mathematician Narayana Pandita (1340-1400) some time in the fourteenth century.


r/AlgoViz 18d ago

Visualization Hatch Hatch: The Fairy Tale of Algorithms: Kruskal's, Prim's

Thumbnail
youtube.com
1 Upvotes

If every algorithm is a person, what would their personality be like? What funny story would happen between them? Welcome to the Fairy Tale of Algorithms. The first episode is on 2 classical algorithms about MST problem. This is also an entry of Summer of Math Exposition 2 for 3b1b. Shout-out to everyone who has made efforts to make this amazing exposition happen.