Small knowledge, big challenge! This article is participating in the creation activity of “Essential Tips for Programmers”.

directory

1. Data Structure Visualizations

2. VisuAlgo

3. Algorithm Visualizer

4. Algorithm complexity (big-o Cheat Sheet)


At the beginning of learning algorithms, the most troublesome problem is that I do not have a clear understanding of the movement of data in my brain, so how to move and exchange specific data of different algorithms can only be printed out by code step by step and analyzed bit by bit. It’s hard to learn. I accidentally found several algorithms of data visualization websites, which can directly use dynamic pictures to intuitively demonstrate the process of data movement. For the beginning of learning data algorithms is very helpful.

1. Data Structure Visualizations

Data Structure Visualization

After opening the website, click the algorithm button on the left of the website directly, and a list of all algorithms will be displayed.

 

To see which algorithm, just click on the right, and select comparison sort.

A graphical interface will be displayed, where you can see the data sorting process of different algorithms.

Select the sorting method you want to see, then click the paly button, and the data will start the dynamic demonstration. Pull the scroll bar to adjust the speed of the data demonstration. You can also directly click skip Forward button to skip the data demonstration process and directly watch the results.

2. VisuAlgo

VisuAlgo – visualising data structures and algorithms through animation

When you open a web page, list the algorithms directly at the bottom with ICONS. Just go in and watch the algorithm you want.

I’m going to go ahead and hit the first one

After entering, click the create button in the lower left corner, you can directly define the data in the array.

Once you have defined the array, select the sorting algorithm you want to observe at the top, and then click the sorting button in the lower left corner to demonstrate the sorting process dynamically.

In the process of data demonstration, you can directly drag the scroll bar in the bottom corner to adjust the speed, or click the button in the middle to pause the automatic demonstration, and then step by step view. You can also directly click the fast forward button, directly jump to complete the data sorting.

In the sorting process, there will be pseudocode in the lower right corner to demonstrate the sorting algorithm.

However, the code in the lower right corner looks more laborious in Chinese, so it is suggested to switch the web page to English to view the sorting code.

3. Algorithm Visualizer

Algorithm Visualizer

Open the page and select the algorithm you want to demonstrate on the far left, then click the Play button in the upper right corner.

In this way, the last edge of the page is the code area. If the page is translated into Chinese, the variables in the code will also be translated. It is difficult to read the code, so it is recommended to watch it directly in English.

During sorting, the far right side shows where the code has been executed, and the bottom center of the screen shows what data has been swapped

You can also adjust the speed of the demo in the upper right corner of the screen and step through the < and > buttons.

4. Algorithm complexity (Big-O Cheat Sheet)

Big-O Algorithm Complexity Cheat Sheet (Know Thy Complexities!) @ericdrowell

You can’t see the data demo on this site, but it charts the time and space complexity of various algorithms.

The site also has a page in chart mode called Big-o Cheat Sheet

It presents the analysis of each algorithm in the form of a graph.

I believe that with the help of these websites, I believe that in the process of learning data algorithms, it is easier to understand different algorithms.