📄 twowaymrgsrt.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD W3 HTML 2.0//EN">
<HTML lang="en-US">
<HEAD>
<TITLE>two-way merge sort</TITLE>
<META name="description"
content="Definition of two-way merge sort,
possibly with links to more information and implementations.">
<META name="keywords" content="two-way merge sort">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>two-way merge sort</H1>
<P>
(algorithm)
<P>
<strong>Definition:</strong>
A <a href="kwaymergsort.html" tppabs="http://hissa.nist.gov/dads/HTML/kwaymergsort.html"><em>k-way merge sort</em></a> which sorts a data stream using repeated merges. It distributes the input into two streams by repeatedly reading a block of input which fits in memory, a <em>run</em>, sorting it, then writing it to the next stream. It merges runs from the two streams into an output stream. It then repeatedly distributes the runs in the output stream to the two streams and merges them until there is a single sorted output.
<P><strong>See also</strong>
<a href="balanc2wayms.html" tppabs="http://hissa.nist.gov/dads/HTML/balanc2wayms.html"><em>balanced two-way merge sort</em></a>, <a href="mergesort.html" tppabs="http://hissa.nist.gov/dads/HTML/mergesort.html"><em>merge sort</em></a>, <a href="nonitermerge.html" tppabs="http://hissa.nist.gov/dads/HTML/nonitermerge.html"><em>noniterative merge</em></a>, <a href="balancmrgsrt.html" tppabs="http://hissa.nist.gov/dads/HTML/balancmrgsrt.html"><em>balanced merge sort</em></a>, <a href="nonbalncmsrt.html" tppabs="http://hissa.nist.gov/dads/HTML/nonbalncmsrt.html"><em>nonbalanced merge sort</em></a>.
<P><em>Note:
This is an <a href="externalsort.html" tppabs="http://hissa.nist.gov/dads/HTML/externalsort.html"><em>external sort</em></a>.</em>
<P>Author: <a href="terms.html#authorASK" tppabs="http://hissa.nist.gov/dads/terms.html#authorASK">ASK</a>
<H2>More information</H2>
<A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://csc208.csudh.edu/makinde/csc353/ch6.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://csc208.csudh.edu/makinde/csc353/ch6.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://csc208.csudh.edu/makinde/csc353/ch6.html">2-way, balanced, <em>k</em>-way, and polyphase merge sorts</a>
<hr>
Go to the
<A HREF="terms.html" tppabs="http://hissa.nist.gov/dads/terms.html">Algorithms, Data Structures, and Problems</A>
home page.
<hr>
If you have suggestions, corrections, or comments, please get in touch
with
<a href="javascript:if(confirm('http://hissa.nist.gov/~black/black.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://hissa.nist.gov/~black/black.html'" tppabs="http://hissa.nist.gov/~black/black.html">Paul E. Black</a>
(<a href="mailto:paul.black@nist.gov">paul.black@nist.gov</a>).
<p>
Entry modified Thu May 27 11:12:46 1999.<BR>
HTML page formatted Wed Dec 22 09:36:48 1999.
<P>
This page's URL is
<A href="twowaymrgsrt.html" tppabs="http://hissa.nist.gov/dads/HTML/twowaymrgsrt.html">http://hissa.nist.gov/dads/HTML/twowaymrgsrt.html</A>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -