NP-Hardness Flashcards

1
Q

Hitting Set definition

A

Given a set S={a,b,c,d,ef,g,h,….} and subset C of S –> C={(a,b,c), (b,c,e),(f,d),(a)….}; find a set H={…} of S of size <= k such that H intersect C is non empty.
For example here H={a,b}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

To prove X is NP-hard

A

Don’t think how to change X to graph of vertex cover or independent set ; instead take an instance(نموذج) of vertex cover/independent set and transform it to an instance(نموذج) of X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to write the proof

A

Consider an instance (G,V,E,K) of vertex cover , the instance (S,C,K’) of hitting set is constructed as follows:
S

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Do not forget to say that this reduction take a polynomial time

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Clique

A

Complete subgraph

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Subgraph Isomorphism

A

Given 2 graphs G1 and G2; G1 is subgraph Ismorphic to G2 –> G2 contains a subgraph Isomorphic (same) to G1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Prove NP-Hard for subgraph isomorhism

A

Consider an instance (G,K) of clique , an instance (G1,G2) of subgraph isomorphism is constructed as follows:
G1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Prove NP-Hardness for Independent set

A

Done by 3 SAT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Prove NP- Hardness for vertex cover

A

Consider an instance (G,K) of independent set , and instance (G,K’) of vertex cover is constructed as follows:
K’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Graph complement or graph inverse

A

In graph theory, the complement or inverse of a graph G is a graph H on the same vertices such that two distinct vertices of H are adjacent if and only if they are not adjacent in G

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Prove of NP-completeness

A

Consider an instance (G,K) of Independent Set, an instance (G’,K’) of clique is constructed as follows:
G’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly