Submitted:
11 April 2024
Posted:
12 April 2024
You are already at the latest version
Abstract
Keywords:
MSC: 68Q15; 68Q17; 68Q25
1. Introduction
2. Materials and Methods
- Membership in NP: A solution to an -complete problem can be verified in polynomial time. This means that there is an algorithm that can quickly check whether a proposed solution is correct [3].
- Reduction to NP-complete problems: Any problem in can be reduced to an -complete problem in polynomial time. This means that any -problem can be transformed into an -complete problem by making a small number of changes [3].
- Boolean satisfiability problem (SAT): Given a Boolean formula, determine whether there is an assignment of truth values to the variables that makes the formula true [4].
- K-CLOSURE problem: Given a directed graph (V is the set of vertices and A is the set of edges) and positive integer k, determine whether there is a set of at most k vertices such that for all either or (see reference [Queyranne, 1976] from the Johnson and Garey book) [4]. Note that in this problem the phrase “either or ” does mean the same as ( and ) or ( and ) since the logical implication of the words “either ... or ...” indicates that exactly one of the following statements can be true.
3. Results
- Boolean variables: ;
- Boolean connectives: Any Boolean function with one or two inputs and one output, such as ∧(AND), ∨(OR), ⇁(NOT), ⇒(implication), ⇔(if and only if);
- and parentheses.
-
Variables:
- Create a variable for each vertex v in the original graph G. Denote this variable as v itself.
- For each edge in G, introduce two new variables denoted by and .
-
Clauses:
-
For each edge in G, construct three clauses using the new variables:
- -
- : This enforces that either vertex u is true or the new variable is true (XOR).
- -
- : This enforces that either the new variable is true or vertex v is true (XOR).
- -
- : This guarantees that and have different truth values. Note that is not used elsewhere, so it only enforces there is exactly one true variable per each edge over the new variables and .
-
- The first two clauses for each edge ensures that both variables u and v for an edge have the same truth value. This is because they represent the "state" of the edge (both in the closure or both outside). By definition, a k-vertex closure cannot have any outgoing edges pointing to vertices outside the closure. Therefore, no edge can exist where one vertex belongs to the solution and the other does not.
- The third clause for each edge together ensure that exactly one of or is true in a satisfying truth assignment. Take into account this condition enforces always a true variable for each edge for every possible satisfying truth assignment.
-
A satisfying truth assignment in the formula corresponds to a valid closure of at most k vertices in the original graph G if:
- -
- Vertices assigned true represent the vertices in the closure .
- -
- New variable assigned true represents that the corresponding edge has both endpoints outside the closure.
- -
- New variable assigned true indicates that the corresponding edge has both endpoints within the closure.
- The clauses enforce that a satisfying truth assignment must have consistent values for a vertex and its corresponding edge variables.
- The k-vertex closure property translates to k original variables (vertices) being true in the satisfying truth assignment, along with exactly one true variable from the pair of new variables and per each edge depending on the specific closure.
- There exists a satisfying truth assignment for the formula with at most true variables if and only if there exists a closure of at most k vertices in the original graph. ( represents the number of edges in the graph).
- Since is known to be -complete, this shows that is also -complete.
-
Graph Construction:
- Each vertex in the original graph represents a variable in the formula.
- Edges are created between variables based on the structure of the 2CNF clauses: If two variables appear in a clause (e.g., ), then an edge is drawn between the corresponding vertices in the graph.
-
and the Graph:
- A truth assignment in where at most k variables are true directly translates to a set of at most k vertices in the constructed graph where true variables correspond to the vertices included in the set.
-
The properties of clauses ensure that:
- -
- Vertex Cover: The chosen vertices cover all the edges (due to the structure of the clauses and the way edges are formed). This satisfies the vertex cover condition.
- -
- Independent Set: The chosen vertices don’t have any edges connecting them (because the variables are connected in the graph, and only one variable from each clause can be true). This satisfies the independent set condition.
4. Discussion
5. Conclusions
References
- Cook, S.A. The P versus NP Problem, Clay Mathematics Institute. 2022. Available online: https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf (accessed on 27 March 2024).
- Fortnow, L. The status of the P versus NP problem. Communications of the ACM 2009, 52, 78–86. [Google Scholar] [CrossRef]
- Cormen, T.H.; Leiserson, C.E.; Rivest, R.L.; Stein, C. Introduction to Algorithms, 3rd ed.; The MIT Press, 2009. [Google Scholar]
- Garey, M.R.; Johnson, D.S. Computers and Intractability: A Guide to the Theory of NP-Completeness, 1 ed.; W. H. Freeman and Company: San Francisco, 1979. [Google Scholar]
- Vega, F. ALMA| MWX2SAT Solver. 2024. Available online: https://github.com/frankvegadelgado/alma (accessed on 27 March 2024).
Short Biography of Authors
![]() |
Frank Vega is essentially a Back-End Programmer and Mathematical Hobbyist who graduated in Computer Science in 2007. In May 2022, The Ramanujan Journal accepted his mathematical article about the Riemann hypothesis. The article “Robin’s criterion on divisibility” makes several significant contributions to the field of number theory. It provides a proof of the Robin inequality for a large class of integers, and it suggests new directions for research in the area of analytic number theory. |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
