SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

Liste

» Start this Course
(Practice similar questions for free)
Question:

Pseudokod za selection sort

Author: Ana Grgić



Answer:

- ulaz je nesortirana lista a1, , ......, an, izlaz je sortirana lista 1. za i = 1, 2, n-1 radi korake 2 - 5 2. min = i 3. za j = i, … , n radi korak 4 4. ako je aj < aminmin = j 5. zamijeni (ai, , amin)


0 / 5  (0 ratings)

1 answer(s) in total