Abstract
A Boolean function in disjunctive normal form (DNF) is aHorn function if each of its elementary conjunctions involves at most one complemented variable. Ageneralized Horn function is constructed from a Horn function by disjuncting a nested set of complemented variables to it. The satisfiability problem is solvable in polynomial time for both Horn and generalized Horn functions. A Boolean function in DNF is said to berenamable Horn if it is Horn after complementation of some variables. Succinct mathematical characterizations and linear-time algorithms for recognizing renamable Horn and generalized Horn functions are given in this paper. The algorithm for recognizing renamable Horn functions gives a new method to test 2-SAT. Some computational results are also given.
Similar content being viewed by others
References
V. Arvind and S. Biswas, AnO(n 2) algorithm for the satisfiability problem of a subset of prepositional sentences in CNF that includes all Horn sentences, Infor. Proc. Lett. 24 (1) (1987) 66–69.
B. Aspvall, Recognizing disguised NR(1) instance of the satisfiability problem, J. Algorithms 1 (1980) 97–103.
B. Aspvall, M.F. Plass and R.E. Tarjan, A linear-time algorithm for testing the truth of certain quantified Boolean formula, Infor. Proc. Lett. 8 (1979) 121–123.
C.E. Blair, R.G. Jeroslow and J.K. Lowe, Some results and experiments in programming techniques for prepositional logic, Comp. Oper. Res. 13 (1986) 633–645.
J.A. Bondy and U.S.R. Murty,Graph Theory with Applications (North-Holland, New York, 1976).
C. Chang and R. Lee,Symbolic Logic and Mechanical Theorem-Proving (Academic Press, New York, 1973).
S.A. Cook, The complexity of theorem proving procedures,Proc. 3rd Annual ACM Symp. on Theory of Computing, ACM, New York (1971) pp. 151–158.
D. Dobkin, R.J. Lipton and S. Reiss, Linear programming is log-space hard forP, Infor. Proc. Lett. 8 (1979) 96–97.
W.F. Dowling and J.H. Gallier, Linear-time algorithms for testing the satisfiability of prepositional Horn formulae, J. Logic Programming 1 (1984) 267–284.
J. Edmonds, Paths, trees, and flowers, Can. J. Math. 17 (1965) 449–467.
L. Fariñas del Cerro and M. Penttonen, A note on the complexity of the satisfiability of modal Horn clauses, J. Logic Programming 4 (1987) 1–10.
J.H. Gallier and S.T. Raatz, HORNLOG: A graph-based interpreter for general Horn clauses, J. Logic Programming 4 (1987) 119–115.
L. Henschen and L. Wos, Unit refutations and Horn sets, J. ACM 21 (1974) 590–605.
G. Lindhorst and F. Shahrokhi, On renaming a set of clauses as a Horn set, Infor. Proc. Lett. 30 (1989) 289–293.
H.R. Lewis, Renaming a set of clauses as a Horn set, J. ACM 25 (1978) 134–135.
F.M. Liang, Comprehensive examinations in computer science 1972–1978, Technical Report STAN-CS-78-677, Department of Computer Science, Stanford University (1978) pp. 93–94.
H. Mannila and K. Mehlhorn, A fast algorithm for renaming a set of clauses as a Horn set, Infor. Proc. Lett. 21 (1985) 269–272.
R.E. Tarjan, Depth first search and linear graph algorithms, SIAM J. Comput. 1 (1972) 146–160.
G.S. Tseitin, On the complexity of derivation in the prepositional calculus,Structures in Constructive Mathematics and Mathematical Logic, part 2 (translated from Russian) ed. A.O. Slisenko (Consultants Bureau, New York, 1968) pp. 115–125.
S. Yamasaki and S. Doshita, The satisfiability problem for the class consisting of Horn sentences and some non-Horn sentences in propositional logic, Infor. Control 59 (1983) 1–12.
Author information
Authors and Affiliations
Additional information
The authors were supported in part by the Office of Naval Research under University Research Initiative grant number N00014-86-K-0689. Chandru was also supported by NSF grant number DMC 88-07550.
The authors gratefully acknowledge the partial support of NSF (Grant DMS 89-06870) and AFOSR (Grant 89-0066 and 89-0512).
Rights and permissions
About this article
Cite this article
Chandru, V., Coullard, C.R., Hammer, P.L. et al. On renamable Horn and generalized Horn functions. Ann Math Artif Intell 1, 33–47 (1990). https://doi.org/10.1007/BF01531069
Published:
Issue Date:
DOI: https://doi.org/10.1007/BF01531069