unit 5 part 3 Flashcards

1
Q

Hamilitonian path

example

A

each vertex once

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

Hamiltonian circuit/graph/cycle

example

A

first and last vertex same

hypercube, square

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

not ever a hami cycle

A

bipartite no split vertices equal

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

Rules for hami path/cycle

A

G: n vertices, -> path: n-1 edges, cycle: n edges

deg(V) = K path: 1 <= edges incident on V <= 2
cycle = 2 edges

all vertices of G

path through V delete all unused edges incident on V

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

Trees denoted by

A

T

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

When graph -> tree

A

connected, no closed loops

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

rooted tree

A

root (indegree 0) uppermost-> other away

directed path to each vertex fro root (indegree 1) lower

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

leaf node

A

pendant vertex

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

forest

A

disconnected graph

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

tree def

A

connected graph -> n vertices, n-1 edges

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

directed tree

A

up to down, downward arrows

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

root

A

indegree 0

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

parent

A

predecessor to node

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

child

A

descendent of node

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

siblings

A

same parent

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

ancestors

A

node connected to all lower level nodes

17
Q

descendents

A

all lower level nodes

18
Q

leaf

A

no children

19
Q

internal vertices

20
Q

subtree

A

tree child of node

21
Q

length(V)

A

unique path from root to V

22
Q

height

A

max levels

length of path from root to furthest node

23
Q

m-ary trees

A

rooted tree every internal node has m children

24
Q

2-ary tree called

A

binary tree

25
balanced tree
rooted tree height h, leaves all atlevels h or h-1
26
full binary tree
all trees at level l, 0 or 2 children each node
27
spanning tree
subG of connected G, all vertices of G
28
finding spanning tree
bfs and dfs
29
bfs
all vertices on same level first
30
dfs
explores as far as possible before backtracking