Command Palette

Search for a command to run...

Hectal
PHASE 11Advanced ~7 min· topic 1 of 5

Topic 11.1

Beginner Questions

In one line

The definitions every interviewer expects instantly: what a Bloom filter is, why false positives happen and false negatives don't, why standard filters can't delete, and where they're used.

0/5 · 0%

Think of it like this

A driving test theory round. You must answer the basics without hesitation before the examiner lets you on the road.

Key ideas

  1. 01

    Answer in two layers: one sentence of definition, then one sentence of mechanism (bits and hashes). Interviewers look for both.

  2. 02

    Always say the direction of error: "no" is definite, "maybe" must be verified.

  3. 03

    Close with the use case: what expensive work the filter avoids.

Code & diagrams

one-minute-answer.txttext
A Bloom filter is a bit array plus k hash functions that answers set membership
with "definitely not present" or "possibly present". Insert sets k bits; lookup
checks k bits. Any zero bit means absent for sure. All ones may be a coincidence
(false positive), so the caller verifies against the source of truth.
It saves memory (about 9.6 bits per item at 1%) and avoids expensive lookups
for items that don't exist.

Explain it without notes

01

What is a Bloom filter?

02

What is a false positive?

03

What is a false negative?

04

Can a standard Bloom filter have false negatives?

05

Why does a Bloom filter use multiple hash functions?

06

Can you delete from a standard Bloom filter?

07

What does a Bloom filter store?

08

Why is it memory efficient?

09

Where are Bloom filters used?

10

What is the lookup time complexity?

11

What happens as more items are added?

12

Why use a Bloom filter before a database lookup?

Practice

01

Give the one-minute answer to "What is a Bloom filter?" out loud, including the error direction and a use case.

Trade-offs

  • ↔

    Memory and speed are bought with a controlled false positive rate and no deletes.

Done when you can

  • I can answer all twelve beginner questions without notes.