For the first impression of “algorithm”, I believe most people are the same, is a “difficult” word.

And I am more special, my first impression, second impression and even the N impression feel very difficult, so in order to better learn and understand the algorithm, I bought a bunch of algorithm books, as shown in the picture:

But to be honest, the effect is not very good, so Lei elder brother is wondering if there is a simpler way to learn the algorithm? Did not expect to be really found by me, the truth should be the old saying “blind cat met a dead mouse”, bah, no, is “a day of good people”.

So how can you easily learn an algorithm? The answer is the following websites.

With these websites can let you in the form of animation, see the specific implementation process of the algorithm and the specific structure of the data, as well as the text of the algorithm and the specific implementation of the algorithm code, the next look.

DataStructureVisualizations

A data visualization and algorithm visualization site, with which you can generate a variety of data structures, simulate the process of their addition and deletion, but also can use it to demonstrate the implementation of algorithms.

Content presentation

For example, we use it to simulate a binary search tree, as shown below:

Let’s use it again to demonstrate the quicksort algorithm, as shown below:

Site characteristics

Data Structure Visualizations contain a lot of contents, such as common array, linked list, queue, binary search tree, red-black tree, sorting, as shown in the following figure:

Access to the address

www.cs.usfca.edu/~galles/vis…

VisuAlgo

The site contains more algorithms, as you can see from the front page, but also supports keyword search, as shown below:

In addition to demonstrating the algorithm in an animated way, this website also contains a text explanation of the algorithm, as shown in the picture below:

Content presentation

Next, we demonstrate the execution process of bubble sort, as shown in the figure below:

Site characteristics

  • The retrieval function of the algorithm is provided
  • More algorithmic support
  • You can customize test data
  • Text interpretation
  • .

Access to the address

visualgo.net/zh

algorithm-visualizer

This website also supports many algorithms, and this website provides the specific code implementation of algorithms, it supports languages such as Java, C++, JS, etc., and the console also outputs the entire execution process, which can help you better understand the algorithm, as shown in the following picture:

Content presentation

We use it to demonstrate the execution of bubble sort, as shown in the following figure:

Site characteristics

  • Algorithm visualization
  • Specific implementation code of the algorithm (support Java, C++, JS and other languages)
  • The console performs step output (to help you better understand the algorithm)
  • .

Access to the address

algorithm-visualizer.org/

conclusion

With these visualization tools, we can learn algorithms more easily. These three websites have different periods, you can use Data Structure Visualizations to understand the Data Structure. Use VisuAlgo and algorithm-Visualizer to view the algorithm execution process, and use algorithm-Visualizer to view the algorithm implementation code.

Follow the public account “Java Chinese community” reply “dry goods”, obtain 50 original dry goods Top list.