Sparse languages are calledsparse because over some finite alphabet there are a total of strings of lengthn, and if a language only contains polynomially many of these, then the proportion of strings of lengthn that it contains rapidly goes to zero asn grows. Allunary languages are sparse. An example of a nontrivial sparse language is the set of binary strings containing exactlyk 1 bits for some fixedk; for eachn, there are only strings in the language, which is bounded bynk.
Fortune showed in 1979 that if any sparse language isco-NP-complete, thenP =NP.[2] Mahaney used this to show in 1982 that if any sparse language isNP-complete, thenP =NP (this isMahaney's theorem).[3] A simpler proof of this based on left-sets was given by Ogihara and Watanabe in 1991.[4] Mahaney's argument does not actually require the sparse language to be in NP (because the existence of an NP-hard sparse set implies the existence of an NP-complete sparse set), so there is a sparseNP-hard set if and only ifP =NP.[5]
Further,E ≠NE if and only if there exist sparse languages inNP that are not inP.[6]
There is aTuring reduction (as opposed to theKarp reduction from Mahaney's theorem) from anNP-complete language to a sparse language if and only if.
In 1999, Jin-Yi Cai and D. Sivakumar, building on work by Ogihara, showed that if there exists a sparseP-complete problem, thenL =P.[7]
^S. Fortune. A note on sparse complete sets.SIAM Journal on Computing, volume 8, issue 3, pp.431–433. 1979.
^S. R. Mahaney. Sparse complete sets for NP: Solution of a conjecture by Berman and Hartmanis.Journal of Computer and System Sciences 25:130–143. 1982.
^M. Ogiwara and O. Watanabe. On polynomial time bounded truth-table reducibility of NP sets to sparse sets.SIAM Journal on Computing volume 20, pp.471–483. 1991.
^Balcázar, José Luis; Díaz, Josep; Gabarró, Joaquim (1990).Structural Complexity II.Springer. pp. 130–131.ISBN3-540-52079-1.
^Juris Hartmanis, Neil Immerman, Vivian Sewelson. Sparse Sets in NP-P: EXPTIME versus NEXPTIME.Information and Control, volume 65, issue 2/3, pp.158–181. 1985.At ACM Digital Library
^Jin-Yi Cai and D. Sivakumar. Sparse hard sets for P: resolution of a conjecture of Hartmanis.Journal of Computer and System Sciences, volume 58, issue 2, pp.280–296. 1999.ISSN0022-0000.At Citeseer