COP3503C - Computer Science 2 - Just Equations

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

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:50 PM on 3/4/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

What is the runtime for Bloom Filter? What is the runtime for each individual hash into Bloom Filter?

Bloom Filter: O(m), where m = the size of the bit array, each hash is O(1).

2
New cards

What is the False Positive Rate equation for Bloom Filter? Define the equation and its parameters.

False Positive Calc: (1 - (1 - 1/m)^kn)^k where k is the number of hash functions, n is the number of insertions, and m is the number of bits.

3
New cards

What is the average and worst runtime for Treaps?

Treap: Average O(log(n)), Worst O(n)

4
New cards

What is the average and worst case runtime for a Skip List? What is the average and worst case space complexity for a Skip List?

Skip List: Average: O(log(n)), Worst: O(n)

Skip List Space Complex: Worst O(nlog(n)), Average O(n)

5
New cards

What is the equation for finding the optimal number of Express Lists for a Skip List?

log2n, where n = the number of insertions in the Local List.

6
New cards

What is the equation for finding the perfect number of hash functions for a Bloom Filter?

k = m/n * ln(2), where k = the number of hash functions, m = the size of the bit array, and n = the number of potential insertions.

7
New cards

What is the equation for expected number of elements at level i for a Skip List?

Ei = n/(2^i), where n = the total number of elements in the Skip List, and i = the current level.

8
New cards

What is the optimal size for a Skip List that needs to insert 9 values? What about for 13? Insert your answer as a comma separated list (e.g., x, y).

3, 4.

9
New cards

What is the optimal number of hash functions for a Bloom Filter that has a bit array of size 20 bits and 7 values to be inserted? What about for one of size 34 bits and 3 values? Insert your answer as a comma separated list (e.g., x, y).

2, 8

10
New cards

Write your RB Tree Cases Again/Recite 3 Equations from Memory.

Done.

Explore top flashcards

flashcards
Microscopic examination CASTS
34
Updated 657d ago
0.0(0)
flashcards
Zoology Exam 1
145
Updated 45d ago
0.0(0)
flashcards
Med Micro Case Studies
76
Updated 1196d ago
0.0(0)
flashcards
Y2 U1L1 Vamos a acampar
55
Updated 915d ago
0.0(0)
flashcards
Modern World History Midterm
51
Updated 205d ago
0.0(0)
flashcards
World History Exam
232
Updated 1033d ago
0.0(0)
flashcards
Concept of Globalization
22
Updated 1141d ago
0.0(0)
flashcards
Microscopic examination CASTS
34
Updated 657d ago
0.0(0)
flashcards
Zoology Exam 1
145
Updated 45d ago
0.0(0)
flashcards
Med Micro Case Studies
76
Updated 1196d ago
0.0(0)
flashcards
Y2 U1L1 Vamos a acampar
55
Updated 915d ago
0.0(0)
flashcards
Modern World History Midterm
51
Updated 205d ago
0.0(0)
flashcards
World History Exam
232
Updated 1033d ago
0.0(0)
flashcards
Concept of Globalization
22
Updated 1141d ago
0.0(0)