<prompt> Algoritmiin pseudocode keessatti kan mala saaguu filannoo fayyadamuun tarree lakkoofsota saagu uumi.Array: 3, 1, 4, 7, 8, 2 .  <response>: Kunoo koodii sobaa kan mala saaguu filannoo fayyadamuun tarree lakkoofsota saagu: Adeemsa selection_sortTarree: tarree wantoota saagamuu dandaan JALQABA Index_min, yeroof labsi: lakkoofsa guutuu i 0 irraa gara Dheerinni tarree - 2 index_min i j i irraa 1 gara Dheerinni Tarree - 1 Yoo Arrayj Arrayindex_min, Sana booda index_min j Xumura Yoo Xumura Yeroodhaaf Arrayi Arrayi Arrayindex_min Arrayindex_min yeroof Xumura Fakkeenyaaf END : Array: 3, 1, 4, 7, 8, 2 Dabarsa jalqabaa booda: 1, 3, 4, 7, 8, 2 Dabarsa lammaffaa booda: 1, 2, 4, 7, 8, 3. Dabarsa sadaffaa booda: 1, 2, 3, 7, 8, 4 Dabarsa afraffaan booda: 1, 2, 3, 4, 8, 7 Dabarsa shanaffaa booda: 1, 2, 3, 4, 7, 8 Erga hunduu darbee booda: 1, 2, 3, 4, 7, 8. 