کد مقاله | کد نشریه | سال انتشار | مقاله انگلیسی | نسخه تمام متن |
---|---|---|---|---|
435174 | 689877 | 2016 | 21 صفحه PDF | دانلود رایگان |
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 Faster 3-Periodic Merging Network we reduced the time of merging on 3-periodic networks by a factor of 2, i.e. from 12logN12logN to 6logN6logN, compared to the first construction given by Kutyłowski, Loryś and Oesterdiekhoff. Note that merging on 2-periodic networks requires linear time. In this paper we extend our construction, and the analysis from that paper to any period p≥3p≥3. For p≥3p≥3 our p -periodic network merges two sorted sequences of length N/2N/2 in at most 2pp−2logN+pp−8p−2 rounds. The previous bound given by Kutyłowski et al. was 2.25pp−2.42logN for p≥4p≥4. That means, for example, that our 4-periodic merging networks work in time upper-bounded by 4logN4logN and our 6-periodic ones in time upper-bounded by 3logN3logN compared to the corresponding 5.67logN5.67logN and 3.8logN3.8logN previous bounds. Our construction is regular in the sense that it is parametrised with p and one can set p=3p=3 to get the family of 3-periodic merging networks, whereas the previous constructions given for p=3p=3 and p≥4p≥4 differ in their structures. Moreover, our networks are also periodic sorters, and tests on random permutations suggest that the average sorting time might be close to log2Nlog2N.
Journal: Theoretical Computer Science - Volume 640, 9 August 2016, Pages 20–40