UCF Foundation Exam (Pass or Die Edition)

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/24

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

25 Terms

1
New cards

Best Runtime of Bubble Sort

O(n)

2
New cards

Worst Runtime of Bubble Sort

O(n^2)

3
New cards

Average Runtime of Bubble Sort

O(n^2)

4
New cards

Best Runtime of Selection Sort

O(n^2)

5
New cards

Worst Runtime of Selection Sort

O(n^2)

6
New cards

Average Runtime of Selection Sort

O(n^2)

7
New cards

Best Runtime of Insertion Sort

O(n)

8
New cards

Worst Runtime of Insertion Sort

O(n^2)

9
New cards

Average Runtime of Insertion Sort

O(n^2)

10
New cards

Worst & Average Runtime of Linear Probing, Quadratic Probing, and Separate Chaining Insertion

Worst = O(n)

Average = O(1)

11
New cards

Worst & Average Runtime of Linear Probing, Quadratic Probing, and Separate Chaining Search/Retrieval

Worst = O(n)

Average = O(1)

12
New cards

Equation for Linear Probing

index = (hVal + i) % h->TABLE_SIZE;

13
New cards

Equation for Quadratic Probing

index = (hVal + i * i) % h->TABLE_SIZE;

14
New cards

Worst & Best Runtimes for Trie Insertion

O(k)

15
New cards

Worst & Best Runtimes for Trie Search

Worst = O(k)

Best = O(1)

16
New cards

Worst & Best Runtimes for Trie Deletion

Worst = O(k)

Best = O(1)

17
New cards

Worst Case Runtimes for AVL Tree Search, Insertion and Deletion

O(log n)

18
New cards

Worst Case Runtimes for BST Search, Insertion, and Deletion

O(n)

19
New cards

Best Case Runtime for BST Search, Insertion, and Deletion

O(log n)

20
New cards

Best Case Runtimes for AVL Tree Search, Insertion and Deletion

O(log n)

21
New cards

What type of data structure works best for merge sort?

Linked Lists

22
New cards

What is the best, average, and worst runtimes for Merge Sort?

O(n log n)

23
New cards

What is the pattern for INORDER tree traversals?

Left

Root

Right

24
New cards

What is the pattern for PREORDER tree traversals?

Root

Left

Right

25
New cards

What is the pattern for POSTORDER tree traversals?

Left

Right

Root