graph theory Flashcards

1
Q

capital of east prussia

A

Konigsberg aka Kaliningrad in Russia

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

an island name _____ is in the middle of where the 2 rivers join

A

Kniephof

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

who explained why crossing all7 bridges w/o crossing a bridge twice was impossible

A

Leonard Euler in 1736 presented the soln to the problem before the Russian academy

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

it is a collection of points called vertices or nodes and line segments or curves called edged that connect the vertices

A

graph

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

briefly explain what is vertices and edges in a graph

A

vertices: points
edges: line segments that connects the vertices

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

define loop

A

an edge that connects a vertex to itself

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

define multiple edges

A

if 2 vertices is connected by more than one edge

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

define simple graph

A

graph with no loops and no multiple edges

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

define the following
equivalent:
connected:
bridge:

A

equivalent: same vertices connected in the same way
connected: if any 2 vertices, there is at least on path that joins them
bridge: is an edge that when you remove makes the graph disconnected

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

define path

A

it is an alternating sequences of vertices and edges.
it can be seen as a trip from one vertex to another using edges of a graph
(see example in ppt - no repeated vertices)

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

what does it mean if a path begins and ends with the same vertex

A

it is closed path or a circuit/ cycle

(ex: a >b >c >d >h >g >f >a
since it has a length of 7 = 7-cycle)

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

define
adjacent:
degree:

A

adjacent: 2 vertices are adjacent if there is an edge joining them
degree: vertex is the no. of edges attached to it

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

what do u call a graph that has a degree of each vertex is 0

A

null or disconnected graph

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

define complete graph

A

has an edge connecting every pair of vertices (shld not contain multiple edges)
note: if every pair of vertices are adjacent = complete

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

what is the formula of a complete graph with “n” vertices

A

refer to ppt
1/2n(n-1) for (n should be bigger than 3 or equal)

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

it is a closed path that contains all the edges of the graph

A

Euler Graph
(circuit that covers all the edges ones)

17
Q

a graph that has an Euler circuit

18
Q

a connected graph is Eulerian if and only if each vertex has _____

A

even degree

19
Q

it is of a graph is a path that contains all the edges of the graph

A

Euler paths

20
Q

a graph has an Euler path if and only if exactly 2 of its vertices have _____

A

odd degree

21
Q

the euler path will begin and end with the _____

A

old-degree vertices

22
Q

difference between
Euler circuit -
Euler paths -

A

Euler circuit - each vertex has even degree
Euler paths -exactly 2 of its vertices have odd degree (basically start and end at the odd)

23
Q

briefly explain Euler’s theorem

A

for connected graph:
1. all vertices r even degree= have at least 1 Euler circuit
2. two vertices are odd degree = Euler path
3. more than 2 odd degree vertices = no Euler path nor circuits

24
Q

a Hamiltonian path of a graph is path passing through _____ of the graph ______

A

each vertex
exactly once

25
if the Hamiltonian path is closed, it is called _____ aka ______
Hamiltonian cycle Hamiltonian
26
a complete graph with more than 2 vertices has a ______
Hamiltonian circuit
27
2 Hamiltonian circuits are the same if they oaps through the same _____ in the same order, regardless of the vertex where they _____
vertices begin and end
28
define tree
any 2 vertices are connected to 1 path only
29
properties of trees:
has no circuits connected graphs every edge in a tress is a bridge tree with n vertices has exactly n-1 edges
30
it is an undirected, disconnected, acyclic graph
forest
31
a disjoint collection of tress
forest
32
this tress is often finding the minimum total weight
minimum spanning trees
33
what are the 2 algorithm to find the minimum spanning tree - briefly explain
prim's algorithm: vertex chosen at random find all edges that connect the tree to new vertices with minimum no. kruskal's algorithm: sort all edges from low to high take edge with lowest weight
34
a graph is ____ if it can be drawn in such a way that no edges cross. this means that any 2 edges can meet only at an endpoint
planar
35
how to know if it is a planar graph
v + f = e + 2 v=vertices f=face e=edges
36
how to do graph coloring
no same adjacent color use smallest no. of colors
37
the chromatic number of a planar graph is ____
4 (four-color theorem)
37
why is graph coloring important (give examples of graph coloring)
to assign diff colors to conflict things, we can separate them into diff grps (scheduling problems frequency allocation to avoid conflicts)