AlgoMentor-AI — Learn Algorithms. Understand Code. Think Like a Programmer.

Inspiration

As students learning programming and computer science, we often encounter a common problem: understanding an algorithm in theory is one thing, but understanding how it actually works step by step is another.

Reading code or memorizing an implementation does not always help students understand the underlying logic. Similarly, when students encounter errors in their C++ programs, they may struggle to identify the issue or understand why their code is not working as expected.

We wanted to create something that makes programming education more interactive, accessible, and practical. This idea led to AlgoMentor-AI.

Our goal is simple: help students understand the logic behind algorithms, improve their programming skills, and become independent problem-solvers rather than simply memorizing code.

What It Does

AlgoMentor-AI brings interactive algorithm learning and AI-assisted programming into one platform.

1. Interactive Algorithm Visualizer

Students can explore algorithms visually instead of relying only on written explanations.

The platform currently includes:

  • Bubble Sort visualization.
  • Selection Sort visualization.
  • Binary Search visualization.

These visualizations help learners follow the algorithm's execution and understand how its operations affect the data.

2. AI-Powered C++ Assistant

The platform also provides an intelligent programming assistant with three main capabilities:

  • Explain: Understand what a piece of C++ code does.
  • Debug: Identify potential problems and understand why they occur.
  • Improve: Receive suggestions for making code clearer and better structured.

The assistant is designed to support learning and understanding rather than simply providing code to copy. It analyzes code without executing user-submitted programs.

How We Built It

We developed AlgoMentor-AI using a modern full-stack architecture.

Frontend:

  • React
  • TypeScript
  • Vite

Backend:

  • Python
  • FastAPI

Programming Language Support:

  • C++

We developed the algorithm visualizers as interactive frontend components and built a backend API to handle C++ code-analysis requests.

The frontend communicates with the backend through API endpoints for the assistant's explain, debug, and improve actions.

We also focused on making the application maintainable by separating frontend components, backend logic, and testing responsibilities.

Finally, we deployed the application using Vercel so that users and judges can access it through a live web interface.

Challenges We Faced

Building AlgoMentor-AI involved more than simply putting different features on a webpage.

Some of our main challenges included:

  • Making algorithms understandable: Designing visualizations that communicate the logic of sorting and searching rather than just displaying the final result.
  • Frontend and backend integration: Connecting the React interface with FastAPI endpoints and handling requests and responses reliably.
  • Code analysis: Designing separate explain, debug, and improve actions so that the assistant provides useful programming guidance.
  • Testing and reliability: Building automated tests and checking that different parts of the application behave as expected.
  • Deployment: Preparing the application to work outside the local development environment and making it publicly accessible.

Each challenge helped us think more carefully about software architecture, debugging, and the importance of testing.

What We Learned

Through this project, we gained practical experience in:

  • Building and deploying a full-stack application.
  • Developing interactive educational tools using React and TypeScript.
  • Designing APIs with Python and FastAPI.
  • Integrating programming assistance into an educational workflow.
  • Writing automated tests and improving software reliability.
  • Working with Git, GitHub, and a structured development process.

Most importantly, we learned that useful educational technology should not just provide answers. It should help learners understand the reasoning behind those answers.

What's Next?

We see AlgoMentor-AI as a foundation that can grow into a more comprehensive programming-learning environment.

Future improvements could include:

  • More algorithms and data structures.
  • Additional programming language support.
  • More detailed, step-by-step code explanations.
  • Personalized learning paths and practice challenges.
  • Progress tracking and interactive assessments.

Our Vision

We want to make programming less intimidating and more understandable for students.

With AlgoMentor-AI, we aim to turn abstract programming concepts into interactive learning experiences and make AI a tool for better understanding, not just faster answers.

Built With

Share this project:

Updates

Submission history