Skip to main content
1 vote
1 answer
117 views

The book Algorithms Illuminated Part 4 has the following definition to prove problems NP-hard: A problem A reduces to another problem B if an algorithm that solves B can be easily translated into one ...
MangoPizza's user avatar
0 votes
0 answers
85 views

Can anyone share any implementation on how to implement a distributed greedy algorithm for maximum independent set or any implementation of distributed graph algorithm in C++? I checked this one https:...
Subhra Mazumdar's user avatar
1 vote
0 answers
224 views

Consider the K-Hamiltonian Path (KHP) decision problem stated below: KHP = (G, K), where: G = (V, E) is an undirected graph of n vertices and m edges K is a positive integer Do there exist at least n/...
CsGeek's user avatar
  • 11
2 votes
0 answers
241 views

i've got a problem that feels very much like it's NP-hard but I would love some help proving it primarily. Secondary to that, if an optimal polynomal time algorithm can be proposed that is even better,...
NightShade's user avatar
0 votes
0 answers
31 views

While there are many answers to this sort of question, many of them do not handle large sets or sums well. I want to get all subsets of set {1,2,3,...,254,255} that sum up to a value 666, and ...
John Carlson's user avatar
-2 votes
1 answer
470 views

I want to know how 3 partition problem is NP complete ? We have to find triplets in set which sums to target. So isn't time complexity will be O(n^3) which is polynomial ? solution: https://www....
user's user avatar
  • 23
0 votes
0 answers
112 views

Suppose that we find that, for any NP-complete problem, there is an algorithm that can solve it in P time. However, the algorithm takes exponential space. For example, the algorithm to revert SHA256 ...
G S's user avatar
  • 11
0 votes
1 answer
31 views

What is the best practice to search a list of stores that holds a subset of goods of a library of goods? Here is the scenario: a library of goods has (0 to totalAmountofGoods), each store can hold a ...
meteor's user avatar
  • 25
1 vote
0 answers
139 views

Here is the context of the question: For each of the following statements, indicate whether it is true, false, or unknown, where 'unknown' indicates that scientists have not conclusively determined ...
Lsy's user avatar
  • 21
0 votes
1 answer
584 views

I need helping solving a reduction problem: Given a Graph G and a number k, Is there a set V' in V(G) such that |V'| >= k and the dist(u,v) > 2 for all u, v in V'? Now at first glance this looks ...
Ahmad Ali's user avatar
-1 votes
1 answer
109 views

I know if we want to prove the np completeness of some problem we must show these : there is a nondeterministic polynomial solution for the problem all other np problems are reducible to the problem ...
Mohsen Liaghat's user avatar
0 votes
0 answers
100 views

I don't seem to find any much resource about "Power Set" problem. Is Power Set a NP-Complete or NP-Hard problem? And why? Can someone advise me?
Steven-Carrot's user avatar
1 vote
1 answer
151 views

Definition 1 (usual definition) A problem B is NP-Complete if B is in NP For C in NP, C is polynomal-time reducible to B Definition 2 (in a few documents) A problem B is NP-Complete if B is in NP ...
Anram's user avatar
  • 11
0 votes
0 answers
42 views

Another way to put this question is, if a boolean satisfiability solution had an efficiency of O(2^n), what would be considered n? It seems like it could be the number of variables in the expression, ...
Nate N.'s user avatar
0 votes
1 answer
457 views

It is well-known that it is a NP-complete problem to find a maximal clique in a graph. But I wonder know if it possible to find a sub-maximal clique in a graph in polynomial time. That is, given that ...
SleepyBag's user avatar
  • 153

15 30 50 per page
1
2 3 4 5
23