Efficient algorithms for the inverse sorting problem with bound constraints under the l ∞ -norm and the Hamming distance
In this paper, we study the inverse sorting problem with bound constraints under the l ∞ -norm and the Hamming distance. For the problem under the l ∞ -norm, an O ( n log n ) -time algorithm is presented. For the problem under the Hamming distance, we first show that it has an Ω ( n log n ) -time lo...
Saved in:
Published in | Journal of computer and system sciences Vol. 75; no. 8; pp. 451 - 464 |
---|---|
Main Authors | , , , |
Format | Journal Article |
Language | English |
Published |
Elsevier Inc
01.12.2009
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | In this paper, we study the inverse sorting problem with bound constraints under the
l
∞
-norm and the Hamming distance. For the problem under the
l
∞
-norm, an
O
(
n
log
n
)
-time algorithm is presented. For the problem under the Hamming distance, we first show that it has an
Ω
(
n
log
n
)
-time lower bound in the comparison model; and then, we present an
O
(
n
log
n
)
-time algorithm. Both of the presented algorithms improve the previous upper bounds from
O
(
n
2
)
. |
---|---|
ISSN: | 0022-0000 1090-2724 |
DOI: | 10.1016/j.jcss.2009.04.005 |