Review for Midterm 3: From Linked Lists To Trees

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

1/16

flashcard set

Earn XP

Description and Tags

Flashcards created from the lecture notes for review and quiz preparation.

Last updated 11:23 AM on 4/10/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

17 Terms

1
New cards

Performance of an Algorithm

The number of basic operations needed to solve a problem.

2
New cards

Big O notation

Indicates the growth rate of the number of operations with respect to increase of size of the problem (n).

3
New cards

O(1)

Constant time complexity.

4
New cards

O(log(n))

Logarithmic time complexity.

5
New cards

O(n)

Linear time complexity.

6
New cards

O(n log(n))

Log-linear time complexity.

7
New cards

O(n^2)

Polynomial time complexity with a quadratic growth rate.

8
New cards

O(2^n)

Exponential time complexity.

9
New cards

Abstract Data Type (ADT)

Describes a set of objects sharing the same properties and behaviors.

10
New cards

Singly Linked List

A data structure consisting of nodes where each node contains data and a reference to the next node.

11
New cards

Doubly Linked List

A linked list where each node contains a reference to both the next and the previous node.

12
New cards

Recursion

Occurs when a method calls itself directly or indirectly.

13
New cards

Sequential Search

Search algorithm that checks each element in sequence until the desired value is found.

14
New cards

Binary Search

Search algorithm that only makes sense when the container is sorted and repeatedly divides the search interval in half.

15
New cards

Hash Table

A data structure that stores associations (key-value pairs) by converting keys into integers via a hash function.

16
New cards

Collision in Hash Tables

Occurs when two keys hash to the same index; can be handled using methods like chaining.

17
New cards

Binary Search Tree (BST)

A binary tree in which for every node, the element is greater than or equal to all elements in the left subtree and less than or equal to all elements in the right subtree.