Algorithms Flashcards

1
Q

What are the advantages and disadvantages of First-fit decreasing algorithm?

A

Advantages: easy to implement.
Disadvantage: may not provide optimal solution.

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

Advantages and disadvantages of full bin algorithm?

A

Advantages: provides good solution.
Disadvantages: difficult to do with large amounts of numbers.

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

What does critical path analysis enable us to do?

A

Plan and monitor complex projects

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

What does critical path analysis
aim to do?

A

Find the shortest possible time a project can be completed.

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

Given we have the total of the nodes in a graph, how do we find out how many arcs are in the graph?

A

Total order of nodes/2

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

If a graph has a total order of nodes=17 are we able to construct it , explain your reasoning.

A

We can’t , arcs have an even number of ends and also the number of arcs is determined by the total order/2 , we can’t have .5 of a node.

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

What is a walk?

A

A sequence of vertices that flow , you can walk on each edge and vertex more than once.

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

What is a path?

A

Sequence of edges that flow on, can go through the same vertex more than once.

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

What is a cycle/circuit?

A

Path where End vertex is the start vertex

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

What is a simple graph?

A

A graph with no loops or multiple edges.

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

What is a connected graph.

A

A connected graph has every vertex in the graph connected.

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

What is a complete graph?

A

A graph where all vertices are directly connected.

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

All vertices in a graph are directly connected. Find (algebraically) the number of edges in the graph.

A

1/2 n(n-1)

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

What are bipartite graphs?

A

A graph with 2 sets of vertices that can be only have one edge connecting to each vertex directly (think of a neural think network and also those join word to definition things).

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

What is planar graph?

A

A graph with no overlapping edges.

17
Q

What is an isomorphic graph?

A

Identical graphs drawn differently.

18
Q

Which algorithm is best suited for traversing heavily dense graphs

A

Prime algorithm.

19
Q

Of what order/complexity are prims and Krystal’s algorithms?

20
Q

After using Kruskals and Prims algorithms starting with n edges.
How many edges will the minimum spanning tree have?

21
Q

Define the term tree.

A

A graph with no cycles.

22
Q

What do trees include?

A

All vertices.

23
Q

Eulerian graphs are?

A

Connected graphs with all nodes of even valency.

24
Q

Semi-Eulerian graphs are?

A

A graph with exactly 2 nodes with odd valency.

26
Q

What are the purposes of dummy activities?

A

-ensure each activity has a unique pair of start and end nodes.
- to show dependency in complex situations.