Please enable JavaScript.
Coggle requires JavaScript to display documents.
cs 361 part 1 -
cs381 module 4,5 - Coggle Diagram
cs 361 part 1 -
cs381 module 4,5
-
-
-
revisit 381 notes module 3 - functions, sequences and summations
-
-
data structures
trees
4 ways to traverse
pre-order
examines node, processes data at node, moves on to children of that node
-
-
in-order
-
examines node, examines left child of that node, processes left child data, then returns to that node and processes its data, then examines right child and examines its data,
-
-
post-order
examines node, examines children of that node, processes data of children of that node before processing that node
-
-
-
-
-
paths
sequence of nodes where the first node is a parent of the next node and each node after that is a child of the previous node
three valid types
[parent, child, child of child, etc..]
-
-
-
two types
binary
-
binary search trees
children on left <= parent, children on right >= parent
each node >= its left descendents, and <= its right descendents
-
two types of containers
-
7 sequential containers
-
-
-
-
2 adapters
-
stack
can convert vector, list, or deque into stack
-
reading loops
-
the condition of the loop is always checked before incrementation, incrementation is executed before the body of the loop
-
-
-