Fall 22 Flashcards

1
Q

Which algorithm is used to find the augmenting path in Edmonds-Karl

A

BFS

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

Which algorithm can be used to find the maximum matching of a bipartite graph

A

Network flow

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

Which algorithm can be used to identify the connected components of an unweighted, undirected graph in O(V+E) time

A

BFS or DFS

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

Which algorithm is used when you are processing the sorted edges in Kruskal’s algorithm

A

Disjoint sets

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

I have a network of pipes that connect junctions. Each pipe has a length and a diameter. In my control center, I can turn pipes on and off. I am at junction A, and I have been given a chemical that will improve the longevity of each junction. I want to deliver the chemical to each junction. The problem is that the chemical corroded the pipes, so I want to minimize the inner surface area of pipes that the chemical touches. What algorithm should I use?

A

Minimum spanning tree of a weighted graph

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

Which algorithm can be used to find the minimum cut of a weighted graph?

A

Network flow

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

You have:
FBRRBABABBB

What is the pivot using median of 3

A

B

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