Q11. Show line by line analysis of following code and calculate its running time. min=∞ for i:=2 to n for j:=1 to i−1 if
Posted: Thu Jul 14, 2022 2:17 pm
Q11. Show line by line analysis of following code and calculate its running time. min=∞ for i:=2 to n for j:=1 to i−1 if (xj−xi)2+(yj−yi)2<min then min :=(xj−xi)2+(yj−yi)2 closest pair :=((xi,yi),(xj,yj))