HSCS.100 Tracing an Algorithm
0%
Skill Level🔴 Hard
00:00
Progress to Next Level25% to Medium
EasyMediumHardMastery100%

Trace the first three selections in a merge algorithm. Algorithm: 1. left <- [1, 4] 2. right <- [2, 3] 3. i <- 0; j <- 0; result <- [] 4. REPEAT 3 TIMES 5. IF left[i] < right[j] THEN 6. APPEND left[i] TO result; i <- i + 1 7. ELSE 8. APPEND right[j] TO result; j <- j + 1 9. DISPLAY result, i, j Which option correctly traces the variable values and output after each marked step?