Click or drag to resize
MSD Class
The MSD class provides static methods for sorting an array of extended ASCII strings or integers using MSD radix sort.
Inheritance Hierarchy
SystemObject
  Algs4NetMSD

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class MSD

The MSD type exposes the following members.

Methods
  NameDescription
Public methodStatic memberMainTest
Reads in a sequence of extended ASCII strings from standard input; MSD radix sorts them and prints them to standard output in ascending order.
Public methodStatic memberSort(Int32)
Rearranges the array of 32-bit integers in ascending order. Currently assumes that the integers are nonnegative.
Public methodStatic memberSort(String)
Rearranges the array of extended ASCII strings in ascending order.
Top
Remarks

For additional documentation, see Section 5.1 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.

This class is a C# port from the original Java class MSD implementation by the respective authors.

See Also