Mathematical Foundation of a Functional Implementation of the CNF Algorithm
Metadatos
Mostrar el registro completo del ítemEditorial
MDPI
Materia
CNF SAT problem Classical logic Boolean algebra Horn clauses Reverse engineering Automatic theorems proving Algorithm implementation Functional programming Haskell
Fecha
2023-09-27Referencia bibliográfica
García-Olmedo, F.M.; García-Miranda, J.; González- Rodelas, P. Mathematical Foundation of a Functional Implementation of the CNF Algorithm. Algorithms 2023, 16, 459. [https://doi.org/10.3390/a16100459]
Resumen
The conjunctive normal form (CNF) algorithm is one of the best known and most widely used algorithms in classical logic and its applications. In its algebraic approach, it makes use in a loop of a certain well-defined operation related to the “distributivity” of logical disjunction versus conjunction. For those types of implementations, the loop iteration runs a comparison between formulas to decide when to stop. In this article, we explain how to pre-calculate the exact number of loop iterations, thus avoiding the work involved in the above-mentioned comparison. After that, it is possible to concatenate another loop focused now on the “associativity” of conjunction and disjunction. Also for that loop, we explain how to calculate the optimal number of rounds, so that the decisional comparison phase for stopping can be also avoided.