Hierarchical clustering is divided into:
Divisive clustering is known as the top-down approach. We take a large cluster and start dividing it into two, three, four, or more clusters.
Agglomerative clustering is known as a bottom-up approach. Consider it as bringing things together.
Both of these approaches are as shown below:
Next, let us discuss how hierarchical clustering works.