Preprint
Article

Note for the P versus NP problem (II)

Altmetrics

Downloads

266

Views

328

Comments

0

This version is not peer-reviewed

Submitted:

29 September 2024

Posted:

30 September 2024

Read the latest preprint version here

Alerts
Abstract
The P versus NP problem is a cornerstone of theoretical computer science, asking whether problems that are easy to check are also easy to solve. "Easy" here means solvable in polynomial time, where the computation time grows proportionally to the input size. While this problem's origins can be traced to John Nash's 1955 letter, its formalization is credited to Stephen Cook and Leonid Levin. Despite decades of research, a definitive answer remains elusive. Central to this question is the concept of NP-completeness. If even one NP-complete problem could be solved efficiently, it would imply that all problems in NP could be solved efficiently, proving P equals NP. This research proposes that EXACT CLOSURE, a notoriously difficult NP-complete problem, can be solved efficiently, thereby potentially establishing the equivalence of P and NP. This work is an expansion and refinement of the article "Note for the P versus NP problem", published in IPI Letters.
Keywords: 
Subject: Computer Science and Mathematics  -   Data Structures, Algorithms and Complexity

MSC:  Primary 68Q15; Secondary 68Q17; 68Q25

1. Introduction

The P versus N P problem is a fundamental question in computer science that asks whether problems whose solutions can be easily checked can also be easily solved [1]. “Easily” here means solvable in polynomial time, where the computation time grows proportionally to the input size [1,2]. Problems solvable in polynomial time belong to the class P, while N P includes problems whose solutions can be verified efficiently given a suitable “certificate” [2].
The central question is whether P and N P are the same. Most researchers believe that P is a strict subset of NP, meaning that some problems are inherently harder to solve than to verify. Resolving this problem has profound implications for fields like cryptography and artificial intelligence [3,4]. The P versus N P problem is widely considered one of the most challenging open questions in computer science. Techniques like relativization and natural proofs have yielded inconclusive results, suggesting the problem’s difficulty [5,6]. Similar problems, such as the V P versus V N P problem in algebraic complexity, remain unsolved [7].
Resolving the P versus N P problem is often described as a “holy grail” of computer science. A positive resolution could revolutionize our understanding of computation and potentially lead to groundbreaking algorithms for critical problems. The problem is listed among the Millennium Prize Problems. While recent years have seen progress in related areas, such as finding efficient solutions to specific instances of N P -complete problems, the core question of P versus N P remains unanswered [8]. A polynomial-time algorithm for any N P -complete problem would directly imply P equals N P [9]. Our work focuses on presenting such an algorithm for a well-known N P -complete problem.

2. Background and Ancillary Results

N P -complete problems are the Everest of computational challenges. Despite the ease of verifying proposed solutions with a succinct certificate, finding these solutions efficiently remains an elusive goal. A problem is classified as N P -complete if it satisfies two stringent criteria within computational complexity theory:
  • Efficient Verifiability: Solutions can be quickly checked using a concise proof [9].
  • Universal Hardness: Every problem in the class NP can be reduced to this problem without significant computational overhead [9].
The implications of finding an efficient algorithm for a single N P -complete problem are profound. Such a breakthrough would serve as a master key, unlocking efficient solutions for all problems in NP, with transformative consequences for fields like cryptography, artificial intelligence, and planning [3,4].
Illustrative examples of N P -complete problems include:
  • Boolean satisfiability (SAT): Given a logical expression, determine if there exists an assignment of truth values to its variables that makes the entire expression true [10].
  • Exact k-Coloring Problem: Given a graph G and a positive integer k, determine if there exists a valid coloring of G such that exactly k vertices have the same color and no adjacent vertices have the same color [11].
The provided examples represent a small subset of the extensively studied N P -complete problems relevant to our current work. A bipartite graph, denoted as B = ( U , V , E ) , is an undirected graph characterized by the existence of two node sets U , V and edges in E that only connect nodes from opposite sets.
Definition 1.
Exact Bipartite Expansion
INSTANCE: An n-vertex bipartite graph B = ( U , V , E ) and positive integers b and c.
ANSWER: A b-subset of U with exactly c neighbors in W.
REMARKS: This functional problem belongs to N P -hard [12].
An independent set V is a subset of vertices in a graph G where no two vertices in the set are connected by an edge. In addition, a vertex cover (sometimes called a node cover) of a graph G is a subset of its vertices, denoted by V , such that every edge in G has at least one endpoint in V .
Definition 2.
Exact Independent Vertex Cover
INSTANCE: An undirected graph G = ( V , E ) and a positive integer k.
QUESTION: Is there set V of exactly k vertices such that V is both a vertex cover and an independent set in G?
REMARKS: Solving the Exact Independent Vertex Cover problem is akin to determining a 2-coloring of a bipartite graph such that one of the partitions contains exactly k vertices [11]. This task can be accomplished in polynomial time, given the efficient solvability of the 2-coloring problem in bipartite graphs [11].
Formally, an instance of Boolean satisfiability problem (SAT) is a Boolean formula ϕ which is composed of:
  • Boolean variables: x 1 , x 2 , , x n ;
  • 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.
A truth assignment for a Boolean formula ϕ is a set of values for the variables in ϕ . A satisfying truth assignment is a truth assignment that causes ϕ to be evaluated as true. A Boolean formula with a satisfying truth assignment is satisfiable. The problem S A T asks whether a given Boolean formula is satisfiable [10].
We define a C N F Boolean formula using the following terms: A literal in a Boolean formula is an occurrence of a variable or its negation [9]. A Boolean formula is in conjunctive normal form, or C N F , if it is expressed as an AND of clauses, each of which is the OR of one or more literals [9]. A Boolean formula is in 2-conjunctive normal form or 2 C N F , if each clause has exactly two distinct literals [9].
For example, the Boolean formula:
( x 1 ¬ x 2 ) ( x 3 x 2 ) ( ¬ x 1 ¬ x 3 )
is in 2 C N F . The first of its three clauses is ( x 1 ¬ x 2 ) , which contains the two literals x 1 and ¬ x 2 . We define the following problem:
Definition 3.
Exact Monotone Xor 2-satisfiability problem (EMX2SAT)
INSTANCE: An n-variable 2 C N F formula with monotone clauses (meaning the variables are never negated) using logic operators ⊕ (instead of using the operator ∨) and a positive integer k.
QUESTION: Is there exists a satisfying truth assignment in which exactly k of the variables are true?
Finally, we introduce the last problem:
Definition 4.
EXACT CLOSURE
INSTANCE: A directed graph G = ( V , A ) and a positive integer k.
QUESTION: Is there set V of exactly k vertices such that for all ( u , v ) A either ( u V and v V ) or ( u V and v V )?
REMARKS: We define a k-vertex set V satisfying these conditions as a “closure”.
By presenting the N P -completeness and an efficient solution to EXACT CLOSURE, we would establish a proof that P equals N P .

3. Main Result

This is a known result.
Theorem 1.
EXACT   CLOSURE NP complete .
Proof. 
We can build an equivalent EXACT CLOSURE instance for any given n-vertex bipartite graph B = ( U , V , E ) of the Exact Bipartite Expansion problem: To reduce the problem Exact Bipartite Expansion to EXACT CLOSURE, construct a directed graph G with two levels by duplicating each vertex in U just n 2 times and directing all edges from W to U. Given such a directed graph G, then ask for a closure set with exactly k = b · n 2 + c vertices. Since Exact Bipartite Expansion is N P -hard, and we have shown a polynomial-time reduction from the problem Exact Bipartite Expansion to EXACT CLOSURE, it follows that the functional variant of EXACT CLOSURE is also N P -hard. Consequently, the decision variant of EXACT CLOSURE is N P -complete. □
This is a main insight.
Theorem 2.
The problem EXACT CLOSURE can be reduced to E M X 2 S A T in polynomial time.
Proof. 
We can build an equivalent E M X 2 S A T instance for any given instance G = ( V , A ) of the EXACT CLOSURE problem:
1.
Variables:
  • Create a variable for each vertex v in the original graph G. Denote this variable as v itself.
  • For each edge ( u , v ) in G, introduce two new variables denoted by x u v and x v u .
2.
Clauses:
  • For each edge ( u , v ) in G, construct three clauses using the new variables:
    ( u x u v ) : This enforces that either vertex u is true or the new variable x u v is true (XOR).
    ( x u v v ) : This enforces that either the new variable x u v is true or vertex v is true (XOR).
    ( x v u x u v ) : This guarantees that x u v and x v u have different truth values. Note that x v u is not used elsewhere, so it only enforces there is exactly one true variable per each edge ( u , v ) over the new variables x u v and x v u .
  • Key Points about the Construction:
    • The first two clauses for each edge ( u , v ) 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 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 ( u , v ) together ensure that exactly one of x u v or x v u 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.
  • Mapping between CLOSURE solutions and EMX2SAT assignments:
    • A satisfying truth assignment in the E M X 2 S A T formula corresponds to a valid closure of exactly k vertices in the original graph G if:
      Vertices assigned true represent the vertices in the closure V .
      New variable x u v assigned true represents that the corresponding edge ( u , v ) has both endpoints outside the closure.
      New variable x v u assigned true indicates that the corresponding edge ( u , v ) has both endpoints within the closure.
  • Why this construction works:
    • The clauses enforce that a satisfying truth assignment must have consistent values for a vertex and its corresponding edge variables.
    • A 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 x u v and x v u per each edge depending on the specific closure.
  • Equivalence and Complexity:
    • There exists a satisfying truth assignment for the E M X 2 S A T formula with exactly k + A true variables if and only if there exists a closure of exactly k vertices in the original graph. ( A represents the number of edges in the graph).
    • Since EXACT CLOSURE is known to be N P -complete, this shows that E M X 2 S A T is also N P -complete.
In essence, the proof demonstrates that solving E M X 2 S A T is equivalent to finding a closure of exactly k vertices in the EXACT CLOSURE problem. This implies that E M X 2 S A T inherits the N P -completeness property from EXACT CLOSURE. □
This is the main theorem.
Theorem 3.
E M X 2 S A T P .
Proof. 
There is a connection between finding a satisfying truth assignment in E M X 2 S A T with exactly k true variables and finding a set of exactly k vertices that is both a vertex cover and an independent set in a specific graph construction.
Here’s a breakdown of the equivalence:
1.
Graph Construction:
  • Each vertex in the new graph represents a variable in the E M X 2 S A T formula.
  • Edges are created between variables based on the structure of the 2 C N F clauses: If two variables appear in a clause (e.g., ( x y ) ), then an edge is drawn between the corresponding vertices in the graph.
2.
E M X 2 S A T and the Graph:
  • A truth assignment in E M X 2 S A T where exactly k variables are true directly translates to a set of exactly k vertices in the constructed graph where true variables correspond to the vertices included in the set.
  • The properties of E M X 2 S A T 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.
Therefore, finding a satisfying truth assignment with exactly k true variables in E M X 2 S A T is indeed equivalent to finding a set of exactly k vertices that fulfills both vertex cover and independent set requirements in the corresponding graph. However, we know the problem of finding a set of exactly k vertices that is both a vertex cover and an independent set can be easily solved in polynomial time [11]. Consequently, the instances of the problem E M X 2 S A T can be solved in polynomial time as well. □
This is a key finding.
Theorem 4.
P = N P .
Proof. 
A polynomial-time solution to any N P -complete problem would establish the equivalence of P and N P [9]. Given that EXACT CLOSURE is an N P -complete problem, a polynomial-time solution for it, as presented here, would directly imply P equals N P . □

4. Conclusion

A definitive proof that P equals N P would fundamentally reshape our computational landscape. The implications of such a discovery are profound and far-reaching:
  • Algorithmic Revolution.
    The most immediate impact would be a dramatic acceleration of problem-solving capabilities. Complex challenges currently deemed intractable, such as protein folding, logistics optimization, and certain cryptographic problems, could become efficiently solvable [3]. This breakthrough would revolutionize fields from medicine to cybersecurity. Moreover, everyday optimization tasks, from scheduling to financial modeling, would benefit from exponentially faster algorithms, leading to improved efficiency and decision-making across industries [3].
  • Scientific Advancements.
    Scientific research would undergo a paradigm shift. Complex simulations in fields like physics, chemistry, and biology could be executed at unprecedented speeds, accelerating discoveries in materials science, drug development, and climate modeling [3]. The ability to efficiently analyze massive datasets would provide unparalleled insights in social sciences, economics, and healthcare, unlocking hidden patterns and correlations [3].
  • Technological Transformation.
    Artificial intelligence would be profoundly impacted. The development of more powerful AI algorithms would be significantly accelerated, leading to breakthroughs in machine learning, natural language processing, and robotics [8]. While the cryptographic landscape would face challenges, it would also present opportunities to develop new, provably secure encryption methods [8].
  • Economic and Societal Benefits.
    The broader economic and societal implications are equally significant. A surge in innovation across various sectors would be fueled by the ability to efficiently solve complex problems. Resource optimization, from energy to transportation, would become more feasible, contributing to a sustainable future [3].
In conclusion, a proof of P = N P would usher in a new era of computational power with transformative effects on science, technology, and society. While challenges and uncertainties exist, the potential benefits are immense, making this a compelling area of continued research.

Acknowledgments

Many thanks to Sergi Simon, Jorge Félix and Melvin Vopson for their support.

References

  1. Cook, S.A. The P versus NP Problem, Clay Mathematics Institute. 2024. Available online: https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf (accessed on 26 September 2024).
  2. Sudan, M. The P vs. NP problem. 2024. Available online: http://people.csail.mit.edu/madhu/papers/2010/pnp.pdf (accessed on 26 September 2024).
  3. Fortnow, L. The status of the P versus NP problem. Communications of the ACM 2009, 52, 78–86. [Google Scholar] [CrossRef]
  4. Aaronson, S. P=?NP. Open Problems in Mathematics 2016, 1–122. [Google Scholar] [CrossRef]
  5. Baker, T.; Gill, J.; Solovay, R. Relativizations of the P=? NP Question. SIAM Journal on computing 1975, 4, 431–442. [Google Scholar] [CrossRef]
  6. Razborov, A.A.; Rudich, S. Natural Proofs. Journal of Computer and System Sciences 1997, 1, 24–35. [Google Scholar] [CrossRef]
  7. Wigderson, A. Mathematics and Computation: A Theory Revolutionizing Technology and Science; Princeton University Press, 2019.
  8. Fortnow, L. Fifty Years of P vs. NP and the Possibility of the Impossible. Communications of the ACM 2022, 65, 76–85. [Google Scholar] [CrossRef]
  9. Cormen, T.H.; Leiserson, C.E.; Rivest, R.L.; Stein, C. Introduction to Algorithms, 3rd ed.; The MIT Press, 2009.
  10. Garey, M.R.; Johnson, D.S. Computers and Intractability: A Guide to the Theory of NP-Completeness, 1 ed.; San Francisco: W. H. Freeman and Company, 1979.
  11. Diestel, R. Graph Theory; Springer (print edition); Reinhard Diestel (eBooks), 2024.
  12. Khot, S.; Saket, R. Hardness of Bipartite Expansion. Embedded Systems and Applications, 2016.
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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated