Code Flow is a React-based project that provides interactive visualizations for a variety of algorithms. It breaks down complex concepts into step-by-step graphical representations, making it easier for learners to grasp algorithmic principles.
Currently, there are 6 main segments, with a total of 10 algorithms implemented, and plans to add more in the future.
- Dijkstra: Visualize shortest path finding in graphs.
- Prime Numbers: Explore the distribution and identification of prime numbers.
- Binary Search: Demonstrate efficient searching in sorted arrays.
- Recursion Tree: Map out recursive function calls and structures.
- DFS (Depth-First Search)
- BFS (Breadth-First Search)
- Dijkstra
- Recursive Maze Creation
- Sieve of Eratosthenes (for prime numbers) =======
- Graph Search
- DFS
- BFS
- Dijkstra
- Recursive Maze Creation
- Sieve of Eratosthenes
- N Queen Backtracking
- Binary Search
- Recursion
- Fibonacci Number
- Node.js and npm (for development and running the project)
- A modern web browser (e.g., Chrome, Firefox)
- Git (to clone the repository)
- Clone the repository:
git clone https://github.com/yourusername/code-flow.git
- Navigate to the project directory:
cd CodeFlow
- Install dependencies:
npm install
- Start the development server:
npm start
The application will be available at http://localhost:3000
.
- Open the app in your browser.
- Select an algorithm or segment from the menu.
- Interact with the visualization: step through processes, adjust parameters (e.g., array size, graph nodes), and observe the algorithm in action.
- Use controls to play, pause, reset, or speed up the animation.
Contributions are welcome to expand the library of algorithms or improve existing visualizations! To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/new-algorithm
- Make your changes and commit them:
git commit -m 'Add new algorithm visualization'
- Push to the branch:
git push origin feature/new-algorithm
- Open a pull request.
For questions, suggestions, or issues, feel free to open an issue on GitHub or reach out via xamancore@gmail.com.
Enjoy exploring algorithms with Code Flow! 🚀