Introduction - Chapter 1 Flashcards
A blank is a way of organizing, storing, and performing operations on data.
data structure
A blank is the data structure that stores subitems, often called fields, with a name associated with each subitem.
record
An blank is a data structure that stores an ordered list of items, where each item is directly accessible by a positional index.
array
A blank is a data structure that stores an ordered list of items in nodes, where each node stores data and has a pointer to the next node.
linked list
A blank is a data structure in which each node stores data and has up to two children, known as a left child and a right child.
binary tree
A blank is a data structure that stores unordered items by mapping (or hashing) each item to a location in an array.
hash table
A blank is a tree that maintains the simple property that a node’s key is greater than or equal to the node’s childrens’ keys.
max-heap
A blank is a tree that maintains the simple property that a node’s key is less than or equal to the node’s childrens’ keys.
min-heap
A blank is a data structure for representing connections among items, and consists of vertices connected by edges.
graph
A blank represents an item in a graph.
vertex
An blank represents a connection between two vertices in a graph.
edge
A linked list stores an blank of items
ordered list
A node in blank can have zero, one, or two children.
binary tree
The data stored in a blank can be a record with multiple subitems.
list node
Items stored in an array can be accessed using a blank
positional index
Inserting an item at the end of a 999-item array requires how many items to be shifted?
0
Inserting an item at the end of a 999-item linked list requires how many items to be shifted?
0
Inserting an item at the beginning of a 999-item array requires how many items to be shifted?
999
Inserting an item at the beginning of a 999-item linked list requires how many items to be shifted?
0
An blank is a set of commands that must be followed for a computer to perform calculations or other problem-solving operations.
algorithm
According to its formal definition, an algorithm is a blank carried out in a specific order to perform a particular task.
finite set of instructions
An algorithm is not the blank; it is simple logic to a problem represented as an informal description in the form of a flowchart or pseudocode.
entire program or code
Input -> blank -> output
algorithm
A blank can be defined as a real-world problem or real-world instance problem for which you need to develop a program or set of instructions.
problem