Question: Complete the functions find smallest and update matrix i . Code includes findSmallest ( ) function which takes in a distance matrix and identifies the

Complete the functions find smallest and update matrix
i. Code includes findSmallest() function which takes in a distance matrix
and identifies the row and column of the smallest entry chooses
randomly if multiple ones are equal.
ii. Code includes updateMatrix() function which takes in a distance matrix
row and column and removes those species from the matrix replacing
them with the average distances to all the remaining points.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!