Use the similarity matrix in table below to perform single a…

Use the similarity matrix in table below to perform single and complete link hierarchical clustering. Show your result by showing a dendrogram, which clearly shows the order in which the points are merged. The dendrogram can be explained by text (using parentheses for grouping as shown).For example cluster X combines with cluster Y, creates the (X, Y) cluster combination in the first level of dendrogram, and this combination will be combined by cluster Z in the next level of dendrogram, that is ((X, Y), Z) using parentheses for grouping as shown and so on.P1P2P3P4P5P11.000.100.410.550.35P20.101.000.640.470.98P30.410.641.000.440.85P40.550.470.441.000.76P50.350.980.850.761.00