Sorting Networks on Restricted Topologies
The sorting number of a graph with n vertices is the minimum depth of a sorting network with n inputs and n outputs that uses only the edges of the graph to perform comparisons. Many known results on sorting networks can be stated in terms of sorting numbers of different classes of graphs. In this paper we show the following general results about the sorting number of graphs.
Any n-vertex graph that contains a simple path of length d has a sorting network of depth \(O(n \log (n/d))\).
Any n-vertex graph with maximal degree \(\varDelta \) has a sorting network of depth \(O(\varDelta n)\).
We also provide several results relating the sorting number of a graph with its routing number, size of its maximum matching, and other well known graph properties. Additionally, we give some new bounds on the sorting number for some typical graphs.
KeywordsSorting networks Matchings in graphs Routing via matchings
- 1.Ajtai, M., Komlós, J., Szemerédi, E.: An \(O(n log n)\) sorting network. In: Proceedings of the Fifteenth Annual ACM Symposium on Theory of Computing, pp. 1–9. ACM (1983)Google Scholar
- 5.Batcher, K.E.: Sorting networks and their applications. In: Proceedings of the 30 April–2 May 1968, Spring Joint Computer Conference, pp. 307–314. ACM (1968)Google Scholar
- 11.Schnorr, C.P., Shamir, A.: An optimal sorting algorithm for mesh connected computers. In: Proceedings of the Eighteenth Annual ACM Symposium on Theory of Computing, pp. 255–263. ACM (1986)Google Scholar