Data Structures and Algorithms Question Bank

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/37

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering fundamental concepts, definitions, data structures, and algorithms across all units of the 21CSC201J syllabus.

38 Terms

1
New cards

Derived Data Type

A data type in C programming, such as an array, that is constructed using fundamental or primitive data types.

2
New cards

Self-Referential Structure

A structure definition containing at least one member pointer that points to another structure of the same type.

3
New cards

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.

4
New cards

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.

5
New cards

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, 5), (8,3)(8, 3), and (5,3)(5, 3) in the array {2,8,5,3}\{2, 8, 5, 3\}.

6
New cards

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.

7
New cards

Lower Bound (Array)

The index corresponding to the smallest element location in an array.

8
New cards

Upper Bound (Array)

The index corresponding to the largest element location in an array.

9
New cards

Sentinel

An extra key or dummy value inserted at the end of an array to simplify condition checks during linear searching and data processing.

10
New cards

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.

11
New cards

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.

12
New cards

Header (Linked List)

The initial reference or leading record of a linked list that stores the memory address of the first node.

13
New cards

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.

14
New cards

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.

15
New cards

Start Pointer (Linked Stack)

The reference variable in the linked list representation of a stack that behaves as the top pointer variable.

16
New cards

Push

The operation used to insert a new element onto the top of a stack, requiring a prior check for the overflow condition.

17
New cards

Pop

The retrieval and deletion operation that removes the topmost node from a stack, requiring a prior check for the underflow condition.

18
New cards

Stack Overflow

The error state encountered when attempting to push a new element onto a stack that has already reached its full capacity.

19
New cards

Stack Underflow

The error condition that occurs when an attempt is made to delete or pop an item from an empty stack.

20
New cards

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.

21
New cards

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.

22
New cards

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.

23
New cards

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.

24
New cards

Leaf Node

A terminal node within a tree data structure that possesses zero children.

25
New cards

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.

26
New cards

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))O(\log(p)) for pp nodes.

27
New cards

Linear Probing

An open addressing collision resolution method that resolves collisions by systematically testing sequential slots using the function F(i)=iF(i) = i.

28
New cards

Quadratic Probing

An open addressing collision resolution scheme using the offset function F(i)=i2F(i) = i^2 to locate empty table slots and eliminate primary clustering.

29
New cards

Universal Hashing

A hashing strategy that applies a randomization approach to select a hash function at runtime independently of the keys being stored.

30
New cards

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.

31
New cards

Digraph

A standard alternative name for a directed graph, which consists of an ordered set of vertices VV and directed edges EE.

32
New cards

Isolated Vertex

A graph vertex with a degree of zero, indicating it has no connected edges.

33
New cards

Pendant Vertex

A vertex within a graph that has a degree of exactly one.

34
New cards

Topological Sorting

A linear ordering of vertices in a Directed Acyclic Graph (DAG) such that for every directed edge (u,v)(u, v), vertex uu appears before vertex vv.

35
New cards

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.

36
New cards

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.

37
New cards

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.

38
New cards

Bellman-Ford Algorithm

A shortest path algorithm used as an alternative to Dijkstra's algorithm when negative-weight edges are present in the graph.