Author: Jiang Baoshang
After the introduction of programming language, you must learn algorithms and data structures if you want to advance.
Normal study materials are pure text and static charts. Previously, Digestive Bacteria recommended an open source project, and all sorting algorithms were implemented in Python, including insert sorting, bubble sorting, quick sorting, selection sorting, merge sorting and so on.
Now, these will "move"!
This is an intuitive algorithm visualization tool called Algorithm Visualizer, in which you can freely choose the algorithm you want to learn, and each algorithm clearly describes its principle and operation process.
At present, the algorithm visualizer has obtained 15048 stars and 2097 forks on GitHub.
GitHub address:
/Algorithm-Visualizer/Algorithm-Visualizer
Presentation address:
https://algorithm-visualizer.org/
The use of algorithm visualization tools
Let's explain the tool algorithm visualization tool through depth-limited search:
On the far left is the directory area, you can choose any algorithm you like, and in the middle is the dynamic demonstration area and log output area of the algorithm, in which the log mode records the process of each search.
There is a toolbar on the far right, and you can choose to play or pause, or even play the speed. The lower part of the toolbar is the code area, where the core code of the algorithm is embodied.
At present, there are many supported algorithms, including backtracking, encryption, dynamic programming, graph search, greedy algorithm, search algorithm, sorting algorithm and so on.
In addition, bacteria also tried two other algorithms, and the results are as follows.