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

A
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

A

V-E+F=2

24
Q

Σdeg(fi)=2|E|

A

Σdeg(fi)=2|E|

25
Q

If G is a connected planar graph

A

has the max number of edges

e≤3v-6

26
Q

If G is a connected planar simple graph with V≥3 and no circuit length 3

A

then e≤2v-4

27
Q

DUal graph

A

in embedded planar graph, and has vertices in the middle of the face and connect with the same edges as the og

28
Q

The 5 platonic solid

A
29
Q

Tree

A

G is a tree if G is connected and does not contain a cycle

30
Q

Forest

A

G is a forest if G does not contain a cycle (every component of a forest is a tree)

31
Q

a leaf or pendant vertex

A

A vertex of deg 1

32
Q

If T=(V, E) is a tree with leaf v the T-v is a tree

A

If T=(V, E) is a tree with leaf v the T-v is a tree

33
Q

If T=(V, E) is a tree and u, v∈ V are distinct, there is a unique path in T with ends u,v

A

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
Q

Main properties of tree

A

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
Q

If G=(V, E) satisfies|V|=|E|+1 then G must have a vertex of deg 0 or at least two degrees of 1

A

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
Q

Properties of trees

A

A tree with n vertices has n-1

37
Q

Rooted tree T=(V, E) is a tree with a distinguished vertex called the root

A

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
Q

Rooted tree terminology

A

The height is the number of a rooted tree is the max level of the vertex

Parent, Child

Ancestor and descandent

39
Q

Subtree

A
40
Q

Isomorphic of tree

A

Bijection

1) {f(u),f(v)} ∈E <==>{u,v} ∈E
2. f send the root of T1 to the root of T2

41
Q

M-ary

A

is the tree with m children

binary means some vertices have 2 children
3-ary means some has 3 children

42
Q

Pre-order traversal

A

Visit root then visit subtree from left to right

43
Q

Post-Order traversal

A

Visit subtrees left to right then visit root

44
Q

Spanning tree

A

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
Q
A