DescriptionKth pair algorithm for finding median of matrix with sorted rows and columns.gif
English: This shows the Kth pair algorithm of Johnson and Mizoguchi. This is a matrix with sorted rows and sorted columns, i.e. going down or going right along any row always darkens that row. At each iteration, the algorithm finds the weighted median of row medians in yellow then compares it to the rest of the matrix. It proceeds by building upper boundaries in red and lower boundaries in blue by comparing the matrix to the candidate target in yellow. Once the remaining entries are few, a direct selection sort is possible
Date
Source
With some Python and Octave. Links to GPL'ed source code below
The Python code creates data which the Octave code then displays.
Licensing
I, the copyright holder of this work, hereby publish it under the following licenses:
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue
to share – to copy, distribute and transmit the work
to remix – to adapt the work
Under the following conditions:
attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
{{subst:Upload marker added by en.wp UW}} {{Information |Description = {{en|This shows the Kth pair algorithm of Johnson and Mizoguchi. This is a matrix with sorted rows and sorted columns, i.e. going down or going right along any row always darkens th...
File usage
The following pages on the English Wikipedia use this file (pages on other projects are not listed):