Final Flashcards

1
Q

Packing Problems

A

Choose k objects among a set given certain constraints

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

Independent Set Problem

A

Given G and k, does G contain an independent set of at least size K

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

Independent Set

A

Set of vertices in a graph where no two nodes are adjacent

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

Set Packing

A

Given a set U, a collection of S subsets, and k, is there a collection of at least k subsets where no two subsets intersect

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

Covering Problems

A

Given a set, choose a subset of only k objects

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

Vertex Cover Problem

A

Given G and k, does G contain a vertex cover of at most size k?

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

Vertex Cover

A

Set of vertices that includes at least one endpoint of every edge of the graph

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

Set Cover

A

Given a set U, a collection of S subsets, and k, is there a collection of at most k subsets whose union is equal to all of U?

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

Partitioning Problems

A

Search over all ways to divide a collection of objects into subsets so that each object appears in exactly one of the subsets

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

3-D Matching Problem

A

Given disjoint sets X, Y, and Z, each of size n, and given set T as a subset of X x Y x Z of ordered triples, does there exist a set of n triples in T so that each element of X union Y union Z is contained in exactly one of these triples?

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

Graph Coloring

A

Given G and k, does G have a k-coloring?

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

Sequencing Problems

A

Search over all permutations of a collection of objects

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

Hamiltonian Cycle

A

Visits each vertex in G exactly once, starting and ending at the same node

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

Hamiltonian Cycle Problem

A

Does a directed graph G contain a Hamiltonian Cycle?

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

Hamiltonian Path Problem

A

Does directed graph G contain a Hamiltonian Path

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

Hamiltonian Path

A

Visits each vertex in G exactly once

17
Q

Traveling Salesman

A

Given a set of distances on n cities, and a bound D, is there a tour length of at most D?

18
Q

TF: Numerical Problems are always NP-complete

A

False. For small instances, Dynamic Programming can solve in polynomial time

19
Q

Subset Sum Problem

A

Given a set of numbers and a target, is there a subset of numbers that add up to exactly the target?

20
Q

3-SAT Problem

A

Given a set of clauses each of length 3 over a set of variables from 1 to n, does there exist a satisfying truth assignment?

21
Q

NP

A

Nondeterministic Polynomial Time

22
Q

Min cut

A

Cut with minimum outward flow separating s and t

23
Q

s-t path

A

P goes from s to t without visiting any node more than once

24
Q

Ford-Fulkerson Runtime

A

O(mC) - at most C iterations of max flow on m edges

25
Q

Edges in residual graph

A

2m

26
Q

Bipartite Matching runtime

A

O(mn)