Algorithms Dry Runner
The project can visualize the recursion tree of any java code. Adding support for more languages soon.
Created on 2nd July 2021
•
Algorithms Dry Runner
The project can visualize the recursion tree of any java code. Adding support for more languages soon.
The problem Algorithms Dry Runner solves
It can make debugging code very easy. The project can be used by both new programmers and professionals. When I used to mentor students at Coding Ninjas, I noticed a lot of students have problems creating recursion trees of code or face problems in just visualizing how the function calling works in java. Even for me, I can create the recursion tree but drawing It with the help of a notebook and pen is just too tiresome. So, I created these algorithms which can help us visualize any java code with just one click.
For more details please click here. This is my personnel website and there I wrote in detail how the program works and why it works that way and all other information.
Challenges I ran into
There were a lot of challenges from start. Every single function needs to be written from scratch. For example, extracting functions names and their variables from java code was the first challenge that I faced. First I created a simple regex algorithm that can achieve this task but as regex are not very performant in custom codes, then I came up with another algorithm that uses Stack to perform all these operations in O(n) time.
Technologies used