preface

I believe that for most programmers, data structure and arithmetic is difficult, but it is very important in the work, can be said to be a cornerstone of development. Therefore, in order to better learn and understand the data structure and algorithm, I bought several algorithm books during the Double 11 activity, intending to work hard to get it thoroughly, which was a little overwhelming.

So I thought, well, there should be an easier way to learn data structures and algorithms, right? Then, after a round of “shopping” in the technical forum, I finally found some websites that can be more intuitive and simple to learn data structure and algorithm.

Basically, it introduces several “cool” websites for learning about data structures and algorithms. With these sites you can easily learn data structures and algorithms in animated form. Animations can demonstrate the structure of adding data and how it is executed! In addition, there will be corresponding algorithm text and algorithm specific implementation code, let’s have a look.

Website 1: Data Structure Visualization

This is a data structure visualization and algorithm visualization website, using it you can choose the data structure you want to learn, in the process of adding data, will generate the corresponding data structure, at the same time will simulate the process of their execution, select a few data structures and algorithms to demonstrate examples.

In case 1, we choose a binary search tree to simulate its execution process, as shown in the figure below:

In case 2, we chose the quicksort algorithm to demonstrate its execution, as shown in the figure below:

The site has the following features:

  • The data structures and algorithms covered are complete, rich and intuitive. For example, common data structures include arrays, linked lists, queues, binary search trees, red-black trees, and various sorting algorithms

As shown below:

Website address: Data Structure Visualization

Website 2: VisuAlgo

The website can use their own input data to carry out any algorithm, it contains a relatively rich algorithm, we can see from the home page, in addition, it also supports the retrieval of algorithm keywords, as shown in the figure below:

In addition, the website can also demonstrate the algorithm in the way of animation, and also contains the text explanation of the algorithm, so that you can easily learn the algorithm you want to know, as shown in the following picture:

Next, we choose the bubble sort algorithm to demonstrate the execution process of its sorting, and the sorting animation is shown as follows:

The site has the following advantages:

  • Richer algorithm support
  • Support the retrieval capability of the algorithm
  • Users can define their own input data
  • The algorithm has text explanation

Website: visualgo.net/zh

Website 3: Algorithm-Visualizer

This website is also excellent for learning algorithms, because it not only provides the specific code implementation of the algorithm, but also outputs the entire algorithm execution process on the command console, which can help users better understand the algorithm, as shown in the following figure:

Next, we also choose bubble sort algorithm to demonstrate the execution process of sorting, as shown in the figure below:

The site has the following features:

  • The algorithm can also be visually visualized
  • Display the specific implementation of the algorithm code, currently support JS, C++ and Java language
  • The console displays the output of the execution process in real time to help you better understand the algorithm
  • The downside is that you need to climb over a wall to get to the site

Algorithm-visualizer.org/

conclusion

After understanding these learning data structure and algorithm visualization tools website, we can be more simple and intuitive learning data structure and algorithm, I believe that we are “rub fist rub palm” ready to show their skills, I hope we have learned something.


Well, today’s share is over here, if you want to know more, welcome to pay attention to “Go keyboard man” public account:

Go implements common sorting algorithms