CS 2.1 -definitions (ALEVEL) Flashcards
(28 cards)
multi -dimensional arrays
array where each data item is located using multiple indices
single-dimensional arrays
array where each data item can be located using single index
dictionaires
data structure consisting of set of keys that are mapped to corresponding values
dynamic structures
data structure whose memory allocation size can change throughout execution of program
graphs
data structure consisting of set of vertices connected by edges
Hash tables
data structure where hashing algorithm creates a mapping between keys and values, data item can be directly accessed by recalculation without any search
queues
FIFO
stack
LIFO
Static structures
data structure that is allocated a fixed amount of memory space, which does not change throughout the execution of program
Trees
data structure that uses set of linked nodes to form a hierarchical structure starting at root node, each node is a child of a parent node
vectors
data structure representing a quantity with both magnitude and direction
Stacks - peek
allows users to view the top element of stack without modifying
stack - pop
removes the most recently added element
stack - push
adds an element to top of stack
Graphs - adjacency list
representation of a graph by storing a list of connected nodes to each node
adjacency matrix
matrix representation of a graph that stores the edges connecting all possible nodes
directed nodes
graph where order of vertices paired in an edge matter
edge
connection that represents a relationship before two nodes
undirected graph
graph where order of vertices in an edge does not matter, edges are bidirectional
vertex
the representation of an object on a graph is capable of being related to other such objects
weighted graphs
graphs where each edge has an associated value
binary trees
rooted tree in which each nodes has at most 2 children
trees
a connected, undirected graph with no cycles
hash tables - collisions
when two key values compare to same hash