Conti..
Fromthedistancematrix,wecanfinddistancebetweenpoints1and5issmallest,i,e.2.
Thenmerge{1,5}.
Nowrecalculatethedistance:
d(2,{1,5}}=max{d(2,1),d(2,5)}=max(4,3)=4
d(3,{1,5}}=max{d(3,1),d(3,5)}=max(7,6)=7
d(4,{1,5}}=max{d(4,1),d(4,5)}=max(4,5)=9
Fromthematrix,thedistancebetweenpoints3and4issmallest,i.e.2
Hencetheymergetogetherastoformacluster{3,4}.
Usingthecompletelink,wehavethedistancebetweendifferentpoints/clusterasfollows.
d({1,5},{3,4})=max{d({1,5},3),d({1,5},4)}=max(7,9)=9
d(2,{3,4})=max{d(2,3),d(2,4)}=max(3,5)=5
Thus,wecanupdatethedistancematrix,whererow2
correspondstopoint2,row1and3correspondsto
Cluster{1,5}and{3,4}asfollows.
7/19/2024 83Dr. Shivashankar, ISE, GAT
1,52 3 4
1,50 4 7 9
2 4 0 3 5
3 7 3 0 2
4 9 5 2 0
1,52 3,4
1,50 4 9
2 4 0 5
3,49 5 0