Graph and Tree Flashcards

1
Q

Undirected graphs

A

Two vertices u and v in graph G are call neighbours in G if u and v are endpoints of an edge e of G. e connect u and v

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

Degree of vertex

A

The number of edges that incident with it

deg(v)

deg(v)=0 is called isolated
A vertex is pendant iff has a deg of one

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

Σdeg(v)=2e

A

Σdeg(v)=2e

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

An undirected graph has an even number of vertices of odd degree

A

An undirected graph has an even number of vertices of odd degree

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

IN and OUT degree

A

in-degree of a vertex v,
denoted by deg-(v)

Out-degree of a vertex v,
denoted by deg+(v)

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

Let G=(V,E) be a graph with directed edges

A

Σdeg-=Σdeg+=|E|

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

Graph Kn

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

Cycle

A

has at least 3 vertices

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

The wheels

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

The cube

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

Bipartite Graph

A

Given two non-empty set of vertices
and in graph G
V1 and V2

V1^V2=0/
V1vV2=G

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

Induced subgraph

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

Graph isomorphism

A

The simple G1=(V1,E1) and G2(V2,E2) if there exists one to one and onto function

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

A path vs a cycle

A

Path visits all the vertices exactly once but doesn’t have to start and ends at the vertex

Cycle is the same thing but starts and ends at the same vertex

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

Euler cycle

A

Must be a connected graph
Must start and ends at the same vertex
Visit each edge once
At least 2 vertices has even degree

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

Euler path

A

Must be a connected graph
Visit each edge once
Must have exactly 2 vertices with odd degree

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

Hamilton Path

A

A simple path in graph G passes through every vertex exactly once

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

Hamilton cycle

A

A simple cycle in graph G passes through every vertex exactly once

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

If G=(V,E) is a graph with Hamiltonian cycle, then G-v is connected for every vertex vCV

20
Q

Let G=(V, E) be a bipartite graph with by partition V=V1vV2

A

If G has a hamiltonian cycle the |V1|=|V2|

21
Q

If deg(x)+deg(y)>=n-1 for all x,y CV with x/=y

A

Then G has a hamiltonian path

22
Q

Planar graph

A

if it can be drawn in the plane without any edges crossing.

23
Q

Euler’s formula for planar

24
Q

Σdeg(fi)=2|E|

A

Σdeg(fi)=2|E|

25
If G is a connected planar graph
has the max number of edges e≤3v-6
26
If G is a connected planar simple graph with V≥3 and no circuit length 3
then e≤2v-4
27
DUal graph
in embedded planar graph, and has vertices in the middle of the face and connect with the same edges as the og
28
The 5 platonic solid
29
Tree
G is a tree if G is connected and does not contain a cycle
30
Forest
G is a forest if G does not contain a cycle (every component of a forest is a tree)
31
a leaf or pendant vertex
A vertex of deg 1
32
If T=(V, E) is a tree with leaf v the T-v is a tree
If T=(V, E) is a tree with leaf v the T-v is a tree
33
If T=(V, E) is a tree and u, v∈ V are distinct, there is a unique path in T with ends u,v
If T=(V, E) is a tree and u, v∈ V are distinct, there is a unique path in T with ends u,v
34
Main properties of tree
If T= (V, E) is a tree the |V|=|E|+1 If G=(V,E) is a forest with K trees then |V|=|E|+K
35
If G=(V, E) satisfies|V|=|E|+1 then G must have a vertex of deg 0 or at least two degrees of 1
If G=(V, E) satisfies|V|=|E|+1 then G must have a vertex of deg 0 or at least two degrees of 1
36
Properties of trees
A tree with n vertices has n-1
37
Rooted tree T=(V, E) is a tree with a distinguished vertex called the root
Rooted tree T=(V, E) is a tree with a distinguished vertex called the root the root is a unique vertex at level 0
38
Rooted tree terminology
The height is the number of a rooted tree is the max level of the vertex Parent, Child Ancestor and descandent
39
Subtree
40
Isomorphic of tree
Bijection 1) {f(u),f(v)} ∈E <==>{u,v} ∈E 2. f send the root of T1 to the root of T2
41
M-ary
is the tree with m children binary means some vertices have 2 children 3-ary means some has 3 children
42
Pre-order traversal
Visit root then visit subtree from left to right
43
Post-Order traversal
Visit subtrees left to right then visit root
44
Spanning tree
Let G be a connected multigraph. A subgraph T of G is a spanning tree if T spans G IN order to find spanning subgraph it has no cycle must span 3
45
Dirac theorem
If G is a simple graph with n vertices with n>3 such that the degree of every vertex in G is at least n/2, then G has a Hamilton cycle
46
Ore theorem (Hamilton)
If G is a simple graph with n vertices with n>3 such that degu+degv>n for every pair of nonadjacent vertices u and v in G, the G has a Hamilton cycle