Data Structures Vocabulary Flashcards

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

1/36

flashcard set

Earn XP

Description and Tags

Flashcards covering core vocabulary, operational properties, algorithm complexities, and structural definitions from the lecture notes.

Last updated 2:18 PM on 8/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

37 Terms

1
New cards

Linked List

A linear data structure used to store data elements sequentially, where successive elements are connected by pointers and the last element points to NULL.

2
New cards

Sequential Access

The access model supported by linked lists, requiring O(n)O(n) search time compared to O(1)O(1) direct index access in arrays.

3
New cards

Null Pointer Dereferencing

A runtime error that occurs when a program attempts to access data or memory through a pointer that equals NULL.

4
New cards

Singly Linked List Insertion at Beginning

An operation with time complexity O(1)O(1) performed by setting temp->next = head and updating head = temp.

5
New cards

Floyd's Cycle Detection Algorithm

A technique using a slow pointer moving at speed xx and a fast pointer moving at speed 2x2x to detect loops in a linked list in O(n)O(n) time.

6
New cards

Circular Singly Linked List (CSLL)

A variant of a singly linked list in which the next pointer of the last node points back to the head node instead of NULL.

7
New cards

Circular Doubly Linked List (CDLL)

A doubly linked list where the previous pointer of the head node points to the last node, and the next pointer of the last node points to the head node.

8
New cards

Stack

A linear data structure that stores elements using the Last In First Out (LIFO) or First In Last Out (FILO) access restriction.

9
New cards

Catalan Number (Stack Permutations)

The mathematical formula Cn=1n+1(2nn)C_n = \frac{1}{n+1}\binom{2n}{n} used to compute the total number of valid stack permutations for nn inputs.

10
New cards

Stack Overflow

An error condition encountered during a push operation when the stack has reached its maximum allocated capacity (top==N1\text{top} == N - 1).

11
New cards

Stack Underflow

An error condition encountered during a pop operation when attempting to remove an element from an empty stack (top==1\text{top} == -1).

12
New cards

Infix Notation

An expression representation where operators are placed between their operands, such as a+ba + b.

13
New cards

Postfix Notation

Also known as Reverse Polish notation, an expression representation where operators follow their operands, such as ab+a b +.

14
New cards

Prefix Notation

Also known as Polish notation, an expression representation where operators precede their operands, such as +ab+ a b.

15
New cards

Queue

A linear data structure operating on the First In First Out (FIFO) principle, where elements are inserted at the rear and removed from the front.

16
New cards

Circular Queue

A queue implementation using array modulo arithmetic ((R+1)(modN)(R + 1) \pmod N) to connect the last index back to the first index, preventing memory wasted by standard linear queues.

17
New cards

nn-ary Tree Leaf Node Relation

A formula stating that in a full nn-ary tree with ii internal nodes, the total number of leaf nodes LL equals L=i(n1)+1L = i(n - 1) + 1.

18
New cards

Binary Tree Leaf-to-Degree-2 Property

A property of binary trees where the number of leaf nodes (n0n_0) is always equal to the number of internal nodes with two children (n2n_2) plus one (n0=n2+1n_0 = n_2 + 1).

19
New cards

Full Binary Tree

A binary tree structure where every internal node has strictly zero or two children.

20
New cards

Complete Binary Tree (CBT)

A binary tree in which every level is fully filled except possibly the last level, which is filled sequentially from left to right.

21
New cards

Perfect Binary Tree

A binary tree where all internal nodes have two children and all leaf nodes are located at the exact same level or depth.

22
New cards

Preorder Traversal

A binary tree traversal algorithm that visits nodes in the sequence: Root, Left Subtree, Right Subtree.

23
New cards

Inorder Traversal

A binary tree traversal algorithm that visits nodes in the sequence: Left Subtree, Root, Right Subtree.

24
New cards

Postorder Traversal

A binary tree traversal algorithm that visits nodes in the sequence: Left Subtree, Right Subtree, Root.

25
New cards

Binary Search Tree (BST)

A binary tree data structure where for every node, all keys in its left subtree are smaller and all keys in its right subtree are larger.

26
New cards

Inorder Successor

The node with the smallest key in a node's right subtree (leftmost node of the right subtree), used to replace a node with two children during deletion.

27
New cards

AVL Tree

A self-balancing binary search tree where the balance factor BF=H(LST)H(RST)BF = H(\text{LST}) - H(\text{RST}) of every node is restricted to 1-1, 00, or 11.

28
New cards

LL Rotation

A single right rotation applied in an AVL tree to restore balance when an imbalance occurs in the left child's left subtree.

29
New cards

LR Rotation

A double rotation consisting of a left rotation followed by a right rotation, used to rebalance an AVL tree when an imbalance occurs in the left child's right subtree.

30
New cards

Max Heap

A complete binary tree where every parent node's key is greater than or equal to the keys of its children, placing the maximum key at the root.

31
New cards

Heapify Procedure

A recursive process used to restore the max-heap or min-heap property at a given node in O(logn)O(\log n) time.

32
New cards

Build Heap Procedure

An algorithm that converts an unordered array into a valid binary heap running with a tight time complexity bound of O(n)O(n).

33
New cards

Chaining (Open Hashing)

A collision resolution technique where colliding keys are maintained in linked lists allocated outside the primary hash table array.

34
New cards

Load Factor (α\alpha)

The ratio of total elements nn stored in a hash table to the total number of available slots mm (α=nm\alpha = \frac{n}{m}).

35
New cards

Primary Clustering

A performance issue in Linear Probing where consecutive occupied slots form large contiguous blocks, increasing search probe counts.

36
New cards

Secondary Clustering

A phenomenon in Quadratic Probing where keys that map to the identical initial slot follow the exact same secondary probing sequence.

37
New cards

Double Hashing

An open addressing collision resolution technique that uses a secondary hash function h2(k)h_2(k) to compute variable probe step intervals.