Final Flashcards

(38 cards)

1
Q

flow network

A

a directed graphG = (V;E) with a single source node s (no incoming
edges) and a single target node t (no outgoing edges), as well as a positive number c(e) for each edge
e 2 E, called the capacity of e.

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

flow

A

Let G be a flow network. A flow on G is given by a positive number f(e) for each edge
e in G satisfying the following two constraints:

Capacity Constraints. For each edge e, 0 <= f(e) <= c(e).

Flow Conservation. For each vertex v 2 V that is not the source or sink vertex in s = out s

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

residual graph

A

Let G be a flow network and let f be a flow on G. The residual graph of G and f,
denoted Gf , is the directed graph defined as follows. The vertices of Gf are the same as the vertices
of G. For each edge e = (u; v) in G, if f(e) < c(e) then we add the edge (u; v) to Gf , labelled with
the number c(e) 􀀀 f(e). If f(e) > 0, then we also add the edge (v; u) to Gf , labelled with the number
f(e).

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

augmenting path

A

is any simple path in Gf connecting s to t.

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

s-t cut

A

An s-t cut in G is a subset U V of the vertices
of G such that s in U and t not in U

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

delta

A

Let G be a flow network, let f be a flow on G, and let Gf be the residual graph. Let
be any integer. The graph Gf() is the new graph obtained from Gf by discarding all edges e in
Gf with weight strictly less than .

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

matching

A

is a set of edges E0 E such that no
pair of edges in E0 share a vertex.

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

bipartite

A

A graph G = (V;E) is bipartite if there is a partition of the vertices V into two sets
L;R such that every edge in E connects a vertex in L to a vertex in R.

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

vertex cover

A

is a set of vertices U V such that
every edge e 2 E is adjacent to a vertex in U.

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

flow network with demands

A

A flow network with demands is given by a directed graph G = (V;E) such that every
edge e has a positive number c(e) (called the capacity of e) and every node v has a number d(v) (called
the demand at v).

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

circulation

A

G = (V;E) is a function f : E -> R+
such that Capacity Constraints. For every edge e 2 E, f(e) c(e).
Demand Constraints. For every node v 2 V , in v - out v = d

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

A flow network with demands and lower bounds

A

is given by a directed graph G =
(V;E) such that every edge e has two non-negative numbers `(e) c(e) associated with it, and every
node v has a number d(v) associated with it.

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

circulation with lower bounds

A

Capacity Constraints. For every edge e 2 E, `(e) f(e) c(e).
* Demand Constraints. For every node v 2 V ,
X
e into v
f(e) 􀀀
X
e leaving v
f(e) = d(v):

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

linear constraint

A

on n real-valued variables x1; : : : ; xn is a constraint of the form
a1x1 + + anxn ./ b
where a1; : : : ; an; b 2 R and ./ 2 f=; g.

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

open halfspace

A

a set of points of the form {x 2 Rn | a * x < b} for a 2 Rn

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

closed halfspace

A

set of points of the form fx 2 Rn j a x <= bg.

17
Q

decision problem

A

subset of f0; 1g

18
Q

polynomial time

A

if there is a constant c 0 such that for every
input string x 2 f0; 1g, A halts after O(jxjc) computation steps

19
Q

poly time computable

A

if there is a polynomial time algorithm A such that for all x 2 f0; 1g, if
x 2 L then A(x) = Yes and if x 62 L then A(x) = No.

20
Q

P

A

{L {0; 1}* | L is polynomial-time computable}

21
Q

coNP

A

{L {0; 1}* | !L in NP}

22
Q

NP

A

{L {0; 1}* | L has polynomial time verifier}

23
Q

Verifier

A

algorithm V that receives two inputs, x input to L and y a certificate for x and satisfies the property p(x) = yes <=> there exists a y such that y < x^o(1), V(x,y) = “Yes”

24
Q

polynomial-time reduction

A

L2 is a function f : f0; 1g ! f0; 1g such that
* x 2 L1 <=> f(x) 2 L2.
* f is computable by a polynomial-time algorithm.

25
IS
IS := f(G; k) j G is a graph containing an independent set of size  kg :
26
NP-complete
if L 2 NP and for every problem L' 2 NP, L' p L.
27
kCOL
A k-colouring of G is a function  : V ! [k] such that for every edge uv 2 E, (u) 6= (v). If a graph G has a k-colouring then we say G is k-colourable. For any positive integer k we let kCOL := fG j G is a k-colourable graphg
28
TSP
TSP := f(P; c; k) j (P; c) is a TSP instance with a tour of cost <= k} :
29
HAm Path
from s to t in G is a path that starts at s, ends at t, and visits every vertex exactly once. A Hamiltonian cycle is a cycle in G that visits every vertex exactly once.
30
SUBSUM
SUBSUM := f(w1;w2; : : : ;wn;W) j there is an I  [n] s.t. (1) holds.g
31
c-approximation
Let O be an optimization problem with objective function v, and let A be an algorithm solving O. For any input I let OI denote the optimal feasible solution for O on input I. Let c  1 be any real number. We say that A is a c-approximation algorithm if, for every input I, either v(OI ) v(A(I))  c if O is a maximization problem, or v(A(I)) v(OI )  c if O is a minimization problem.
32
Load Balancing
We have m  3 “machines” M1;M2; : : : ;Mm, with m fixed in advance. As input, we are given n “jobs”, each of which has a processing time t1; t2; : : : ; tn (assume each ti is a non-negative rational). The goal is to assign the n jobs to the machines so that the maximum running time for any machine is minimized; that is: minimize max fTi j i 2 [m]g where Ti is
33
The center selection problem is defined as follows. As input, we are given a set of points S  M and a positive integer k. The goal is to choose a set of points C  M with jCj  k such that the objective function
max s2S min u2U d(s; u) is minimized
34
Weighted vertex cover
The Weighted Vertex Cover problem is defined as follows. As input, we are given a graph G = (V;E) and a positive number weight w(u)  0 for every vertex u 2 V . The goal is to find a vertex cover U  V of G such that w(U) := X u2U w(u) is minimized.
35
Integer Progra
An integer program is a linear program with the extra constraint that every variable xi is required to take integer values
36
Minimum set cover
As input, we are given a finite set U, which for convenience we will think of as being [n] = f1; 2; : : : ; ng for some positive integer n. We are also given a collection of subsets S1; S2; : : : S ; Sm  [n]. The goal is to select C  [m] such that i2C Si = [n], while jCj is minimized.
37
KnapSAck
As input, you are given a set of n positive integer pairs f(wi; vi) j i 2 [n]g, along with another positive integer B  0. The goal is to choose a subset S  [n] such that P i2S wi  B and P i2S vi is maximized.
38
MAX 3Sat
The Max 3-SAT problem is the following. As input, we are given a 3-CNF formula F = C1 ^ C2 ^    ^ Cm on n variables x1; x2; : : : ; xn. The goal is to find an assignment x 2 f0; 1gn that satisfies as many clauses as possible.