CS 113 - Final Exam Study Guide Flashcards

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

1/28

flashcard set

Earn XP

Description and Tags

This set of vocabulary flashcards covers key concepts from the CS 113 Final Exam Study Guide, including data structures, search and sort algorithms, recursion, and tree properties.

Last updated 6:11 PM on 5/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

29 Terms

1
New cards

LIFO (Last-In First-Out)

A principle where the most recently added element is the first one to be removed, followed by the Stack data structure.

2
New cards

FIFO (First-In First-Out)

A principle where elements are removed in the same order they were added, followed by the Queue data structure.

3
New cards

Stack

A data structure that follows the LIFO principle, best suited for implementing undo operations.

4
New cards

pop()

A Java Stack method that removes and returns the top element.

5
New cards

poll()

A Queue method that retrieves and removes the head element.

6
New cards

Deque

A data structure that allows insertion and deletion at both the front and the rear ends.

7
New cards

Recursion

A programming technique where a method calls itself until a base case is reached.

8
New cards

Base case

The stopping condition in recursion; without it, the program results in infinite recursion or stack overflow.

9
New cards

Inorder Traversal

A tree traversal method that visits the left subtree, the root, and then the right subtree.

10
New cards

Preorder Traversal

A tree traversal method that visits the root node before its subtrees.

11
New cards

Postorder Traversal

A tree traversal method that visits subtrees before the root node.

12
New cards

Binary Search Tree (BST) Average Case

The average-case time complexity of searching a binary search tree is O(log n)O(\text{log } n).

13
New cards

Priority Queue

A data structure that always removes the highest-priority element first.

14
New cards

Max-heap

A priority queue implementation where the root element is always the largest element.

15
New cards

Hashing

A process that converts data into an index value for storage or retrieval.

16
New cards

HashMap

A Java class that implements a hash table using key-value pairs, with an average-case lookup complexity of O(1)O(1).

17
New cards

Collision

An occurrence in hashing where two different keys map to the same index value.

18
New cards

Hash Table Worst-Case

The searching time in a poorly distributed hash table where complexity reaches O(n)O(n).

19
New cards

Selection Sort

A sorting algorithm that repeatedly finds the minimum element; it is inefficient for large datasets with a worst-case time complexity of O(n2)O(n^2).

20
New cards

Quick Sort

A sorting algorithm that works by partitioning elements around a pivot, with an average-case time complexity of O(n log n)O(n \text{ log } n), and a worst-case of O(n2)O(n^2).

21
New cards

AVL Tree

A self-balancing binary search tree that maintains balance using rotations.

22
New cards

Balance Factor

The height difference between the left and right subtrees of an AVL node.

23
New cards

Right Rotation

The specific AVL tree rotation used to fix a left-left imbalance.

24
New cards

Left Rotation

The specific AVL tree rotation used to fix a right-right imbalance.

25
New cards

peek()

An operation that allows viewing the top element of a stack or the head of a queue without removing it.

26
New cards

Root Node

The top-most node in a tree structure.

27
New cards

Leaf Node

A node in a tree that has no children.

28
New cards

Pivot

A specific element in Quick Sort used to partition data into two sub-groups.

29
New cards

Dequeue

The operation of removing an element from the front of a queue.