1/37
Comprehensive vocabulary flashcards covering fundamental concepts, definitions, data structures, and algorithms across all units of the 21CSC201J syllabus.
Derived Data Type
A data type in C programming, such as an array, that is constructed using fundamental or primitive data types.
Self-Referential Structure
A structure definition containing at least one member pointer that points to another structure of the same type.
Abstract Data Type (ADT)
A mathematical model of a user-defined type along with the collection of all primitive operations defined on that model, comprising both data and operations.
Levels of Data Structure Implementation
The three stages or levels of designing and realizing a data structure: the abstract level, the application level, and the implementation level.
Inversion (in an Array)
A pair of elements in an array where a larger value precedes a smaller value at a later index, such as the pairs (8,5), (8,3), and (5,3) in the array {2,8,5,3}.
Worst-Case Analysis
The evaluation of an algorithm's resource consumption on an input instance that requires the maximum possible time or memory, which is essential when guaranteed response time is critical.
Lower Bound (Array)
The index corresponding to the smallest element location in an array.
Upper Bound (Array)
The index corresponding to the largest element location in an array.
Sentinel
An extra key or dummy value inserted at the end of an array to simplify condition checks during linear searching and data processing.
Doubly Linked List
A bidirectional linked data structure where each node contains a minimum of three fields: a data element, a pointer to the next node, and a pointer to the previous node.
Circular Linked List
A linked list variant in which the pointer of the last node points back to the first node of the list rather than holding a null reference.
Header (Linked List)
The initial reference or leading record of a linked list that stores the memory address of the first node.
Stack
A linear, non-homogeneous data structure in which insertions and deletions are restricted to a single end called the top, governed by the LIFO protocol.
LIFO (Last In First Out)
The operational order followed by a stack, dictating that the most recently added item is the first element to be removed.
Start Pointer (Linked Stack)
The reference variable in the linked list representation of a stack that behaves as the top pointer variable.
Push
The operation used to insert a new element onto the top of a stack, requiring a prior check for the overflow condition.
Pop
The retrieval and deletion operation that removes the topmost node from a stack, requiring a prior check for the underflow condition.
Stack Overflow
The error state encountered when attempting to push a new element onto a stack that has already reached its full capacity.
Stack Underflow
The error condition that occurs when an attempt is made to delete or pop an item from an empty stack.
Queue
A linear list of elements where deletions occur exclusively at the front end and insertions occur exclusively at the rear (back) end, following a FIFO access pattern.
FIFO (First In First Out)
The access strategy utilized by a standard queue, ensuring that nodes are removed in the identical sequence in which they were added.
Preorder Traversal
A depth-first binary tree traversal where the root is visited first, the left subtree is traversed second, and the right subtree is traversed third.
Postorder Traversal
A depth-first tree traversal where the left subtree is traversed, then the right subtree is traversed, and the parent node is visited after all its children.
Leaf Node
A terminal node within a tree data structure that possesses zero children.
Binary Search Tree (BST) Property
The ordering property ensuring that for every node in a binary tree, all keys in its left subtree are smaller and all keys in its right subtree are larger.
AVL Tree
A self-balancing binary search tree in which the height difference between left and right subtrees cannot exceed 1, maintaining a maximum height of O(log(p)) for p nodes.
Linear Probing
An open addressing collision resolution method that resolves collisions by systematically testing sequential slots using the function F(i)=i.
Quadratic Probing
An open addressing collision resolution scheme using the offset function F(i)=i2 to locate empty table slots and eliminate primary clustering.
Universal Hashing
A hashing strategy that applies a randomization approach to select a hash function at runtime independently of the keys being stored.
Separate Chaining
A collision handling method in which colliding keys at a given index are stored in an auxiliary data structure, commonly a linked list.
Digraph
A standard alternative name for a directed graph, which consists of an ordered set of vertices V and directed edges E.
Isolated Vertex
A graph vertex with a degree of zero, indicating it has no connected edges.
Pendant Vertex
A vertex within a graph that has a degree of exactly one.
Topological Sorting
A linear ordering of vertices in a Directed Acyclic Graph (DAG) such that for every directed edge (u,v), vertex u appears before vertex v.
Kruskal's Algorithm
A greedy minimum spanning tree algorithm that sorts all edges in non-decreasing order of weight and incrementally adds the lowest-cost edge that avoids creating a cycle.
Prim's Algorithm
A greedy minimum spanning tree algorithm that builds an MST by growing a single connected tree one vertex at a time from an arbitrary root.
Dijkstra's Algorithm
A greedy single-source shortest path algorithm that computes minimal distances from an origin vertex to all other vertices in graphs without negative edge weights.
Bellman-Ford Algorithm
A shortest path algorithm used as an alternative to Dijkstra's algorithm when negative-weight edges are present in the graph.