1/77
Comprehensive vocabulary flashcards covering the full curriculum: basic concepts, arrays, stacks, queues, linked lists, sorting, searching, graphs, trees, and hashing techniques.
Data
The basic fact or entity utilized in calculation or manipulation, categorized into numeric and alphanumeric data.
Data Structure
A mathematical or logical model and method of organizing data items that considers both the elements stored and their relationship to each other.
Primitive Data Structure
A basic data structure predefined by a programming language and operated upon directly by machine instructions, such as integer, character, float, double, and pointer.
Non-Primitive Data Structure
A data structure derived from primitive data types by the programmer to organize groups of homogeneous or heterogeneous data items (e.g., array, list, file, stack, queue, tree, graph).
Abstract Data Type (ADT)
A mathematical model for data objects whose behavior is defined strictly by a set of values and allowable operations, providing an implementation-independent view without detailing memory layout or internal algorithms.
Linear Data Structure
A data structure whose elements are sequentially ordered in memory or logically linked such that each element generally possesses a unique predecessor and successor (e.g., stack, queue, array, linked list).
Non-Linear Data Structure
A data structure where data items are not arranged in a linear sequence, allowing an element to connect to multiple predecessors or successors in a hierarchical or network structure (e.g., tree, graph).
Array
A fixed-size, sequenced collection of elements sharing identical data types stored in contiguous memory locations and accessed via numerical indices.
Row-Major Order
A two-dimensional array storage order where elements are arranged sequentially in memory row by row (e.g., A[1,1],A[1,2],A[1,3]).
Column-Major Order
A two-dimensional array storage order where elements are arranged sequentially in memory column by column (e.g., A[1,1],A[2,1],A[1,2]).
Sparse Matrix
An m×n matrix in which the majority of the elements have a value of zero.
Dense Matrix
A matrix in which the majority of its elements are non-zero.
Stack
A linear data structure restricted to insertions and deletions at only one end called the TOP, operating on a Last In, First Out (LIFO) basis.
PUSH Operation
The stack operation that increments the TOP pointer and inserts an item into S[TOP], triggering STACK OVERFLOW if TOP≥N−1.
POP Operation
The stack operation that reads and removes the element at S[TOP] while decrementing TOP by 1, triggering STACK UNDERFLOW if TOP=−1.
PEEP / PEEK Operation (Stack)
A stack operation that inspects or accesses the element at a specified position (TOP−I+1) from the top of the stack without removing it.
CHANGE Operation (Stack)
A stack operation that replaces the element residing at a specified offset (TOP−I+1) from the top of the stack with a new given value.
Postfix Notation (Reverse Polish Notation)
An arithmetic representation where operators appear immediately after their operands (e.g., A\,B\,+\), evaluated from left to right without requiring parentheses.
Prefix Notation (Polish Notation)
An arithmetic representation where operators precede their respective operands (e.g., +AB), evaluated without ambiguity.
Tower of Hanoi
A recursive mathematical puzzle involving moving n disks from a source peg to a destination peg via an auxiliary peg without placing a larger disk onto a smaller one, requiring 2n−1 total moves.
Queue
A linear list that enforces the First In, First Out (FIFO) or First Come, First Served (FCFS) principle, where insertions occur at the REAR and deletions occur at the FRONT.
Circular Queue (Ring Buffer)
A queue structure where the last index wraps around to precede index 0, utilizing modulo arithmetic ((R+1)%N=F for overflow) to eliminate unutilized front memory space.
Double-Ended Queue (Deque)
A generalized linear queue allowing insertion and deletion operations at both the FRONT and REAR ends.
Input-Restricted Deque
A double-ended queue variant permitting elements to be inserted at only one end, while deletions are allowed at both ends.
Output-Restricted Deque
A double-ended queue variant permitting elements to be deleted from only one end, while insertions are allowed at both ends.
Priority Queue
A queue where each item is assigned an explicit priority level, ensuring higher-priority tasks are consumed ahead of lower-priority tasks regardless of insertion order.
Singly Linked List
A linear data structure consisting of dynamically allocated nodes, where each node stores a data value and a single pointer pointing to the successor node, with the final node pointing to NULL.
Circular Linked List
A singly linked list variant where the NEXT link of the terminal node points back to the initial node (START) instead of containing NULL.
Doubly Linked List
A linked list whose nodes comprise three fields: DATA, PREV (pointer to the predecessor node), and NEXT (pointer to the successor node), supporting bidirectional traversal.
Circular Doubly Linked List
A doubly linked list where the first node's PREV pointer links to the last node, and the last node's NEXT pointer links back to the first node (START).
Graph
A non-linear data structure denoted as G(V,E), consisting of a set of vertices V interconnected by a set of edges E.
Degree of a Vertex
The total number of edges incident to a vertex in an undirected graph; in directed graphs, it splits into in-degree (incoming edges) and out-degree (outgoing edges).
Null Graph
A graph structure consisting entirely of isolated vertices with zero connecting edges.
Trivial Graph
A graph containing exactly one vertex and no edges.
Complete Graph
A graph in which an edge exists directly between every distinct pair of vertices.
Regular Graph
A graph in which every individual vertex possesses the exact same degree K, designated as a K-regular graph.
Directed Acyclic Graph (DAG)
A directed graph containing no directed closed paths or cycles.
Adjacency Matrix
A 2D array of size V×V representing a graph, where each cell [i,j] denotes the presence or weight of an edge directed from vertex i to vertex j.
Adjacency List
A graph representation consisting of an array of linked list pointers, where each list stores the neighboring vertices connected to a given vertex.
Depth First Search (DFS)
A graph traversal technique that progresses recursively along paths to maximum depth before backtracking, managed via a Stack (LIFO) and a visited tracking list.
Breadth First Search (BFS)
A graph traversal technique that visits all immediate neighbors of a vertex before expanding outward to subsequent levels, managed using a Queue (FIFO) and a visited tracking list.
Tree
A non-linear, hierarchical data structure with no cycles, featuring exactly one root node and subtrees branching from parent nodes to child nodes.
Leaf Node (External Node)
A terminal node in a tree structure that has zero child nodes.
Height of a Node
The total count of edges situated on the longest downward path from a given node to its deepest leaf descendant.
Depth of a Node
The total number of edges forming the path from the root node down to a specified target node.
Binary Tree
A specialized tree structure where each individual node is restricted to a maximum of two child nodes, designated as the left child and right child.
Full Binary Tree
A binary tree in which every node contains either exactly zero or two child nodes.
Complete Binary Tree
A binary tree where every level is fully populated except possibly the last level, whose nodes must be positioned as far left as possible.
Perfect Binary Tree
A binary tree where every internal node possesses exactly two children and every leaf node is situated at identical depth levels.
Binary Search Tree (BST)
A node-based binary tree where the key value of every left descendant is smaller than its parent key, and the key value of every right descendant is larger than its parent key.
Preorder Traversal
A tree traversal method that visits nodes in the recursive order of: Root node, Left subtree, Right subtree.
Inorder Traversal
A tree traversal method that visits nodes in the recursive order of: Left subtree, Root node, Right subtree, yielding non-decreasing key sequences in a BST.
Postorder Traversal
A tree traversal method that visits nodes in the recursive order of: Left subtree, Right subtree, Root node.
Threaded Binary Tree
A binary tree representation that replaces empty NULL pointers in leaf or child nodes with threads referencing inorder predecessors (left thread) or inorder successors (right thread).
AVL Tree
A self-balancing binary search tree where every node maintains a balance factor equal to the left subtree height minus right subtree height, constrained strictly to −1, 0, or 1.
LL Rotation
A single clockwise rotation applied to rebalance an AVL tree when an insertion occurs in the left subtree of the left child of a node with a balance factor of +2.
RR Rotation
A single anticlockwise rotation applied to rebalance an AVL tree when an insertion occurs in the right subtree of the right child of a node with a balance factor of −2.
LR Rotation
A double rotation in an AVL tree consisting of a left (RR) rotation on the left child followed by a right (LL) rotation on the unbalanced parent node.
RL Rotation
A double rotation in an AVL tree consisting of a right (LL) rotation on the right child followed by a left (RR) rotation on the unbalanced parent node.
B-Tree
A self-balancing multiway search tree of order m, where each node holds up to m−1 keys and m children, with internal nodes containing a minimum of ⌈m/2⌉−1 keys.
B+ Tree
A multiway search tree variant where all actual records and satellite data reside solely in the leaves linked as a doubly linked list, while internal nodes function only as routing keys.
Bubble Sort
A comparison sorting algorithm that repeatedly steps through a list, comparing adjacent items and swapping them if out of order, bubbling the largest value to the end in each pass.
Selection Sort
An in-place sorting algorithm that iteratively scans the unsorted segment of an array to find the minimum element and swaps it into its final position at the beginning.
Insertion Sort
A sorting algorithm that builds a sorted list element by element by comparing a target value (curr) with prior sorted items and shifting larger elements rightward to create an insertion slot.
Merge Sort
A divide-and-conquer algorithm that recursively divides an array into halves (mid=⌊(LB+UB)/2⌋) until single elements remain, subsequently merging the sorted halves into a consolidated array.
Quick Sort
A divide-and-conquer sorting algorithm that partitions an array around a selected pivot element such that smaller values are shifted left and larger values right, recursing on both partitions.
Linear Search
A search algorithm that iterates through each element of a list sequentially from index 0 to n−1 until a target element is matched or the end is reached.
Binary Search
A search algorithm operating on sorted arrays that repeatedly halves the search space by comparing the target key with the middle array element (mid).
Hashing
A technique mapping large or arbitrary key values into fixed-size table indices using a mathematical hash function to achieve fast retrieval and storage.
Hash Collision
The condition where two or more distinct data keys evaluate to the exact same array index or slot within a hash table (h(k1)=h(k2)).
Division Method (Hashing)
A hash function that generates table locations by calculating the key modulo the table size: L=Kmodm.
Midsquare Method
A hash function that squares the key (K2) and extracts a predetermined number of digits from the middle of the product to form the table address.
Folding Method (Hashing)
A hash function that divides a key into several equal-sized numerical chunks, sums them together, and truncates any overflow carry to yield the hash address.
Digit Analysis Method
A hash function based on statistical observation of key sets, selecting digit positions that show uniform, frequent variation while discarding static positions to compose the hash index.
Separate Chaining
An open hashing collision-resolution technique in which all collided elements assigned to the same table index are maintained in an external linked list.
Linear Probing
An open addressing collision-resolution technique that resolves collisions by systematically checking consecutive slots via the formula hi(k)=(h(k)+i)modm, susceptible to primary clustering.
Quadratic Probing
An open addressing collision-resolution strategy that probes alternative cells at quadratic step increments (hi(k)=(h(k)+i2)modm) to mitigate primary clustering.
Double Hashing
An open addressing collision-resolution technique employing two distinct hash functions (h1(k) and h2(k)) to compute successive probe steps via hi(k)=(h1(k)+i⋅h2(k))modm.