Click or drag to resize
Multiway Class
The Multiway class provides a client for reading in several sorted text files and merging them together into a single sorted text stream. This implementation uses a to perform the multiway merge.
Inheritance Hierarchy
SystemObject
  Algs4NetMultiway

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

The Multiway type exposes the following members.

Methods
  NameDescription
Public methodStatic memberMainTest
Reads sorted text files specified as command-line arguments; merges them together into a sorted output; and writes the results to standard output. Note: this client does not check that the input files are sorted.
Public methodStatic memberMerge
merge together the sorted input streams and write the sorted result to standard output.
Top
Remarks

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

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

See Also