<img alt=”2. Consider the following program that computes the smallest distance between 2 sets of points. struct Point float x, y; float compute_min distance (Point s1[], Point s2[], int size) float minMAX_DIST; int i; for(i – 0; i < size; ++i) float xdist- s1[i].x – s2[i] .x; float y_dist s1ily s2[i].y: float distx_dist * x dist + y.dist * y dist; if(dist

2. Consider the following program that computes the smallest distance between 2 sets of points. struct Point float x, y; float compute_min distance (Point s1[], Point s2[], int size) float minMAX_DIST; int i; for(i – 0; i



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *