Graph Theory Flashcards

0
Q

Edge

A

Line Segments or curves that start and end at vertices.

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

Graph

A

Consists of a finite set of vertices(points) and line segments or edges(curves). Edges start and end at vertices.

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

Equivalent Graph

A
  1. Same number of vertices and edges.

2. Check for adjacent vertices connected in the same way.

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

Adjacent Vertices

A

Two vertices with an edge connecting them.

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

Degree of a Vertex

A

Found by counting the total number of edges at the vertex. Loops add two.

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

Loop

A

Edge which connects a vertex to itself. Degree is 2.

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

Path

A
  1. A route in a graph sequence of adjacent vertices.
  2. Written as a list of vertices.
  3. Using an edge only once.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Circuit

A

A path that begins and ends at the same vertex

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

Connected Graph

A

Every pair of vertices has a path that contains them. You can travel from any vertex to any other vertex in the graph.

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

Bridge

A

An edge when removed changes the graph from connected to disconnected.

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

Euler Path

A

A path that travels through EVERY edge of a graph once and only once.

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

Euler Circuit

A

A circuit using EVERY edge exactly once. Must begin and end at the same vertex.

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

Euler’s Theorem

A

The number of odd vertices determines if a graph has Euler paths and Euler circuits.
For Connected graphs:
No odd -> at least on Euler Circuit/Path
2 -> No Euler Circuit, 1 or more Euler paths
greater than 2 -> No Euler paths/circuits

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

Fleury’s Algorithm

A

Helps to find Euler Paths and Circuits.

1) If 2 odd vertices(exactly) choose one odd to start the path and end at the other odd.
2) If no odd, then an Euler circuit, start at any vertex
3) Number the edges as you trace through the graph. After you travel over an edge dot that edge. Do not choose a bridge if you have the choice. Only travel over the bridge if there’s no other alternative.

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

Components

A

Pieces of a disconnected Graph

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

Traveling Salesperson Problem

A

The problem to find the Hamilton Circuit with the optimal solution, that is to say, with the smallest sum of weights.

16
Q

Complete Graph

A

A graph that has an edge between each pair of vertices.

17
Q

Number of Hamilton Circuits in a complete graph?

A

(n-1)! where n=vertices

18
Q

Neighbors

A

Two vertices connected by an edge. In a complete graph all vertices are neighbors.

19
Q

Weighted Graph

A

A graph whose edges have numbers that can be summed.

20
Q

Nearest Neighbor Method

A
  1. Use a complete weighted graph
  2. Identify the starting vertex
  3. Choose edge with smallest weight. Move along edge to second vertex.
  4. Choose next connected edge with smallest weight that does not lead to a vertex already visited.
  5. Continue steps until all vertices are visited
  6. Return to the starting point
  7. Sum up weights
21
Q

Brute Force Method

A
  1. Model problem wit a complete weighted graph
  2. Make a list of all possible Hamilton Circuits.
  3. Determine the sum of the weights of the edges for each of the Hamilton Circuits.
  4. The Hamilton Circuit with the smallest weight sum is the optimal solution
22
Q

Tree

A

Connected Graph. No Circuits. One and only one path joining any two vertices. Every Edge is a bridge. N vertices, has n-1 edges.

23
Q

Minimal Spanning Tree

A

Spanning tree with the smallest possible total weight.

24
Q

Kruskal’s Algorithm

A

Used to find a minimal spanning tree of a connected, weighted graph.

  1. Draw all Vertices
  2. List the weights of the edged in order from smallest to largest.
  3. Add in edge with the smallest weight
  4. Continue to add acceptable edges that do not form a circuit. Stop when all vertices are connected.