1/22
Flashcards covering introductory concepts of data structures, linear and non-linear types, abstract data types, graph terminology, tree definitions, and algorithm analysis from CSC 301.
What is the definition of a data structure?
A particular way of storing and organizing data in a computer so that it can be used efficiently, representing data, the operations allowed on that data, and the logical relationships between individual data elements.
What are the three core pairs of characteristics used to describe data structures?
How do static data structures differ from dynamic data structures?
Static data structures have fixed sizes, structures, and memory locations determined at compile time, whereas dynamic data structures have sizes, structures, and memory locations that can shrink or expand depending on use.

Based on this taxonomy chart, what are the two broad subcategories of non-primitive data structures?
Linear Data Structures (e.g., Arrays, Linked Lists, Stacks, Queues) and Non-Linear Data Structures (e.g., Graphs, Trees, Hash Tables).
What four types are classified as primitive data structures?
Integer (Intege), Float, Character, and Boolean.
What are the six common operations performed on data structures?
What is an Abstract Data Type (ADT)?
A programming concept that defines a high-level view (blueprint) of a data structure by specifying its behavior and interface without specifying implementation details.
What are the key properties of an array?
A sequence of n items of the same data type stored contiguously in computer memory, featuring fixed length, contiguous memory locations, and direct access by specifying an index.
What are the defining characteristics of a linked list?
A sequence of nodes containing data and pointers (links) to other nodes, characterized by dynamic length, arbitrary memory locations, and sequential access by following links.

Which linear data structure and operations are depicted in this diagram?
A Stack, illustrating the PUSH operation (adding an element to the top) and the POP operation (removing an element from the top) under LIFO (Last-In, First-Out) ordering.
How does a queue operate regarding element addition and removal?
A queue follows FIFO (First-In, First-Out) ordering; new elements are added via insertion/enqueue at the rear (back), and elements are removed via deletion/dequeue from the front.
How is a graph G formally defined in graph theory?
G=(V,E), where V(G) is a finite, nonempty set of vertices (nodes) and E(G) is a set of edges (pairs of vertices) that relate the nodes.
In graph theory, what is a simple path?
A path in which all vertices, except possibly the first and last, are distinct.
What defines a complete graph?
A graph in which every vertex is directly connected by an edge to every other vertex.
What is the definition of a cycle in a graph?
A simple path that has the same start and end vertex.
What does the degree of a vertex represent in an undirected graph?
The number of edges incident on that vertex.
What is a binary tree?
An ordered tree data structure in which each node has at most two children.

What data structure and mapping process is illustrated in this diagram?
A Hash Table, showing a hash function mapping identifying keys (names) directly to specific numerical hashes (table indices).
What is an algorithm?
A sequence of unambiguous instructions for solving a problem, producing a required output for any legitimate input in a finite amount of time.
What are the five essential requirements of an algorithm?
According to the lecture notes, what formula defines a computer program?
Program=algorithms+data structures
What are the two primary ways to measure algorithm efficiency?
In a sequential search for element k within an array of n integers, what are the best, worst, and average cases?