Question: Assume the Counting sort algorithm is being used on the sequence of numbers below.After the count array has been updated tpo hold the number of
Assume the Counting sort algorithm is being used on the sequence of numbers below.After the count array has been updated tpo hold the number of count of values<=i, what are its contents?
[5,1,7,9,3,4]
A) [X,1,2,2,3,4,4,5,5,6]
B) [X,1,1,2,3,4,4,5,5,5]
C) [X,1,1,2,2,3,4,5,5,6]
D) [X,1,1,2,3,4,4,5,5,6]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
