On the Negation-Limited Circuit Complexity of Sorting and Inverting k-tonic Sequences

A binary sequence x1, ..., xn is called k-tonic if it contains at most k changes between 0 and 1, i.e., there are at most k indices such that xi ≠xi+1. A sequence ¬x1, ..., ¬xn is called an inversion of x1, ..., xn. In this paper, we investigate the size of a negation-limited circuit, which is a Boolean circuit with a limited number of NOT gates, that sorts or inverts k-tonic input sequences. We show that if k = O(1) and t = O(loglogn), a k-tonic sequence of length n can be sorted by a circuit with t NOT gates whose size is O((n logn)/ 2ct) where c > 0 is some constant. This generalizes a similar upper bound for merging by Amano, Maruoka and Tarui [4], which corresponds to the case k = 2. We also show that a k-tonic sequence of length n can be inverted by a circuit with O(k logn) NOT gates whose size is O(kn) and depth is O(k log2n). This reduces the size of the negation-limited inverter of size O(n logn) by Beals, Nishino and Tanaka [6] when k = o(logn). If k = O(1), our inverter has size O(n) and depth O(log2n) and contains O(logn) NOT gates. For this case, the size and the number of NOT gates are optimal up to a constant factor.

[1]  David E. Muller,et al.  Bounds to Complexities of Networks for Sorting and for Switching , 1975, JACM.

[2]  Stasys Jukna On the minimum number of negations leading to super-polynomial savings , 2004, Inf. Process. Lett..

[3]  Ingo Wegener,et al.  The complexity of Boolean functions , 1987 .

[4]  Jun Tarui,et al.  On the negation-limited circuit complexity of merging , 2003, Discret. Appl. Math..

[5]  Shao Chin Sung,et al.  An exponential gap with the removal of one negation gate , 2002, Inf. Process. Lett..

[6]  Ran Raz,et al.  Higher lower bounds on monotone size , 2000, STOC '00.

[7]  Akira Maruoka,et al.  A Superpolynomial Lower Bound for a Circuit Computing the Clique Function with at most (1/6)log log n Negation Gates , 2005, SIAM J. Comput..

[8]  Noga Alon,et al.  The monotone circuit complexity of boolean functions , 1987, Comb..

[9]  Edmund A. Lamagna,et al.  The Complexity of Monotone Networks for Certain Bilinear Forms, Routing Problems, Sorting, and Merging , 1979, IEEE Transactions on Computers.

[10]  A. A. Markov On the Inversion Complexity of a System of Functions , 1958, JACM.

[11]  Tetsuro Nishino,et al.  On the Complexity of Negation-Limited Boolean Networks , 1998, SIAM J. Comput..

[12]  Michael J. Fischer Hauptvortrag: The complexity of negation-limited networks - A brief survey , 1975, Automata Theory and Formal Languages.

[13]  Tetsuro Nishino,et al.  More on the complexity of negation-limited circuits , 1995, STOC '95.

[14]  János Komlós,et al.  An 0(n log n) sorting network , 1983, STOC.