flipped learning graphs and trees Flashcards

1
Q

what are some common uses for graphs

A

route planning, maps and connections

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

what is the difference of the two types of graph, directed and undirected

A

directed graphs have all the edges with only one direction whereas undirected has edges with both directions

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

what 2 ways can be used to represent a graph and which one is most efficient

A

table and a list, the list being more efficient

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

what makes adding and removing nodes difficult when the graph is represented as a table or list

A

it is hard to see the impact on other nodes or the connections

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

what is the name of the top node in a tree

A

the root node

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

what is the name of the connection in a tree

A

branches

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

what is the name of the furthest out nodes

A

leaf nodes

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

what is teh name of the nodes directly connected under another one

A

its children

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

what are pointers used for

A

telling the algorithm or user which way to go at a branch

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

like graphs what 3 properties do trees have

A
  • they are connected
  • unidirectional
  • no cycles
How well did you know this?
1
Not at all
2
3
4
5
Perfectly