SELECTION SORT

CLASS 9 & 10 · COMPUTER SCIENCE

Selection Sort2910143713scan 01234 for i in range(n-1): m = index of min in a[i:] swap a[i], a[m]# sorted part grows from the left
STEP 1
prostudypk.com · free MCQ tests
REMEMBER
Find min → swap
Free test → prostudypk.com
CLASS 9 & 10 · COMPUTER SCIENCE

How does a computer sort 29, 10, 14, 37, 13?

Selection sort in 25 seconds

Watch ↓
‹ Labs Next ›