1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Findout The Function In The Pseudo Code

Discussion in '$1 Daily Competition' started by pankaj.sea, Jan 26, 2010.

  1. pankaj.sea

    pankaj.sea New Member

    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:
    What is the function of procedure 2?
    :crazy: :crazy: :crazy:
  2. shabbir

    shabbir Administrator Staff Member

  3. techgeek.in

    techgeek.in New Member

    No doubt it is a pseudo code of "selection sort"
  4. techgeek.in

    techgeek.in New Member

    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...
  5. pankaj.sea

    pankaj.sea New Member

    yes! u r right!

Share This Page