1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

    Joined:
    Apr 6, 2009
    Messages:
    461
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    Web Developer
    Location:
    Kolkata
    Home Page:
    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:
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
  3. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    17
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:

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

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    17
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    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

    Joined:
    Apr 6, 2009
    Messages:
    461
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    Web Developer
    Location:
    Kolkata
    Home Page:
    yes! u r right!
     

Share This Page