![]() |
Findout The Function In The Pseudo Code
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] Quote:
FUNCTION (A,N) Quote:
:crazy: :crazy: :crazy: |
Re: Findout The Function In The Pseudo Code
Approved.
|
Re: Findout The Function In The Pseudo Code
Quote:
No doubt it is a pseudo code of "selection sort" |
Re: Findout The Function In The Pseudo Code
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... |
Re: Findout The Function In The Pseudo Code
yes! u r right!
|
| All times are GMT +5.5. The time now is 04:01. |