Graph theory Flashcards

1
Q

Define transitivity for a graph

A

if a is related to b and b is related to c then a must be related to c.

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

Imagine you have Gi, Gj graphs how would you figure out whether they are isomorphic to each other?

A
  1. Look at each graph’s degree and determine if it matches with another graph. if no (it is subset in the partition)
  2. if all vertices in Gi have an equal degree with Gj then they are isomorphic.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does degree mean?

A

The number of edges a vertical has on an undirected graph.

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

in a directed graph; what is the difference between out-neighbor and in-neighbor?

A

out-neighbor: any other vertex that can be reached by following an edge that points away from the given vertex. EX A->B then B is out-nerighbor.

in-neighbor: any vertex from which the given vertex can be reached by following an edge that points towards the given vertex. EX A<-B then B is a in-neighbor

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

in a directed graph; what is the difference between out-degree and in-degree?

A

Out-degree is the number of edges going out from that vertex to other vertices (number of out-neighbors)

hin-degree of a vertex is the number of edges coming into that vertex from other vertices (the number of in-neighbors).

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

what word do you use when you want to solve algorithms in an alphabetic order?

A

lexiographic order

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

How would you describe DFS

A

You want to find the route that go farthest before backtracking

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

How would you decribe BFS?

A

Explores all neighbors before moving to the next

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

How would you do Topological sort?

A
  1. consider in lexiographic order the directed edges and note delevery/finish-time.
    call DFS to compute finish time
    as vertex v finished, add to front of list
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How would you do SCC(strongly connected components)

A
  1. in lexicographic order consider directed edges and note discovery/finish time.
  2. group vertacies
  3. note in krøllet parenteser your grouped vertcies.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly