We will need to install the matplotlib library with Python to plot the diagram in this chapter.
It can be installed on Ubuntu/Linux by running the following commands on the terminal:
python3 -mpip install matplotlib
You can also use the following:
sudo apt-get install python3-matplotlib
To install matplotlib on Windows:
If Python is already installed on the Windows operating system, matplotlib can be obtained from the following link to install it on Windows: https://github.com/matplotlib/matplotlib/downloads or https://matplotlib.org.
Code files for this chapter can be found at: https://github.com/PacktPublishing/Hands-On-Data-Structures-and-Algorithms-with-Python-Second-Edition/tree/master/Chapter03.