Matching Flashcards

1
Q

Matching

A

Set of edges in wich vertices are not common (edges do not have any common vertex)
No two edges share a commonn end point

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

Relation between matching and vertex cover

A

every edge of the matching obtains at least one element of the vertex cover.

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

Relationship between matching and vertex cover

A

at least one vertex of the edge of the maximal matching is in the vertex cover

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

Rekationship between maximal matching and vertex cover

A

size of maximum matching is <=size of a minimum vertex cover

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

In bipartite graph , relationship between maximum matching and vertex cover and

A

Size of maximum matching is equal to the size of the minimum vertex cover

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

Maximum matching can be computed in poly-time

A

true

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

We can find the size of minimum vertex cover in bipartite graph in poly-time

A

true

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

Lower bound of vertex cover

A

Maximum matching.
size of maximum matching is <=size of a minimum vertex cover.
My vertex cover cannot be less than that

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

Upper bound of vertex cover

A

twice the size of maximum matching

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

If we find a maximal matching and take all matched vertices into a vertex cover solution, the resulting vertex cover is of size <= twice of the size of a minimum vertex cover

A

True

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

Vertex cover problem is solvable in polynomial time for bipartite graph

A

true

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

VC approximation algorithm for bipartite graph using maximal matching

A

• VC Approximation Algorithms
1- Compute a maximal matching
2- Put all the matched vertices (under M) in a VC solution S
3- return S
Advantage: Poly-time result does not exceed twice optimum (in poly-time)
Result: Vertex cover has a factor-two poly-time approximation algorithm (can be approximated within a factor 2 in polytime)

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

Another polytime vertex cover approximation

A
  • Input graph G
  • Output a vertex cover C for G
    C empty Set
    HG
    While H has edges
    e  an edge of H
    (v,w)  end points of e
    Add v and w to C
    for each edge f incident to v or w
    Remove edge
    - return C
    Every chosen edge e has both ends in C
    But e must be covered by an optimal cover
    hence, one end of e must be in optimal
    Thus, there is at most twice as many vertices in C as in OPT
    That is, C is a 2-opproximation of OPT
    Running time O(m) : number of edges
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Give an efficient a;gorithm for Vertex Cover on Trees and Forests ( Acyclic undirected graphs)

A

 Is this problem solvable in polynomial time as optimal?
Yes, because every tree is a bipartite graph
A leaf in a tree is vertex that has only one edge (v only covers one edge which is covered by w , whenever I spot a leaf I put it is parent in the solution; delete (the leaf =vertex of degree 1 ) and continue until you consume the tree
Observation: It will be solvable efficiently on Linear time ( It will take same time as the BFS)

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

Spanning Tree

A

Tree that have all the vertices of the graphs

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

Minimum Spanning Tree is

A

Minimum Spanning Tree is a Tree that have all the vertices of the graph with total sum of weight of edges is minimum

17
Q

o We are given a problem instance X that has many “feasible” solutions. We are trying to minimize or maximize some cost functions c(S) for a solution S of X. For example.

A

 Finding a minimum spanning tree of a graph
 Finding a smallest vertex cover of a graph
 Finding a smallest travelling salesperson tour in a graph

18
Q

 An approximation produces a solution T that is called a k-approximation to the optimal solution (OPT) if

A

o k>=c(T)/c(OPT) for minimization
o k>=c(OPT)/c(T) for a maximization; for a clique if I find clique of size 50 and we have 100 as optimal 100/50=2; We guaranteed a 2 factor approximation.

19
Q

The Travelling-Salesman Problem (TSP)

A

 Given complete, undirected graph G=(V,E) with non-negative integer cost c(u,v) for each edge
 Find cheapest hamiltonian cycle of G (Find a cycle that goes through all vertices of G such that edge cost is miunimum)
 We consider two cases: with or without triangle inequalltiy
 In case of triangle inequality (implies not Euclidean),if the cost c satisfies triangle inequality , it is always cheapest to go directly from some u to some w without passing by intermediate vertivces

20
Q

• Euclidean TSP

A

 In the traveling sales man problem, you are given a number of vertices with all the possible edges between them with weight on the edges, and you are looking for a cycle that goes through all the vertices so the sum of the weight of the edges on the cycle you produce is minimum (You are looking for a Hamiltonian circle so that the sum of the weight of the edges is minimum)  It is like Shikri wants to travel and wants the minimum cost.
 It can be proved NP-hard from reduction from the Hamiltonian circle which can be proved NP-hard from reduction from 3SAT
 The approximation of TSP is also hard
 We consider the EUcliden TSP
 Euclidean : The way our universe is assumed to be (the straight lone distance between two points is the shortest)
o This gives us the triangle inequality theorm  Meaning that if I have 3 points A,B and C; Distance from A to B is < distance from A to C to B (Euclidean Space)

21
Q

 Euclidean TSP has 3/s approximation