English

Faster Small-Constant-Periodic Merging Networks

Data Structures and Algorithms 2014-09-08 v1

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 12logN12\log N to 6logN6\log N, compared to the first construction given by Kuty{\l}owski, Lory\'s 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 (logN)(\log N)-periodic sorter, and the analysis from that paper to any period p4p \ge 4. For p4p\ge 4 our pp-periodic network merges two sorted sequences of length N/2N/2 in at most 2pp2logN+pp8p2\frac{2p}{p-2}\log N + p\frac{p-8}{p-2} rounds. The previous bound given by Kuty{\l}owski at al. was 2.25pp2.42logN\frac{2.25p}{p-2.42}\log N. That means, for example, that our 44-periodic merging networks work in time upper-bounded by 4logN4\log N and our 66-periodic ones in time upper-bounded by 3logN3\log N compared to the corresponding 5.67logN5.67\log N and 3.8logN3.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 p4p \ge 4. Moreover, our networks are also periodic sorters and tests on random permutations show that average sorting time is closed to log2N\log^2 N.

Keywords

Cite

@article{arxiv.1409.1749,
  title  = {Faster Small-Constant-Periodic Merging Networks},
  author = {Marek Piotrów},
  journal= {arXiv preprint arXiv:1409.1749},
  year   = {2014}
}

Comments

arXiv admin note: substantial text overlap with arXiv:1401.0396

R2 v1 2026-06-22T05:49:28.990Z