Follow The Following Pseudo Code : Procedure 1: MIN(A, K, N, LOC) An Array A is in memory. This procedure finds the location LOC of the smallest element among A[K], A[K+1],...,A[N] Procedure 2: FUNCTION (A,N) What is the function of procedure 2? :crazy: :crazy: :crazy:
In selection sort min element is obtained in a list and placed at an appropriate position. After that except the min element the remaining list is employed in finding next minimum element...This process continues until the list is ordered.. Nice question pankaj..otherwise last few questions were matter of timing..Today i m late but i hope i gave right ans...