Edodovivmagarwal
Computer Science - Algorithms - Selection sort - Selection Sort Drill
Log in

Preparing your experience...

Loading scripts and resources

Comments (0)

0/5000

Comments are reviewed before appearing publicly.

About this Experience

Computer Science - Algorithms - Selection sort - Selection Sort Drill

vivmagarwal
vivmagarwalJan 29, 2026

Description

8 questions. Q1: Array [3,1,4,1,5]. After pass 1 (selecting minimum), array is? → [1,3,4,1,5] (swap 3 and first 1). Q2: How many total comparisons for array of size 6? → 5+4+3+2+1 = 15. Q3: Selection sort on already-sorted array [1,2,3,4,5]. Time complexity? → Still O(n²) - always scans everything!

Details

Computer ScienceAlgorithmsClass 10, Class 10, Grade 10, Stage 10, MYP Year 5

Engagement

10

Likes

0

Remixes

0

Comments