1. Introduction
The knowledge of Computer Science is incomplete without Data Structures and Algorithms and it forms an essential part of the skillset for any Computer Science professional be it Computer Scientist or a Programmer in a corporate environment and this justifies the subject holding a stable position in the Computer Science curriculum. The evergrowing number of students in higher education requires the introduction of appropriate approaches to their education system. One such useful technique for learning any concept is Visualization. Visualization of Algorithms aids in improving Computer Science Education. The process of teaching and learning algorithms possesses complexity and difficulty on the part of the learner. In this project, we visualize Graph Algorithms.
The project is divided into three modules, namely:
1.1 Path Finding Algorithms: • Dijkstra Algorithm • A* Algorithm (AI-Based Algorithm) • Depth FirstSearch • Breadth-First Search
1.2 Task Scheduling via Topological Sorting
Graph Algo Visualizer aims to help a learner visualize and hence understand the working and performance to be able to apply them in different circumstances as opposed to the conventional method of memorization of code prevalent among students of Computer Science Courses. It also aims to sow the seed of innovative thinking in the minds of young learners who can apply efficient algorithms for the desired application using the imagination power and understanding of algorithms gained with the help of this project. The Graph Algorithms visualized here have many applications not limited to :
- Path Finding: Google Map Routing, Ola/Uber/Swiggy/Zomato Driver Route Prediction, mapping, computer networking, social media.
- Minimum Spanning Tree: Cluster Analysis, Network Design, Protocols in computer science to avoid network cycles, Real-time face tracking, and verification.
- Topological Sorting Finding the presence and resolution of deadlocks, critical path analysis, dependency resolution.
2. Literature Survey
Algorithms & Data Structures are an important but complex part of computer science education for students. One ray of light in the direction of improving learning in this area is to include visualizations and animations in the curriculum. Algorithm Visualization has a rich history in computer science education dating from the 1980s: attempt by Ronald Baekar and the BALSA program [Brown and Sedgewick, 1984]. Since then, hundreds of Exhibits have been introduced and sometimes provides free of charge to teachers. Although many Algorithm Visualizers exist and are freely available on the internet, only few are of high quality and of true value from which a student can actively learn and interact. A Good Algorithm Visualizer can give a new life to the algorithm by the graphical representation of their various states and intermediate transitions independent of their memory interactions. Algorithm Visualizers have been consistently liked by students and educators and some studies have even proved that they can indeed improve understanding of Data Structures & Algorithms. The history of Algorithm Visualizers can be divided into two parts: Those which were implemented before Java and those which were implemented after.
2.1 Prior to JAVA:
Pioneer of Algorithm Visualizers: Brown Algorithm Simulator and Animator (BALSA) has introduced a program produced by animators to teach essential Computer Science and can be used to eliminate error and research. XTANGO[1992] , POLKA[1992] , Swan [ 1996] are some of the Visualizers of this period.
2.2 After JAVA:
Vast majority of Algorithm Visualizers since the mid-1990s have been implemented using Java with the support of its graphical libraries. For e.g. : JAWAA , JHAVE , ALViE. Various Algorithm Visualizers have been implemented for algorithms and simple data structures such as sorting algorithms like bubble sort, insertion sort, radix sort, etc. Visualizers for Graph Algorithms are currently into the shaping and this project focuses on them. The Visualizer Algorithm can provide another logical and attractive alternative to written teaching methods such as pseudo code and real code. It has been identified that Algorithm Visualizers can be good for:
Teaching the Concept Exploring the concept Debugging Comparisons Lecture Aid Lab Exercise Self-Study
Although many projects and research papers are dedicated to this field, Algorithm Visualization is still far from the mainstream in learning algorithms and Computer Science Education Tools.
3. Methodology
The proposed methodology for the successful completion of the project is the Iterative Enhancement Model.
The project is divided into three modules and the completion of all three modules marks the completion of the project.
4. Results and Discussions
Modules implemented are as:
4.1 Path Finding Visualizer
As the name suggests this Module focuses on Graph Algorithms that search for a path connecting two points in Network represented as a 2D Grid. Here each movement from one Node to another “costs” 1.
The data
Path Length Path Cost Time Complexity Calculated is based upon the Algorithm Chosen to be visualized and helps to compare the performance of different Algorithms with Each other.
5. Minimum Spanning Tree
This Module demonstrates the formation of a minimum spanning tree with the insertion of each node.
Here we used Prim’s Algorithm to create a Minimum Spanning Tree. With the insertion of each Node on the Canvas, Prim’s Algorithm is applied on all the nodes in the canvas according to which these nodes are connected.
6. Topological Sorting
This module visualizes a direct application of Topological Sorting which is Task Scheduling. To implement Task Scheduling we have used Kahn’s Algorithm for Topological Sorting. The user can add an endless number of Tasks and their Prerequisite through entering them in input boxes.
Kahn's Algorithm considers this data as vertices of a graph such that the prerequisite task directs towards the task and creates a Graph according to it in the Canvas.
7. Conclusion
With the entirety of this challenge, we have efficaciously performed the objective of our assignment that is to embed some of the Graph Algorithms with Visualization and evaluate their performance or applications. As is the case with maximum different coaching areas, there was a big hole among the principle and sensible expertise of algorithms attention. The primary goal of the project is to use it from research educators and students for teaching and studying the present recognized combinatorial graph algorithms. The idea of the device is to provide an integrated educational environment for both instructors and students to facilitate the learning method in an efficient manner.