Unit 10: Data Structures and Algorithms Flashcards
Is a way of organizing, storing, and performing operations on data. Operations performed on a data structure include accessing or updating stored data, searching for specific data, inserting new data, and removing data.
Data structure
Is the data structure that stores subitems, often called fields, with a name associated with each subitem.
Record
A data structure that stores an ordered list of items, where each item is directly accessible by a positional index.
Array
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
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
Is a data structure that stores unordered items by mapping (or hashing) each item to a location in an array.
Hash table
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
Is a tree that maintains the simple property that a node’s key is less than or equal to the node’s childrens’ keys
mini-heap
Is a data structure for representing connections among items, and consists of vertices connected by edges
Graph
Represents an item in a graph.
Vertex
Represents a connection in a graph.
Edge
Describes a sequence of steps to solve a computational problem or perform a calculation.
Algorithm
Specifies an input, a question about the input that can be answered using a computer, and the desired output.
Computational problem
Problems are a set of problems for which no known efficient algorithm exists.
Np-complete
Efficient algorithm
is one whose runtime increases no more than polynomially with respect to the input size.