Record -
Answer :
data structure that stores subitems, with a name associated with each subitem
Array -
Answer :
a data structure that stores an ordered list of items, with each item is directly accessible by
a positional index
Homogeneous data elements
Linked list -
Answer :
data structure that stores *ordered* list of items in nodes, where each node stores data and
has a pointer to the next node; can have multiple subitems
Binary tree -
Answer :
a data structure that consists of nodes, with one root node at the base of the tree, and two
nodes (left child and right child) extending from the root, and from each child node
Can have no children, single left or right, or both right and left
Hash table -
1
, Answer :
data structure that stores *unordered* items by mapping (or hashing) each item to a loca-
tion in an array
Max-heap -
Answer :
a tree that maintains the simple property that a node's key is greater than or equal to the
node's childrens' keys
Min-heap -
Answer :
a tree that maintains the simple property that a node's key is less than or equal to the
node's childrens' keys
Graph -
Answer :
data structure for representing connections among items, and consists of vertices con-
nected by edges
Vertice -
Answer :
part of a graph the represents an item in a graph
Edge -
Answer :
part of a graph that represents a connection between to vertices in a graph
What is an advantage of a linked list over an array? -
2
Answer :
data structure that stores subitems, with a name associated with each subitem
Array -
Answer :
a data structure that stores an ordered list of items, with each item is directly accessible by
a positional index
Homogeneous data elements
Linked list -
Answer :
data structure that stores *ordered* list of items in nodes, where each node stores data and
has a pointer to the next node; can have multiple subitems
Binary tree -
Answer :
a data structure that consists of nodes, with one root node at the base of the tree, and two
nodes (left child and right child) extending from the root, and from each child node
Can have no children, single left or right, or both right and left
Hash table -
1
, Answer :
data structure that stores *unordered* items by mapping (or hashing) each item to a loca-
tion in an array
Max-heap -
Answer :
a tree that maintains the simple property that a node's key is greater than or equal to the
node's childrens' keys
Min-heap -
Answer :
a tree that maintains the simple property that a node's key is less than or equal to the
node's childrens' keys
Graph -
Answer :
data structure for representing connections among items, and consists of vertices con-
nected by edges
Vertice -
Answer :
part of a graph the represents an item in a graph
Edge -
Answer :
part of a graph that represents a connection between to vertices in a graph
What is an advantage of a linked list over an array? -
2