ASCII sort

Which sorting technique is most efficient for sorting a string that contains ASCII characters?

Quick sort Counting sort Merge sort Heap sort

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Since there are only 255 values possible for each entry, counting sort seems the simplest thing to do.

However, it is not clear why one would want to sort the characters in a string

Lets they you have various files in your folder with various names, numbers and characters. How would your operating system sort them them from top to bottom?

Beakal Tiliksew - 5 years, 2 months ago

Log in to reply

The OS sorts strings. Not characters in the strings

Agnishom Chattopadhyay - 5 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...