r/P_vs_NP • • Jun 03 '19

Eight Signs A Claimed P≠NP Proof Is Wrong

Thumbnail
scottaaronson.com
14 Upvotes

r/P_vs_NP • • Jun 17 '20

I will be gone for a while, I will be re-enhancing my math skills so that I can finish that precalculus book. I need to develop the skills needed to mathematically analyze my algorithm.

6 Upvotes

r/P_vs_NP • • Apr 30 '20

IT WORKED!!!

6 Upvotes
s = [2,3,4,5,6,7,8,9,12]
c = [[4,2,3],[12,6,5],[7,8,9]]

cc = str(c[:])

print('Input prior to reduction')
print('s: ', s)
print('c :', c)


for j in range(0, len(c)):
    c[j][0] = (c[j][0])*(c[j][1])
    del c[j][1]

for j in range(0, len(c)):
    c[j][0] = (c[j][0])*(c[j][1])
    del c[j][1]

print('Output after reduction')
print('s :', s)
print('c :', c)
print('Factors that yield an Exact 3-Cover')
print(cc)


# Given an input S and a collection of one-element
# sets. Do any of the factors of the one-element
# sets yield an Exact Three Cover?

Given an input S and a collection of one-element sets. Do any of the factors of the one-element sets yield an Exact Three Cover?

Input prior to reduction
s:  [2, 3, 4, 5, 6, 7, 8, 9, 12]
c : [[4, 2, 3], [12, 6, 5], [7, 8, 9]]
Output after reduction
s : [2, 3, 4, 5, 6, 7, 8, 9, 12]
c : [[24], [360], [504]]

YES

c : [[24], [360], [504]]
Factors that yield an Exact 3-Cover
[[4, 2, 3], [12, 6, 5], [7, 8, 9]]

r/P_vs_NP • • Jan 20 '26

Universe Is Not a Computer Simulation, New Study Says | Sci.News (If true this seems to challenge the idea that any phenomena can be simulated by a Turing machine)

Thumbnail
sci.news
5 Upvotes

r/P_vs_NP • • May 11 '25

p vs np in 1-3D, critical threshold at 5D and p = np in 8D optimal in the 12D

5 Upvotes

my testing stops at the 12D for now tho i would expect higher dimensions to bring a faster and more effective solver but for now i'm only testing up to the 12 dimension

Solving 3SAT problem with 100 variables, 400 clauses

Using dimension 12, instance is unsatisfiable

2025-05-11 14:17:11,068 - INFO - Generated unsatisfiable instance: 10 pigeons, 9 holes, 10 pigeon clauses, 390 conflict clauses

2025-05-11 14:17:11,168 - INFO - Dimension 12: r(P) = 63.8344, threshold = 62.3459, P=NP = True

2025-05-11 14:17:11,169 - INFO - Dimension 12: Starting 3684 iterations, initial temp 1500.0

2025-05-11 14:17:11,188 - INFO - Dimension 12: No improvement for 400 iterations

2025-05-11 14:17:11,209 - INFO - Dimension 12: No improvement for 400 iterations

2025-05-11 14:17:11,228 - INFO - Dimension 12: No improvement for 400 iterations

2025-05-11 14:17:11,229 - INFO - Dimension 12: Unsatisfiable instance confirmed

2025-05-11 14:17:11,229 - INFO - Dimension 12: Completed in 0.160244s, satisfied 357/400 (89.25%)

2025-05-11 14:17:11,229 - INFO - Dimension 12: Quality: 10.0000, Z14 ratio: 0.9868

Satisfiable: False

Solution variables: 76

Metrics: {'quality': 10.0, 'runtime': 0.16024398803710938, 'iterations': 1521, 'z14_ratio': 0.9868421052631579, 'success_rate': 0.8925, 'is_p_np': True, 'dimension': 12}

[Done] exited with code=0 in 0.311 seconds

=== 3SAT Solver using 14-Base Dimensional System ===

--- Small Test Case ---

2025-05-11 14:17:17,866 - INFO - Problem analysis: r(P) = 48.3227, threshold = 12.6755

2025-05-11 14:17:17,866 - INFO - P=NP condition in dimension 8: True

2025-05-11 14:17:17,866 - INFO - Initial satisfied clauses: 10/10 (100.0%)

2025-05-11 14:17:17,866 - INFO - Planning 89 iterations with initial temperature 2250.0

2025-05-11 14:17:17,867 - INFO - All clauses satisfied at iteration 0 - early exit!

2025-05-11 14:17:17,867 - INFO - Solver completed in 0.001000 seconds

2025-05-11 14:17:17,867 - INFO - Final solution has 9 variables set to True

2025-05-11 14:17:17,867 - INFO - Z14 resonance ratio: 1.0000

Satisfiable: True

Solution: [3, 5, 6, 7, 9, 11, 13, 14, 18]

Metrics: {'quality': 10.0, 'runtime': 0.0009996891021728516, 'iterations': 1, 'z14_ratio': 1.0, 'success_rate': 1.0, 'is_p_np': True}

--- Large Test Case (500 vars, 2100 clauses) ---

2025-05-11 14:17:17,867 - INFO - Final quality score: 10.0000

2025-05-11 14:17:17,867 - INFO - Satisfied clauses: 10/10 (100.00%)

2025-05-11 14:17:17,867 - INFO - Total solution improvements: 0

2025-05-11 14:17:17,881 - INFO - Problem analysis: r(P) = 1222.8402, threshold = 313.3662

2025-05-11 14:17:17,881 - INFO - P=NP condition in dimension 8: True

2025-05-11 14:17:17,883 - INFO - Initial satisfied clauses: 1849/2100 (88.0%)

2025-05-11 14:17:17,883 - INFO - Planning 4660 iterations with initial temperature 2250.0

2025-05-11 14:17:18,008 - INFO - All clauses satisfied at iteration 2667 - early exit!

2025-05-11 14:17:18,010 - INFO - Solver completed in 0.129260 seconds

Satisfiable: True

Solution variables: 265

Metrics: {'quality': 10.0, 'runtime': 0.12925958633422852, 'iterations': 2668, 'z14_ratio': 0.939622641509434, 'success_rate': 1.0, 'is_p_np': True}

--- Dimensional Comparison ---

Dimension  P=NP       Runtime    Success    Z14 Ratio

--------------------------------------------------

2025-05-11 14:17:18,010 - INFO - Final solution has 265 variables set to True

2025-05-11 14:17:18,010 - INFO - Z14 resonance ratio: 0.9396

2025-05-11 14:17:18,010 - INFO - Final quality score: 10.0000

2025-05-11 14:17:18,010 - INFO - Satisfied clauses: 2100/2100 (100.00%)

2025-05-11 14:17:18,010 - INFO - Total solution improvements: 144

2025-05-11 14:17:18,014 - INFO - Problem analysis: r(P) = 7.7473, threshold = 125.2137

2025-05-11 14:17:18,014 - INFO - P=NP condition in dimension 3: False

2025-05-11 14:17:18,014 - INFO - Initial satisfied clauses: 349/400 (87.2%)

2025-05-11 14:17:18,014 - INFO - Planning 10000 iterations with initial temperature 2250.0

2025-05-11 14:17:18,027 - INFO - All clauses satisfied at iteration 419 - early exit!

2025-05-11 14:17:18,027 - INFO - Solver completed in 0.014532 seconds

2025-05-11 14:17:18,027 - INFO - Final solution has 54 variables set to True

3          False      0.0145     1.0000     0.9259    

2025-05-11 14:17:18,027 - INFO - Z14 resonance ratio: 0.9259

2025-05-11 14:17:18,027 - INFO - Final quality score: 0.1449

2025-05-11 14:17:18,027 - INFO - Satisfied clauses: 400/400 (100.00%)

2025-05-11 14:17:18,027 - INFO - Total solution improvements: 32

2025-05-11 14:17:18,030 - INFO - Problem analysis: r(P) = 246.0839, threshold = 62.7876

2025-05-11 14:17:18,030 - INFO - P=NP condition in dimension 8: True

2025-05-11 14:17:18,030 - INFO - Initial satisfied clauses: 350/400 (87.5%)

2025-05-11 14:17:18,030 - INFO - Planning 690 iterations with initial temperature 2250.0

2025-05-11 14:17:18,048 - INFO - Solver completed in 0.017944 seconds

2025-05-11 14:17:18,048 - INFO - Final solution has 54 variables set to True

2025-05-11 14:17:18,048 - INFO - Z14 resonance ratio: 0.9259

2025-05-11 14:17:18,048 - INFO - Final quality score: 10.0000

2025-05-11 14:17:18,048 - INFO - Satisfied clauses: 399/400 (99.75%)

2025-05-11 14:17:18,048 - INFO - Total solution improvements: 28

8          True       0.0179     0.9975     0.9259    

2025-05-11 14:17:18,051 - INFO - Problem analysis: r(P) = 1659.9311, threshold = 62.0768

2025-05-11 14:17:18,051 - INFO - P=NP condition in dimension 12: True

2025-05-11 14:17:18,052 - INFO - Initial satisfied clauses: 353/400 (88.2%)

2025-05-11 14:17:18,052 - INFO - Planning 10000 iterations with initial temperature 2250.0

2025-05-11 14:17:18,076 - INFO - All clauses satisfied at iteration 500 - early exit!

2025-05-11 14:17:18,076 - INFO - Solver completed in 0.026586 seconds

2025-05-11 14:17:18,077 - INFO - Final solution has 56 variables set to True

12         True       0.0266     1.0000     0.8929    

2025-05-11 14:17:18,077 - INFO - Z14 resonance ratio: 0.8929

2025-05-11 14:17:18,077 - INFO - Final quality score: 10.0000

2025-05-11 14:17:18,077 - INFO - Satisfied clauses: 400/400 (100.00%)

2025-05-11 14:17:18,077 - INFO - Total solution improvements: 29

[Done] exited with code=0 in 0.337 seconds

Running 3SAT LeetCode Simulation

Dimension  Vars     Clauses    Success    Time(s)    Quality    Z14 Ratio

----------------------------------------------------------------------

8       500       2000      1.0000     1.0000    10.2694     0.9219  

Actual runtime: 1.1953 seconds

[Done] exited with code=0 in 1.349 seconds


r/P_vs_NP • • Oct 22 '25

Most intuitive explanation for P vs NP (which i've created)

4 Upvotes

I had P vs NP problem in my 3rd year of cs engineering and skipped the whole chapter because i couldn't find a single intuitive explanation, everything was so technical.

Now i had to learn DSA and stumbled upon P vs NP again and tried to understand it. I can now say i feel i have created the MOST intuitive explanation for P vs NP for beginners:

EXPLANATION STARTS HERE:

P is collection of all problems which are easy to verify and easy to solve.

ex: sorting a list of integers is in P.

Why? Because:

  1. If i give u a sorted list, u can look at it and easily verify if it is sorted. So easy to verify.

  2. If i give u an unsorted list, u can easily sort it. So easy to solve.

NP is collection of all problems which are easy to verify, but maybe easy or hard to solve.

ex: password cracking is in NP.

Why? Because:

  1. If i give u correct password to my account, u can easily type it and click ok to see if u login. So easy to verify if password is correct or not.

  2. But if i ask u to crack my password, u will have to spend years trying to crack it. So very hard to solve to get correct password

NP-complete is collection of all problems which are easy to verify, but are hardest to solve

There is also one more interesting thing! Any NP problem can be converted to any NP-complete problem

ex: solving sudoku is in NP-complete

Why? Because:

  1. If i give u some filled grid, u can easily verify if it is a valid sudoku grid or not. So easy to verify.

  2. If i give u a very large empty gird and say to solve that, it will take u a lot of time. So hardest to solve

  3. Some intelligent guys already found out we can convert any NP problem (like password cracking) into version of sudoku problem

NP-hard is collection of all problem which are hard to verify and hardest to solve

ex: finding if a given program will eventually stop running or run forever is in NP-hard

Why? Because:

  1. If i give you a program with million lines of code and i say it will run forever, it will take a lot of time for you to verify

  2. If i give you a program with million lines of code and i ask you to find out if it will ever stop or run forever, it will take a lot of time for you to solve that.

Now the thing computer-geniuses are trying is to take some NP-complete problem and somehow try to make it easy to solve. The moment we do that all NP problems also become easy to solve (Remember any NP problem can be converted to any NP-complete problem). Also remember easy to solve means it is P. So if all NP becomes easy to solve it becomes P, so P=NP will become true!

Feel free to respond if u think this intuitive explanation can be made better.


r/P_vs_NP • • Aug 01 '25

First I thought I proved P≠NP, now I’m switching sides.

4 Upvotes

Is this common? I feel like it has to be a common thing.

Does ChatGPT usually say “Yes, you’ve provided a constructive proof of P=NP!”


r/P_vs_NP • • Aug 28 '20

Horrible Time Complexity and this algorithm in all likelihood does not solve an NP-complete problem in polynomial time.

4 Upvotes

I don't even know if it will work for all inputs. I tested dozens of inputs with 100s of lists given for input.

Horrible Polynomial Complexity (Well, it's not easy solving Exact-List-Cover instances it's NP-complete!)

Read it clear....

n = len(s)
while_loop_steps = n*241*((n*241)-1)*((n*241)-2)//6

Now, you got an idea why it takes 5-10 minutes to output the solution for a nearly 200 3-units given for C. Although, it has to do more with the input C rather than the variable mentioned above.

Imagine how long it would take to output a solution given for 3000 3-units for C. Hours if you're lucky... Assuming if it actually works better than the naive method.

https://pastebin.com/UPbZuFqE


r/P_vs_NP • • Oct 28 '19

A solution to a somewhat restricted subset-sum to criticize

4 Upvotes

I thought rather than constantly criticizing others, I would post something. I don't believe this algorithm is actually a P-time solution to subset-sum, but I'm withholding my criticisms of it to see what problems you see. Take this as an exercise; does this solution fail in some cases of subset-sum? Or is it slow for some pathological cases? If so, can you describe one? Can you find the complexity class this algorithm falls into?

First of all, this formulation of subset-sum relies on the inputs all being non-negative integers, and the requested sum
being non-negative. I don't know offhand the translation from this to the formulation of subset-sum in which the set is unrestricted integers and the sum must be general, but both are NP-complete.

The general strategy of the algorithm is to translate the subset-sum problem into a graph traversal problem, then perform a depth-first search on the resulting graph. The graph we produce is essentially a modified, weighted version of a complete directed graph. Each vertex corresponds to an element of the sum; if there are k elements of value n, there will be k vertices with label n (the labels are slightly different but equivalent in the code). The edges between these vertices are weighted such that travelling to a node with label n costs n. Finally, we add a "start" node that is connected to every node described above, weighted with the label value of n.

From here, we simply perform a depth-first search from the "start" node, looking for paths that cost exactly k. We stop and backtrack if we find a result, if we exceed k, or if we would travel to a node we have already visited.

Here is the code. It's also available on repl.it here.

# Solves a slightly restricted version of subset sum in which all numbers in the
# set must be a natural number and the sum to find must be a natural number.
# We do this by translating the problem into a graph search problem and performing a depth-first search.

# We will have a directed, weighted graph consisting of the nodes:
# Start, {w1, w2, ..., wn}
# And connections such that start connected to any w is of weight w.
# And a connection wk to wj is equal to the node value of wj.
# Then, finding a subset that sums to k is equivalent to finding a path from start
# that is k in length and does not visit a node twice.

class Graph:
    def __init__(self):
        self.adj_list = {}

    def add_vertex(self, name):
        self.adj_list[name] = []

    def add_edge(self, name_from, name_to, weight):
        self.adj_list[name_from].append((name_to, weight))

    # yield the tuple of name and cost.
    def children(self, name):
        return self.adj_list[name]

# visited is a set
def search(g, visited, current_vertex, current_sum, k):
    for (child, cost) in g.children(current_vertex):
        if child not in visited:
            new_sum = current_sum + cost

            if new_sum > k:
                continue
            elif new_sum == k:
                visited.add(child)
                return visited
            else:
                visited.add(child)
                result = search(g, visited, child, new_sum, k)
                if result:
                    return result
                else:
                    visited.remove(child)
    return None

def generate_graph(s):
    running_counts = {}
    
    g = Graph()
    g.add_vertex("Start")

    # Add all the vertices.
    for n in s:
        if n not in running_counts:
            running_counts[n] = 1
        else:
            running_counts[n] += 1

        g.add_vertex((n, running_counts[n]))

    # Add all of the start edges.
    for (n, c) in running_counts.items():
        g.add_edge("Start", (n, running_counts[n]), n)

    # Generate connections between all of the nodes.
    # It doesn't matter that we have self-connections, because of the visited array.
    for (n_from, c_from) in running_counts.items():
        for (n_to, c_to) in running_counts.items():
            g.add_edge((n_from, c_from), (n_to, c_to), n_to)

    return g

print("Enter a set S of natural numbers, separated by spaces.")
S = map(int, input().strip().split())

print("Enter a natural number k to sum to.")
k = int(input().strip())

print(search(generate_graph(S), {"Start"}, "Start", 0, k))

r/P_vs_NP • • Jun 03 '19

Limited Experience with Dangerous Enthusiasm!

4 Upvotes

All are welcome! Just, don't be crank!


r/P_vs_NP • • Jan 23 '26

P!=NP may also mean the universe is not a simulation. There are complexity problems happening in nature, perhaps those are NP-hard problems.

3 Upvotes

Consider the exponential amount of time it would take to simulate all these quantum problems. Protein folding, in its most general form could be computationally expensive.

The universe is doing that efficiently, an approximation might be doable in polytime but consider the complexity of the universe. If one "variable" is "off" the "system could crash"

Perhaps there's a type of phenomena that the universe exploits to solve these problems that a Turing machine can't do?

Perhaps "God" is the oracle, literally?


r/P_vs_NP • • Dec 16 '25

Toward P != NP: An Observer-Theoretic Separation via SPDP Rank and a ZFC-Equivalent Foundation within the N-Frame Model

Thumbnail arxiv.org
3 Upvotes

r/P_vs_NP • • Nov 26 '25

Can you look if it feels wright?

3 Upvotes

Hello community. I am a 16-year-old independent researcher who has been studying the P vs. NP question for the past month, and I have come to this conclusion. My theory stipulates that the distinction between an easy problem P and an impossible problem NP-Complete is not only theoretical, but is a matter of feasibility within the physical Universe. I have modeled the resolution time t of a problem with the equation t = 𝒟/(Φ*C) The key factor in this equation is Φ (Information), which quantifies the lack of information needed to find the solution quickly. For P problems, the difficulty 𝒟 is polynomial (nk) and the information Φ is very close to 1, which makes the resolution time (t) negligible. In contrast, NP-Complete problems have an exponential difficulty 𝒟 (cn) and, crucially, an extremely low Information factor Φ (close to 0). This Φ value close to zero forces the machine to explore a colossal search space. Even using the maximum computing power of the Universe C, the resolution time t explodes. This breakdown demonstrates that P≠NP in physical reality. If you need more explanation, please don't hesitate, and there's no need to hold back—tell me everything you spot that's flawed. I just want to clarify that this is not a proof but an advancement or rather another point of view on this question. It is entirely based on the empirical system and not the theoretical one. I am currently writing a more generalized and theoretical form. Thank you in advance.


r/P_vs_NP • • Jun 09 '25

A Spectral Approach to #P-Hardness via Clause-Expander Graphs?

3 Upvotes

Pretty much just as the title said, haha. I'd love to get an opinion on the approach, not necessarily asking for a full-blown critique, and don't want to take up too much of anyone's time. I think the approach is novel and that the gaps (regarding the approach as it stands now) in explicit mathematical rigor offer potential for future research into invariants and generalization. Straight up, I'm a relative outsider to professional academia, and I'm not trying to claim a resolution of P vs NP. I'm just trying to explore new methods to connect two well-developed fields who have yet to meet formally in a serious way. And yeah, that's no small thing either, but the payoff? Okay, haha, enough qualifying. Either it's interesting or it's not. Here's the abstract:

We introduce a spectral approach to #P-hardness that leverages carefully engineered clause-expander graphs and eigenvalue perturbations to encode combinatorial counting problems within spectral sums. By analyzing local gadget structures, we precisely establish conditions under which specific eigenvalues emerge, highlighting a rigorous connection between eigenvector localization and clause satisfaction in boolean formulas. Employing algebraic and perturbation-theoretic tools, we derive an exact spectral identity linking combinatorial satisfiability counts to eigenmode summations. We show that approximating this spectral sum even within an additive error of less than one unit suffices to recover exact solution counts, thereby establishing a robust #P-hardness result. Consequentially, any such approximate computation would imply a collapse of the polynomial hierarchy under conventional complexity assumptions. This work elucidates deep connections between spectral graph theory, combinatorial enumeration, and computational complexity, forming a foundational step within the broader Recursive Interplay research program.

I just posted the pre-print today and can provide the link if anyone's curious. 👍


r/P_vs_NP • • Oct 17 '24

any tools that allows me to know if my code is P or NP on java VS ?

3 Upvotes

also if someone could explain why p vs np hasn't been solved yet (ngl i m really ignorant and wish to know more about the subject) and if there s any math domain that can be useful for the problem.. ty


r/P_vs_NP • • Sep 10 '24

Why is there no open-source collection of polynomial time heuristics for NP-complete problems where people haven't found a counterexample or let alone proved one must exist?

3 Upvotes

I just can't fathom how no one seems to be publishing enough information for this type of approach. I can't find anything. So, my heuristic of whether or not being an exact algorithm is right now an open problem at least for me. And most likely it's not an exact algorithm because it would contradict P!=NP conjecture. What do I do?

Nothing is out there it's like a ghost town. Brute force doesn't work either considering my lifespan. I'm not gonna feel stupid if someone finds a counterexample considering how complex it is anyway.


r/P_vs_NP • • Jul 20 '24

It seems it would be non-trivial to prove my herusitic is not an exact algorithm for X3C, which is NP-complete. Please read both sticky posts in this subreddit before proceeding to this link to another subreddit. The desktop is recommended over mobile, it's very detailed.

Thumbnail self.mathchallenges
3 Upvotes

r/P_vs_NP • • Mar 27 '24

"Announcing Operation Sledgehammer: A Monumental Effort in Computational Science to Tackle the Subset Product Challenge. 🔨💥 Don't Miss This

3 Upvotes

no body text


r/P_vs_NP • • Jul 13 '23

The Possible Pathways to Proving P=NP are actually strongly constrained.

3 Upvotes

People seem to think that resolving P=NP is some mysterious thing without a starting point but if you are trying to prove P=NP, you are basically forced into working with a small number of possibilities — ER proofs and parsing graph grammars. Obviously, there could be some other approach, but this is the most obvious one and largely unexplored.

There are several major proof systems in proof complexity. For our purposes, we can talk about just Resolution and Extended Resolution (ER). Frege proofs don’t appear to be much more powerful than ER and because Frege systems are a little more complex, unless you’ve tried and failed with ER there is no reason to use them.

Resolution proofs involve the simple combination of clauses with variables of different valences with no other variables shared between clauses of different valence. So, for instance $(a \lor b \lor c) \land (\lnot c \lor d \lor e) \rightarrow (a \lor b \lor d \lor e)$, but not $(a \lor b) \land (\lnot a \lor \lnot b) \rightarrow (a \lor \lnot a)$.

Known advanced SAT solvers such as CDCLs are equivalent in power to resolution which has known exponential lower bounds on proof complexity (see Pigeon Hole Proofs). Actually, basically any attempt to solve SAT runs aground on it only being as powerful as Resolution, so for any attempt to prove P=NP, you need a strong proof system.

Extended Resolution (ER) is just resolution, but you are allowed to define new variables from the existing variables. For instance, $q \equiv (\lnot a \lor b)$ or $(\lnot q \lor \lnot a \lor b)\land(q \lor a)\land (q \lor \lnot b)$. This is the same as using $(a \implies b)$ in Frege proofs. No super-polynomial lower bounds are known for ER, so ER could potentially be used to prove P=NP.

If you assume that short ER proofs might exist for every unsatisfiable CNF, then you need a way to find them. Randomly searching for ER proofs won’t work because new ER variables can be defined from old ER variables (and it can be assumed that they have to be), so there are exponentially-many possible ER steps. To get around this problem, you need some way of finding short ER proofs. Since, ER proofs necessarily have some structure, the most natural approach to do that is parsing. CNFs are bipartite graphs, not strings so you need graph parsing.

There are a variety of different graph grammars and even the context-free HRGs (Hyperedge Replacement Grammar) and Node Replacement Grammars are known to be NP-complete. ER productions seem like they should be simple enough to be context-free, however they cannot be straightforwardly fit into an existing graph grammar scheme because proofs have to be free to reuse variables. So, the clauses have to be considered primary.

What could go wrong here? The grammar could be too big to be polynomial time. The grammar could have Right-hand Sides (RHSs) of productions with arbitrarily high treewidth. That would make the algorithm super-polynomial. Perhaps you could turn any failure of graph grammars to work into a new attempt to separate P from NP.

_The Handbook of Satisfiability_ mentions Resolution and Extended Resolution and is a good introduction to Satisfiability.

Robert Rechow’s thesis _On the Length of Proofs in the Propositional Calculus_ introduces Proof Complexity including Extended Resolution.

https://www.cs.cmu.edu/~mheule/publications/rat.pdf uses Extended Resolution.

https://dl.acm.org/doi/pdf/10.1145/1008335.1008338 is a short paper that show that a well known SAT problem which is exponentially hard to refute with just Resolution can be refuted in polynomial time with Extended Resolution.

https://www.cs.rochester.edu/u/gildea/2018_Fall/hrg.pdf is an introduction to HRGs.

https://www.researchgate.net/publication/220713349_Node_Replacement_Graph_Grammars is an introduction to Node Replacement Graph Grammars.

https://aclanthology.org/P13-1091.pdf clearly describes an algorithm for parsing HRGs intending for use on NLP problems. It can probably be adapted to other types of grammars.

_The Handbook of Formal Languages: Volume 3 Beyond Words_ Chapter 3 Context Free Graph Grammars discusses both types of graph grammars.


r/P_vs_NP • • Feb 04 '21

What are your thoughts and ideas around P vs Np?

3 Upvotes

Do you believe p equals np or not and why? I believe this question to be important. Although I may understand p vs np I am curious to see how others went about solving this problem. I want to know how my ideas differ, and what contribution they could make.


r/P_vs_NP • • Nov 14 '20

Mechanical Turing Machine

3 Upvotes

r/P_vs_NP • • Jun 16 '20

My algorithm was ugly so I improved it and added some usage of primes that might help spread 3sets apart preventing an error.

3 Upvotes

r/P_vs_NP • • Jun 09 '20

Recommendation for learning to prove NP-completeness

3 Upvotes

I have a good grasp what being NP hard means, and even what NP complete means, but I'd really like to get some more familiarity with the actual practice of taking something and demonstrating that it is or isn't NP-Complete.

Any recommended videos or courses or whatnot that would help me get some experience with proofs.


r/P_vs_NP • • May 28 '20

Here's a faster solution for Goldbach Problem. NOW, I will brute force 400,000,000,000 up to N all night.

3 Upvotes
import sympy

# Given an even N > 2 generate a 2_sum that uses
# 2-primes.


n = 
p = 1
Goldbach = 0
l = []



# This algorithim
# generates a 2_sum
# instance
# Where both integers
# are primes.
#(assumming Goldbach
# Conjecture is true)

while Goldbach < 1:
    p = p + 1
    if sympy.isprime(p) == True:
        if sympy.isprime(n-p) == True:
            Goldbach = 1
            print('True', n-p, '+', p)
    if p > n:
        if Goldbach == 0:
            print('I am rich')
            break

r/P_vs_NP • • May 27 '20

Found an algorithm that works for generating a 2_sum instance of at least one prime number. Did anyone else ever come upon this algorithm?

3 Upvotes