What is counting sort and when should it be preferred over comparison-based sorts?
-
A
A sort using element comparisons; always preferred
-
B
A non-comparison sort using element frequency counts; preferred when the value range k is small
-
C
A sort that counts swaps to measure performance
-
D
A parallel sort using multiple CPU cores