Graphs Flashcards

1
Q

What is an Undirected Graph?

A

A pair G = (V, E)
Where V is a set of vertices and E is a set of edges

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

What is the degree of a vertex?

A

The number of edges connected to a vertex

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

What is an adjacency list?

A

A linked list which stores information about which vertex is adjacent to which other vertex

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

What is an adjacency matrix?

A

An n × n matrix (Table) where the element
at row i and column j is a 1 if there is an edge between vertex i and vertex j, otherwise it is 0.
(Good for dense graphs with more edges than vertexes)

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

What is are directed graphs?

A

If a pair of vertices (u, v) is not the same as the pair (v, u), the graph is called a directed graph.
Uses arrows instead of lines.

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

What is a path?

A

A sequence of edges connecting one vertex to another

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

What can be said about a path where every vertex is distinct?

A

It is a simple path

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

What is a cycle?

A

A path that starts and ends at the same vertex

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

What is a connected graph?

A

A graph where every vertex is connected by at least one edge
(Not a complete graph)

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

What is a Euler cycle?

A

A cycle that visits every edge only once.

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

What makes a graph planar?

A

If it can be drawn on a plane without any crossing edges.

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

What is a clique?

A

A set of vertexes within a graph that are all connected by an edge.

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

What is a tree?

A

A connected, acyclic graph.

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

What do these terms mean when talking about trees:
- Root
- Leaf
- Parent

A

A root is the topmost vertex
A leaf is a vertex without any children (Vertex of 0)
A parent is a vertex with vertexes directly below it

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

What is a binary tree?

A

A tree with a degree of 2

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

What is a spanning tree?

A

A graph that contains all the vertices of G, but not necessarily all the edges

17
Q

What is a matching?

A

A subset of a graph’s edges with the
property that no two edges share a vertex

18
Q

What is a Bipartite Graph?

A

A graph that can be sectioned into two sets of vertices U and V, so that all edges go from a vertex in U to a vertex in V

19
Q

What is an Augmenting path?

A

A simple path that alternates between an edge outside the matching, and an edge inside the matching

20
Q

What is Berge’s Theorem?

A

A matching M is a maximal matching if and only if:
There exists no augmenting path in respect to M.

21
Q
A