VisuAlgo is an online learning platform focused on the visualization of data structures and algorithms. It was conceived in 2011 by Associate Professor Steven Halim of the School of Computing at the National University of Singapore (NUS), aiming to help students better understand data structures and algorithms in a self-paced, interactive way. The platform developed a series of visualizations in collaboration with NUS students, ranging from simple sorting algorithms to complex graph data structures. It was originally designed for NUS data structures and algorithms courses (such as CS1010, CS2040, CS3230, CS3233, CS4234, etc.) and is now open to learners worldwide.
Main capabilities:
- Provides 24 visualization modules, covering arrays, sorting, bitmask, linked list, binary heap, hash table, binary search tree, graph structures, union-find, Fenwick tree, segment tree, recursion tree/DAG, graph traversal, minimum spanning tree, single-source shortest path, cycle finding, suffix tree, suffix array, geometry (polygon), convex hull, network flow, graph matching, minimum vertex cover, Steiner tree, traveling salesman problem, NP-complete reduction, etc.
- Supports user-defined input rather than only using sample data, which is one of the platform's key features.
- Provides a graph drawing function that can be used for 9 graph-related visualization modules (graph data structures, DFS/BFS, MST, SSSP, max flow, matching, MVC, Steiner tree, TSP).
- Supports visualizing the recursion tree (or DAG, when overlapping subproblems exist and dynamic programming applies) of any valid JavaScript recursive function.
- Each visualization page provides an "e-Lecture Mode", which is automatically displayed on first visit or for users who are not logged in, to present the data structure or algorithm being visualized.
- Built-in online quiz system, including rule-based randomly generated questions and automatic grading, with a corresponding online quiz component for each visualization module. The public can access the online quiz system through "training mode".
- Supports three languages: English, Chinese, and Indonesian, with the goal of bringing the translation rate for all three languages close to 100%.
- Provides two visualization scales (1.0x and 0.5x); the reduced scale is used to show the operations of slightly larger test cases.
- Since April 2022, a mobile lite version has been available, allowing some features to be used on smartphone screens.
How to use: Users can directly visit the website https://visualgo.net/en usage. First-time visits load relatively quickly (using Cloudflare's global CDN), and returning users load almost instantly because static content is cached. It is recommended not to use incognito or private browsing mode so that the cache is retained. Users can use their own input data in the visualization pages to build custom graphs through the graph drawing feature. When comparing two related algorithms or operations, two VisuAlgo pages can be opened side by side for comparison. The e-lecture mode can be accessed in the upper right corner of each visualization page. Online quizzes can be accessed through the "Training" button in the visualization modules.
Applicable scenarios:
- Computer science students self-studying data structures and algorithms.
- Teachers using it for classroom teaching demonstrations; screenshots or video recordings may be used on other occasions, but the website URL must be cited.
- Preparing for exams or practicing basic data structure and algorithm problems.
- Comparing the behavior of different algorithms on the same input.
Limitations:
- It was not originally designed for small touch screens; a minimum screen resolution of 1366x768 is recommended for the best experience; the mobile version supports only some features.
- The "Test Mode" of online quizzes is used only in controlled environments such as official NUS exams; the general public can access it only through "Training Mode".
- Downloading client files and hosting them on other websites is not allowed, and forking the project or creating VisuAlgo variants is not allowed; individuals may use a client copy offline.
- Visualizing extremely large recursion trees may cause the browser or computer to crash.
- The platform is still under development, and more complex visualizations are continuously being developed.
Cost: VisuAlgo is provided free of charge to the global computer science community. The project has received a teaching enhancement grant from NUS CDTL and has been funded by Optiver since mid-2023. The 2026 expansion project focuses on exploring new information visualization technologies, which may include AI assistance.