Binary Search Trees
Hash Tables 1: Introduction
Hash Tables 2: Python’s Dictionary
Hash Tables 3: Applications
Hash Tables 4: Overview
Hash Tables 5: Collisions
questions5 = [
{
time: "01:27",
question: "How many people do I need to have for a 50% chance that two have the same birthday?",
answers: [
"367",
"57",
"184",
"23",
],
correct: 3
},
{
time: "04:05",
question: "What are the probabilities?",
answers: [ ],
correct: "Continue when ready.",
},
{
time: "04:24",
question: "What is the chance of collision when inserting the first item?",
answers: [ ],
correct: "0% (no possible collision)",
},
{
time: "04:35",
question: "What is the chance of collision when inserting the second item?",
answers: [ ],
correct: "1% chance (the second object collides with the first)",
},
{
time: "04:59 ",
question: "What is the chance of collision when inserting the third item?",
answers: [ ],
correct: "2% chance",
}
]
yt5 = new YtQuiz("BVIPVXeT48Q", questions5);
yt5.html();
Hash Tables 6: Collision Handling
questions6 = [
{
time: "01:29",
question: "Where should we put the 'C'?",
answers: [
"In bucket 2",
"At the head of bucket 1",
"At the tail of bucket 1",
],
correct: 1
},
{
time: "3:56",
question: "What makes linear probing less than optimal?",
answers: [ ],
correct: "Values have a tendency to cluster together, which makes the probe sequence long.",
},
{
time: "6:25",
question: "What collision handling method does this older version of a Python dictionary resemble?",
answers: [
"Separate chaining",
"Open addressing",
],
correct: 1
},
]
yt6 = new YtQuiz("uQttlsnmMOw", questions6);
yt6.html();