final Flashcards

1
Q

spanning tree

A

A subset of edges of a graph that connects all the vertices without forming a cycle

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

MST

A

a spanning tree with the smallest possible total edge weight

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

Generic-MST Algorithm

A

An algorithm for finding a minimum spanning tree by adding safe edges iteratively

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

safe edge

A

An edge that can be added to the current tree without violating its properties as part of an MST

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

cut

A

a partition of the vertices of a graph into two disjoint subsets

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

light edge

A

the smallest weight edge crossing a given cut

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

edge replacement

A

The process of adding and removing edges to maintain a spanning tree structure

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

Prim’s Algorithm

A

A greedy algorithm that grows an MST starting from an arbitrary vertex

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

Kruskal’s Algorithm

A

A greedy algorithm that builds an MST by sorting edges and adding them while avoiding cycles

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

Union-Find Data Structure

A

A data structure that efficiently supports union and find operations for disjoint sets

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

Single-Source Shortest Path (SSSP)

A

The problem of finding the shortest paths from a single source vertex to all other vertices

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

relaxation

A

The process of updating an estimate of the shortest path in shortest-path algorithms

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

Dijkstra’s Algorithm

A

An algorithm for solving the SSSP problem on graphs with non-negative weights

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

Fibonacci Heaps

A

A data structure used to improve the running time of algorithms like Prim’s and Dijkstra’s

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

Flow Network

A

A directed graph with a capacity assigned to each edge, used to model flow problems

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

(s, t)-Flow

A

A function that represents the flow of material from source s to sink t under capacity and conservation constraints

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

Feasible Flow

A

A flow that satisfies capacity constraints

18
Q

residual graph

A

A graph showing remaining capacities and possible reverse flows after some flow has been pushed

19
Q

Max-Flow Min-Cut Theorem

A

States that the maximum value of an (s, t)-flow equals the capacity of the minimum (s, t)-cut

20
Q

Augmenting Path

A

A path in the residual graph where additional flow can be pushed from s to t

21
Q

Ford-Fulkerson Algorithm

A

A method to compute the maximum flow in a flow network by iteratively augmenting flow
along paths in the residual graph

22
Q

Edmonds-Karp Algorithm #1

A

An implementation of Ford-Fulkerson that selects the widest augmenting path (the one with the largest bottleneck value)

23
Q

Edmonds-Karp Algorithm #2

A

An implementation of Ford-Fulkerson that selects the shortest augmenting path in terms of edges (the smallest number of edges)

24
Q

Bipartite Graph

A

A graph whose vertex set can be divided into two disjoint sets such that every edge connects a vertex from one set to the other

25
Q

Matching

A

A subset of edges in a graph such that no two edges share a vertex

26
Q

Maximum Matching

A

A matching that contains the largest possible number of edges

27
Q

Tractability

A

A problem is
considered tractable if it can be solved in polynomial time, making it reasonably solvable

28
Q

Hamiltonian Cycle

A

A simple cycle in a graph that visits every vertex exactly once

29
Q

Hamiltonian Cycle Problem

A

The decision problem of determining whether a graph contains a Hamiltonian cycle

30
Q

Decision Problem

A

A problem with a yes/no answer, such as ”Does the graph have a flow of value k?”

31
Q

Search/Optimization Problem

A

A problem where the goal is to find the best solution, such as ”What is the maximum flow value?”

32
Q

Reduction

A

The process of transforming one problem into another in polynomial time to compare their hardness.

33
Q

NP

A

Nondeterministic Polynomial-Time
The class of problems that can be guessed and verified in polynomial time

34
Q

NP-Complete

A

A problem that is in NP and is as hard as every other problem in NP

35
Q

Boolean Satisfiability Problem (SAT)

A

The decision problem of determining whether there exists an assignment of Boolean values to variables that satisfies a given CNF formula

36
Q

P = NP

A

A major unsolved question in computer science, asking whether every problem in NP can be solved in polynomial time

37
Q

Traveling Salesman Problem (TSP)

A

The problem of finding the shortest possible route that visits each city exactly once and returns to the starting city

38
Q

Approximation Algorithm

A

An algorithm that provides a solution within a provable factor α of the optimal solution
ALG / OPT < α

39
Q

Randomized Algorithm

A

An algorithm that uses randomness and may provide correct solutions with high probability or run in polynomial time with high probability.

40
Q

respects (cut)

A

A cut (S, S ̄) respects A ⊆ E if no edge in A crosses (S, S ̄)

41
Q

sparse graph

A

O(n)

42
Q

dense graph

A

O(n^2)