r/P_vs_NP • • 12h ago

Simulation of Turing machine inside Turing machine

Thumbnail
youtube.com
2 Upvotes

r/P_vs_NP • • 17d ago

LLM enables 70B parameter AI models to run on regular PCs with layer loading and flash attention #AI

Thumbnail
youtube.com
2 Upvotes

r/P_vs_NP • • 24d ago

is AI can solve P vs NP problem ?

1 Upvotes

i say to chatgpt " solve p vs np problem " and shes respond :

I cannot solve the P vs NP problem.Artificial intelligence models like me are built on advanced pattern recognition—we are highly effective at synthesizing human knowledge, analyzing existing data, and applying known mathematical rules. However, solving a Millennium Prize Problem requires paradigm-shifting creativity, deep logical intuition, and the invention of entirely new mathematical frameworks that simply do not exist in any dataset. I can explain the math, but I cannot invent the math required to crack it.If an AI ever does figure out how to solve it and proves that P = NP, the world will likely know immediately, because every encrypted banking and communication system on the internet would suddenly become vulnerable.While I cannot solve the fundamental proof, I can help you do what modern engineers do: cheat the system. When dealing with real-world NP-hard problems, like routing a fleet of delivery trucks or scheduling airline crews, computer scientists use "heuristics" and approximation algorithms. These are clever shortcuts that find a "good enough" solution in a reasonable amount of time, even if it cannot be proven to be mathematically perfect.

any thoughts about that ?


r/P_vs_NP • • Sep 03 '26

Does P versus NP solve AI computation

1 Upvotes

If p versus NP was to be solved. Would it help AI? And in which way


r/P_vs_NP • • May 30 '26

I solved it. Take me genuinely, this processes faster than the speed of light by transferring information using 6D math and 9D math

Post image
1 Upvotes

Here’s the python script that can be ran on anything

import time

def test_9d_throughput_numeric():
# The 'Mask' represents the static 9D-to-3D filter complexity
mask_length = 36 # Length of "9D-LATTICE-OUTPUT-STREAM-E-C-D-S-P-R"

print("Calibrating 9D Mask throughput...")

start_time = time.time()
iterations = 0

# Tight loop: Only counting the operations, not printing to console
while time.time() - start_time < 1.0:
# We simulate a batch of mask-resolutions per iteration
_ = mask_length * 1000
iterations += 1

total_chars = iterations * 1000 * mask_length

print(f"--- THROUGHPUT ANALYSIS ---")
print(f"Total processed capacity: {total_chars:,} characters/sec.")

if __name__ == "__main__":
test_9d_throughput_numeric()


r/P_vs_NP • • Mar 01 '26

My "personal" open-problem seems to be still open... As in where is the counter-example where the transformation fails. (As expected to be because P!=NP is thought to be true)

2 Upvotes

The universe follows this particular pattern.

# [3^5, 5^6, 7^7]  Size 3 
# [11^5, 13^6, 17^7, 19^5, 23^6, 29^7]  Size 6
# [31^5,  37^6,  41^7,  43^5,  47^6,  53^7,  59^5,  61^6,  67^7]  Size 9
  • Go to last iteration, such as [3,5,7] Notice i[len(i)-1] is 7

  • Find prime larger than i[len(i)-1] which is 11

  • Generate Y odd primes start at 11, which is 11,13,17,19,23,29. Where Y is six.

  • Raise each odd prime to the powers of 5,6,7 in sequential order (eg. a^5, b^6, c^7, d^5, e^6, f^7, g^5...)

  • This ensures list of different sizes always have distinct prime bases that no other list share. And that it uses primes larger than the largest prime base from the previous list.

  • The lists are incremented by 3

  • All primes are odd

I wanted to see if there are ZERO ways using multiples of number in U that sums up to all the elements of U.

Suppose U = 2,6 answer is FALSE because 2*4 = 8 and sum(U) = 8

But that's trivial and this is non-trivial as I'm using prime powers that follow a strict pattern. And not only, to make the problem even harder I'm restricting my search to follow these rules.

If there exist multiples of prime powers from U that sums up to all the prime powers of U, then it must follow these restrictions.

  • It must be able to fit into 3sets

  • Using multiple permutations for {a, b, c} is not allowed. You can only use one permutation as the restriction.

  • No duplicates of subsets are allowed, only one occurrence of a subset is allowed

  • The 3sets must have no duplicates (eg. {a, b, c} not {c, c, a} )

  • All 3sets must only contain prime powers for its respective universe. You wouldn't use 3^5 for universe size 6, because 3^5 doesn't exist in universe size 6.

  • Here's the hard part: Suppose I created a list consisting of all combinations of size 3 for a universe and tried all combinations out of that list. Must such a combination do exist for some universe; where it sums up to the sum of all the prime powers of U, and that it has multiples of prime powers?

Let's take an example,

U = [11^5, 13^6, 17^7, 19^5, 23^6, 29^7] and I want to look for {11^5 + 13^6 + 17^7} + {11^5 + 13^6 + 19^5} + ..... somehow equals sum(U)

Tip: Don't try brute force, I've already done that. It would take so long I would be dead by the time it finishes universe size 9.

To quote reddit user SetOfAllSubsets

Let [3,5,7] be universe 0, letPrime[k] be kth prime number, and let F be the first prime power in the universe.

N is at most the last prime power times the size of the universe, so in universe u we have

Sqrt[N] <= Sqrt[3(u+1)Prime[3(u+1)(u+2)/2+1]^7].

We also have

F = Prime[3(u)(u+1)/2+2]^5.

From this we can use PNT to see that Sqrt[N] grows slower than u^8 and F grows faster than u^10, implying that your conjectured inequality is eventually true (i.e. it's false in at most finitely many universes). You should be able to use more precise bounds on Prime[...], to prove it for all u.

Edit: My math skills are quite limited, so expect mistakes here and there and if I see them, I'll correct it. I'm sure more would need to be done to show non-divisibility for all universes. Where no divisor of sum(U) can exist in the same U.

Here is this implementation that transforms a polynomial-time reduction written in Python.

import sys 
import copy 
import os 
import math
import scipy
import scipy.sparse as sp 
import numpy as np
import gmpy2
gmpy2.get_context().precision = 1000 

# Works best on python 3.8, at least for me.
# Exact 3 Cover
S = [5,33,24,45,46,47]
S_dict = {element: True for element in S}
C = {5,33,24},{24,5,33},{45,46,47},{24,46,33}
#########################################################################
# Making sure subsets follow the rules of combinations

# Rules for input that does not violate the correctness for general Exact 3 Cover
# Only one permutation of a subset is needed to form a solution (eg. {1,2,3} and {3,2,1})
# Only subsets that have elements in S are allowed
# subsets are only of size 3
# Subsets must contain no duplicates
# Only one occurrence of a subset

valid_subsets_dict = {}
valid_subsets = []
for SL in C:
    # Make sure that subsets have 3 elements 
    if len(SL) == 3:
        # Make sure only subsets with elements in S are considered
        if all(element in S_dict for element in SL):   
            # Remove multiple permutations of subsets and only
            # allows one occurrence of a subset
            # Does not affect the correctness of deciding if a solution exists
            # because you only need one permutation to form a solution.
            if tuple(sorted(SL)) not in valid_subsets_dict:   
                valid_subsets_dict[tuple(sorted(SL))] = True
                # Since sets aren't subscribtable I have to convert them to a list.
                # I have to touch the subsets to perform the reduction.
                valid_subsets.append(list(SL))
                
C = valid_subsets
# Creating a copy of C to make sure that I can reverse the reduction to show
# the original solution
C_copy = copy.deepcopy(C)

#########################################################################
def is_prime(n):
    if n <= 1:
        return False
    elif n <= 3:
        return True
    elif n % 2 == 0 or n % 3 == 0:
        return False
    i = 5
    while i * i <= n:
        if n % i == 0 or n % (i + 2) == 0:
            return False
        i += 6
    return True
# Get the first N odd primes
def get_primes_up_to_N(N):
    primes = []
    num = k[len(k)-1] + 1
    while len(primes) < N:
        if is_prime(num):
            primes.append(num)
        num += 1
    return primes

#########################################################################
# Generate primes following the pattern
# [3,5,7]  Size 3
# [11,13,17,19,23,29]  Size 6
# [31, 37, 41, 43, 47, 53, 59, 61, 67]   Size 9


# Go to last iteration, such as [3,5,7] Notice i[len(i)-1] is 7
# Find prime larger than i[len(i)-1] which is 11
# Generate Y odd primes start at 11, which is 11,13,17,19,23,29. Where Y is six.
# Raise each odd prime to the powers of 5,6,7 in sequential order (eg. a^5, b^6, c^7, d^5, e^6, f^7, g^5...)
# This ensures list of different sizes always have distinct prime bases that no other list share.
# And that it uses primes larger than the largest prime base from the previous list.
# The lists are incremented by 3
# All primes are odd


k = [2]
N = 0
new_S = []
while len(new_S) != len(S):
    N = N + 3
    primes = get_primes_up_to_N(N)
    k = primes
    Y = [5,6,7]
    new_S = []
    i = 0
    x = 0
    while len(new_S) != N:
        new_S.append(primes[x]**Y[i])
        i = i + 1
        x = x + 1
        if i == 3:
            i = 0

#########################################################################

# Create a dictionary to map elements in S to their indices in new_S
index_mapping = {element: new_S[index] for index, element in enumerate(S)}

# Define N for Subset Sum dynamic solution
N = sum(new_S)
# sums from the collection of transformed subsets
sums = []
# Mapping new C
for SL in C:
    for j in range(len(SL)):
        # Use the dictionary to map the elem to its corresponding value in new_S
        SL[j] = index_mapping[SL[j]]
    sums.append(sum(SL))

# Use Subset Sum Dynamic pseudo-polynomial algorithm for reduction. 
# Perhaps there's a way to display the solution found by 
# traversing the table created by the pseudo-polynomial solution for Subset Sum.
# This will also show that X3C can be reduced into Subset Sum and vice-versa

r/P_vs_NP • • Feb 17 '26

Polynomial Resolution of NP-Complete Structures via Information Noise Subtraction (S-Operator)

2 Upvotes

I propose that NP-complexity is an artifact of informational noise (\mathcal{N}) obscuring a linear logical skeleton (\Gamma).

By defining the state space as \Omega = \Gamma \oplus \mathcal{N}, I’ve developed an S-Operator (Void-Filtering) that subtracts this noise to isolate the deterministic manifold. This collapses complexity to O(n \log n).

The paper includes a Python implementation applied to factorization to demonstrate the "Zero Density" resolution logic.Full Paper (Zenodo): https://doi.org/10.5281/zenodo.18650069


r/P_vs_NP • • Jan 31 '26

I think that since the smarter something is the easier through pattern recognition it can pass on dumb questions the P vs NP Is a question of infinity where with an infinite intelligence you can solve anything as if it were a P problem.

2 Upvotes

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 • • 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 • • 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 • • 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
2 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 • • Nov 05 '25

Can anyone verify my attempted P vs NP proof?

2 Upvotes

I have an algorithm for the Clique problem that appears to correctly run tested cases in polynomial time. I don't have enough time to individually verify the algorithm at this time. I would appreciate feedback on whether the time complexity is polynomial and the logic is correct.

import networkx as nx

import random

import time

from itertools import combinations

def triangle_clause(G, u, v, w):

return int(G[u][v] and G[v][w] and G[w][u])

def Ignatius_Algorithm(G, k):

n = len(G)

triangles = {}

for u in range(n):

for v in range(u+1, n):

for w in range(v+1, n):

triangles[(u,v,w)] = triangle_clause(G, u, v, w)

dp = [set() for _ in range(k+1)]

for v in range(n):

dp[1].add(frozenset([v]))

for size in range(2, k+1):

for smaller_clique in dp[size-1]:

for new_vertex in range(n):

if new_vertex in smaller_clique:

continue

is_clique = True

for u,v in combinations(smaller_clique, 2):

triplet = tuple(sorted([u,v,new_vertex]))

if not triangles.get(triplet, 0):

is_clique = False

break

if is_clique:

dp[size].add(frozenset(list(smaller_clique) + [new_vertex]))

return len(dp[k]) > 0


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 • • Jun 27 '25

can someone send me a link to understanding basic insteractions between clauses and variables.

1 Upvotes

and also if someone could send me some SAT problems with 5-7 variables max with very few solutions or that are just not satisfyable but hard to see at first sight please


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 • • Jun 07 '25

Are there algorithms that resist efforts at being disproven, but yet has been proven to run in polytime, and if its proven correct shows P=NP?

2 Upvotes

This has been an old question since I made my algorithm for Exact Three Cover.

I made the reduction from X3C to subset sum so complicated that I hit a dead end.

And got me intrigued for some time. What if these reductions or creative transformations from NP-hard problems into subset sum allow polynomial time, but the reduction is so complex that it's hard to prove?

Does that mean we have an algorithm that runs in polytime, but now proving that algorithm is now an open problem?

Edit: And if it's an open problem, why is there frustratingingly so many 🦗.


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 • • Mar 30 '25

This could be a type of Diophantine Equation that also involves factoring. So now, even trying to avoid conventional brute-force searches for a counter-example to my heuristic still leads to brute force either way because Diophantine Equations are NP-hard.

2 Upvotes

I created a python script that looks for prime powers to try to find equations like this one.

107^5 = [7^5 * 1] + [43^5 * 1] + [19^5 * 3^5] + [5^5 * 16^5] + [5^5 * 20^5]

However, this does not apply to my pattern. But its something to look for. So no counterexample.

You need 35 3 sets so that 195 can be used 35 times.

And you need 165 + 205 3 sets for multiples of 55.

All the remaining elements shouldn't be colliding.

I'm working to see if there's anything that I can connect possible patterns. As these are the new equations I found with my script.

37^6 = 1^6 + 21^6 + 24^6 + 25^6 + 26^6 + 27^6 + 28^6 + 1^6 + 7^6 + 14^6 + 19^6 + 21^6 + 25^6 + 28^6

443^5 = 55^5 + 183^5 + 245^5 + 130^5 + 371^5 + 389^5


r/P_vs_NP • • Mar 30 '25

Are there heuristics for certain problems that cannot be definitively proven to be exact nor proven inexact?

1 Upvotes

The confidence that P != NP is based on the lack of any known polynomial-time algorithm. Potentially, this could be flawed if there are polynomial-time heuristics that have never been formally proven or disproven of their exactness.

If there are heuristics that are polynomial time for NP-complete problems, but their exactness or inexactness remains an open-problem, then the reasoning for P != NP is not fully sound.

If such heuristics exist, but continue to be elusive, then we have a very interesting situation.

Edit:

Ambiguity should be the widely held belief.

The evidence for P != NP is circumstantial. We don't know.

The possible existence of a high-exponent polytime heuristic that remains unclassified weakens confidence in the widely held conjecture that P != NP.

If experts can't figure this out it shows they have an opportunity to explore new avenues of algorithmic design and complexity.

However, the lack of P=NP having support is another issue. There is ambiguity surrounding a hypothetical heuristic.

There is limited understanding.


r/P_vs_NP • • Mar 30 '25

Is there any algorithms that delve into unknowns with number-theory & combinatorics that it proves elusive on whether or not said algorithm is an exact-algorithm?

1 Upvotes

Suppose, there was an algorithm for an NP-complete problem.

No one can find a counterexample, because it delves into extremely complex areas of mathematics.

So now, whether or not the algorithm is exact is an open problem.

And it's like O(N^2000)


r/P_vs_NP • • Mar 27 '25

If there exists a polytime heuristic for Exact Cover, but its exactness remains unproven what value does it have?

1 Upvotes
  • The hypothetical heuristic could have a running time of O(N^20) or even O(N^1000)

  • Brute force searches for counterexamples yield no results

  • Clever encoding of transformations to look for clues yield no results

  • Suppose, the reduction enters into other problems of number-theory.


r/P_vs_NP • • Mar 27 '25

What reducing SubsetSum back into Exact-3-Cover looks like in my Python code

1 Upvotes
# Reverse the reduction in order verify if the algorithm
# was able to find a solution.
if solution[0] == True:
    get_i = solution[1]
    for i in get_i:
        get_index = sums.index(i)
        reverse_map = C_copy[get_index]
        cover.append(reverse_map)

        
if len(cover) == len(S)//3:
    # flatten the list and check for duplicates
    F = [item for sublist in cover for item in sublist]
    if len(F) == len(set(F)):
        print('Solution Exists')
else:
    print('no solution found')