Graph + Tree Features Flashcards

(18 cards)

1
Q

Trees

A

A tree is a connected form of a graph.

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

Node (tree)

A

An item in the tree

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

Root Node (tree)

A

top node in the tree

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

Edge/arc/branch (tree)

A

Connects two nodes together

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

Root (tree)

A

A single node with no incoming nodes

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

Child (tree)

A

A node with incoming edges

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

Parent (tree)

A

A node with outgoing edges

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

Subtree (tree)

A

Subsection of a tree consisting of a parent and all the children of a parent

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

Leaf (tree)

A

A node with no children

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

Binary Tree

A

Type of tree which each node has a maximum of two children.

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

Benefit of a binary tree

A

Easy to search through

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

Pre-order traversal

A

Root node, left subtree, right subtree.

outline the tree and follow it

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

In-order traversal

A

Left subtree, Root node, Right Subtree.

go as left as you can, take note, back track take note go as left

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

Post-order traversal

A

left subtree, right subtree, root node

deepest first and retreat

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

Graph

A

set of vertices/nodes connected by edges

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

Directed Graph

A

The edges can only be traversed in one direction.

17
Q

Undirected Graph

A

The edges can be traversed in both directions.

18
Q

Weighted Graph

A

A cost is attached to each edge.