Pseudo Code Flashcards

1
Q

Karatsuba’s Algorithm

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

Dijkstra’s Algorithm

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

DFS Recursive

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

DFS - Stack implementation

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

What is the pseudo code for the DFS algorithm which determines if G is a DAG (directed acyclic graph)

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

Write the pseudo code for a linearisation algorithm which runs in time O(m+n)

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

Write the algorithm which finds a

SCC (Strongly Connectied Component) in a graph G

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

Write the pseudo code for Prim’s algorithm

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

What is the pseudo code for Kruskal’s algorithm?

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

Pseudo code for fractional knapsack (greedy) algorithm:

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

Pseudo Code for Interval Selection (Activities) Problem:

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

Pseudo code for Bellman-Ford Algorithm

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

Describe the pseudo code for solving the all-pair shortest path problem

(Floyd-Warshall Algorithm)

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