Faster Small-Constant-Periodic Merging Networks

preprint2014arXivOpen access

Abstract

We consider the problem of merging two sorted sequences on a comparator network that is used repeatedly, that is, if the output is not sorted, the network is applied again using the output as input. The challenging task is to construct such networks of small depth (called a period in this context). In our previous paper entitled Faster 3-Periodic Merging Network we reduced twice the time of merging on 33-periodic networks, i.e. from 12log⁡N12\log N to 6log⁡N6\log N, compared to the first construction given by Kutyłowski, Loryś and Oesterdikhoff. Note that merging on 22-periodic networks require linear time. In this paper we extend our construction, which is based on Canfield and Williamson (log⁡N)(\log N)-periodic sorter, and the analysis from that paper to any period p≥4p \ge 4. For p≥4p\ge 4 our pp-periodic network merges two sorted sequences of length N/2N/2 in at most 2pp−2log⁡N+pp−8p−2\frac{2p}{p-2}\log N + p\frac{p-8}{p-2} rounds. The previous bound given by Kutyłowski at al. was 2.25pp−2.42log⁡N\frac{2.25p}{p-2.42}\log N. That means, for example, that our 44-periodic merging networks work in time upper-bounded by 4log⁡N4\log N and our 66-periodic ones in time upper-bounded by 3log⁡N3\log N compared to the corresponding 5.67log⁡N5.67\log N and 3.8log⁡N3.8\log N previous bounds. Our construction is regular and follows the same periodification schema, whereas some additional techniques were used previously to tune the construction for p≥4p \ge 4. Moreover, our networks are also periodic sorters and tests on random permutations show that average sorting time is closed to log⁡2N\log^2 N.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.