Fundamentals of Data Structures Flashcards
What is a data structure
A common format for storing large volumes of related data, which is an implementation of an abstract data type!
What is an abstract data type
A conceptual model of how data can be stored and the operations that can be carried out on the data
Name the data structure that holds a set of related data items stored under a single identifier.
This can also work on one or more dimensions
Array (List)
What is a Record
Is one line of a text file or array
What is a Field
an item of data
What is a Queue? (use XIXO)
FIFO - can be static or dynamic data strucutre
What is a Stack? (use XIXO)
LIFO - can be static or dynamic data strucutre
What is a Linear Queue? (use XIXO)
FIFO - organised as a line of data (like a list)
What is a Circular Queue? (use XIXO)
FIFO - organised as a ring, using front and rear pointers (re-uses lost memory)
What is a Priority Queue? (use XIXO)
FIFO - some data may leave out of sequence if it has priority, high priorities go to the top
What is a Graph?
A way of describing relationships between pairs of objects
Define vertex/vertices
Object in a graph (known as a node)
What is an Arc?
A join or relationship between two nodes (known as an edge)
Graphs can be undirected, directed and…
weighted and unweighted
What is an Adjacency List?
Data structure to store a list of nodes and adjacent nodes