Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
ds2-notes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
datovky
ds2-notes
Commits
465e17ee
Commit
465e17ee
authored
5 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Hashing: Typos
parent
9f9d47b9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
06-hash/hash.tex
+2
-2
2 additions, 2 deletions
06-hash/hash.tex
with
2 additions
and
2 deletions
06-hash/hash.tex
+
2
−
2
View file @
465e17ee
...
...
@@ -815,7 +815,7 @@ Bloom filters are a~family of data structures for approximate representation of
in a~small amount of memory. A~Bloom filter starts with an empty set. Then it supports
insertion of new elements and membership queries. Sometimes, the filter gives a~
\em
{
false
positive
}
answer: it answers
{
\csc
yes
}
even though the element is not in the set.
We will calculate the probability of false positves and decrease it at the expense of
We will calculate the probability of false posit
i
ves and decrease it at the expense of
making the structure slightly larger. False negatives will never occur.
\subsection
{
A trivial example
}
...
...
@@ -900,7 +900,7 @@ If we set~$p$, it follows that $m \approx -n / \ln p$. Since all bands must fit
of memory, we want to use
$
k
=
\lfloor
M
/
m
\rfloor
\approx
-
M
/
n
\cdot
\ln
p
$
bands. False
positives occur if we find~1 in all bands, which has probability
$$
(
1
-
p
)
^
k
\approx
(
1
-
p
)
^
k
=
\e
^{
k
\ln
(
1
-
p
)
}
\approx
\e
^{
-
M
/
n
\cdot
\ln
p
\cdot
\ln
(
1
-
p
)
}
.
$$
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment