COMPUTER SCIENCE EDUCATION
Learner-Customized Algorithm Visualization Using Generative AI
This study introduces a generative AI-based system that revolutionizes algorithm learning by enabling personalized, interactive visualization and exploration of algorithms, moving beyond static representations to active engagement and deeper conceptual understanding.
Published: 05 April 2026 by Euiyoung Kang, Shivani Devi, Seong Baeg Kim
Executive Impact & Key Findings
Leveraging Generative AI, this research redefines how learners interact with algorithms, offering unprecedented flexibility and depth in understanding complex computational processes.
Deep Analysis & Enterprise Applications
Select a topic to dive deeper, then explore the specific findings from the research, rebuilt as interactive, enterprise-focused modules.
Generative AI & Algorithm Visualization Integration
This research pioneers an approach where Large Language Models (LLMs) transform natural language algorithm descriptions into executable specifications, shifting visualization from predefined code execution to real-time, AI-generated procedures. This enables learners to collaborate with AI in designing and visualizing algorithms, fostering deeper understanding and interaction beyond passive observation.
Empowering Learner-Centered Exploration
The system redefines algorithm learning as a learner-customized activity. By providing flexibility to modify algorithmic logic and experimentally explore procedural flows, it moves beyond the limitations of static visualization tools. Learners become co-designers, actively engaging in understanding state transitions and conceptual transfer across diverse algorithms, reducing cognitive load and enhancing metacognitive awareness.
Robust Three-Layer Architecture
The proposed system is built on a three-layer architecture: Preparation (LLM), Execution (Python), and Visualization. The LLM generates formal specifications and executable code. The Execution layer computes step-by-step state changes, and the Visualization layer renders these into tabular and graphical forms with AI-generated explanations. This ensures reproducibility, scalability, and consistency across diverse computational structures.
Enterprise Process Flow: Generative AI AV System
This three-layer architecture ensures consistency, reproducibility, and scalability, transforming algorithmic descriptions into interactive visual insights.
The Generative AI system fosters a "co-designer" role for learners, moving beyond passive observation to active exploration and design of computational processes.
| Feature | Traditional AV Tools | Proposed Generative AI AV System |
|---|---|---|
| Algorithmic Scope | Fixed/predefined forms, static scripts. | Independent of specific algorithms, explores classical and novel ones. |
| Learner Role | Passive observation, consumers of visualization. | Active engagement, co-designers, self-regulated exploration. |
| Flexibility | Limited modification of logic/flows. | High flexibility to modify logic, experiment with new procedural flows. |
| Understanding Focus | Outcome-oriented, visual reproduction. | Process-oriented, intuitive understanding of state transitions, conceptual transfer. |
| Consistency | Inconsistent visualization rules across platforms. | Unified specification structure ensures consistent visualization conditions. |
Case Study: Dijkstra's Algorithm Visualization
The system effectively visualizes Dijkstra's algorithm, a complex graph search algorithm. An LLM generates a structured JSON specification and Python function from the user's input, defining nodes, edges, weights, and update rules. The execution module then traces step-by-step state transitions, such as node selections and distance updates, which are then rendered as an animated graph.
This allows learners to observe the algorithm's progression dynamically, identifying visited, tentative, or finalized nodes. The process provides conceptual verification, turning an abstract algorithm into a concrete and understandable flow of operations, thereby deepening the learner's understanding of computational thinking.
Calculate Your Potential AI Impact
Discover the transformative benefits of integrating advanced AI solutions into your enterprise operations.
Your AI Implementation Roadmap
A clear path to integrating generative AI solutions into your learning and development strategies.
Phase 1: Discovery & Strategy
Identify key learning objectives and algorithms for visualization. Define custom requirements and integration points for existing educational platforms.
Phase 2: LLM & Execution Module Setup
Configure the Large Language Model for algorithm description interpretation and code generation. Establish the Python execution environment for reproducible state transitions.
Phase 3: Visualization & Customization
Develop interactive visualization interfaces tailored to learner needs. Implement customization features for algorithm parameters and visual representations.
Phase 4: Pilot & Iteration
Conduct pilot programs with educators and students. Gather feedback to refine the system, ensuring optimal pedagogical effectiveness and user experience.
Phase 5: Scalability & Integration
Scale the system to support a wider range of algorithms and user base. Integrate with existing institutional learning management systems and educational tools.
Ready to Transform Algorithm Education?
Book a personalized consultation to explore how learner-customized algorithm visualization can elevate your educational programs.