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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
datovky
ds2-notes
Commits
52f63cca
Commit
52f63cca
authored
5 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Hashing: Fixed a couple of typos in notation
parent
a5619fc5
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
+3
-3
3 additions, 3 deletions
06-hash/hash.tex
with
3 additions
and
3 deletions
06-hash/hash.tex
+
3
−
3
View file @
52f63cca
...
...
@@ -198,7 +198,7 @@ Now, we turn back to the original linear family~$\cal L$.
\theorem
{
The family~
${
\cal
L
}$
is
$
(
2
,
4
)
$
-independent.
}
\proof
We fix
$
x,y
\in
[
p
]
$
distinct and
$
i,j
\in
[
p
]
$
. To verify
$
(
2
,
4
)
$
-independence,
We fix
$
x,y
\in
[
p
]
$
distinct and
$
i,j
\in
[
m
]
$
. To verify
$
(
2
,
4
)
$
-independence,
we need to prove that
$
\Pr
[
h
_{
a,b
}
(
x
)
=
i
\land
h
_{
a,b
}
(
y
)
=
j
]
\le
4
/
m
^
2
$
for a~random
choice of parameters
$
(
a,b
)
$
.
...
...
@@ -251,7 +251,7 @@ For 2-independence, we proceed in a~similar way. We are given two items $x_1\ne
and two buckets
$
j
_
1
,j
_
2
\in
[
m
]
$
. We are bounding
$$
\Prsub
{
h
}
[
h
(
x
_
1
)
\bmod
m
=
j
_
1
\land
h
(
x
_
2
)
\bmod
m
=
j
_
2
]
=
\sum
_{
i
_
1
\equiv
j
_
1
\atop
i
_
2
\equiv
j
_
2
}
\Pr
[
h
(
x
_
1
)
=
i
_
1
\land
h
(
h
_
2
)
=
i
_
2
]
.
\sum
_{
i
_
1
\equiv
j
_
1
\atop
i
_
2
\equiv
j
_
2
}
\Pr
[
h
(
x
_
1
)
=
i
_
1
\land
h
(
x
_
2
)
=
i
_
2
]
.
$$
Again, each term of the sum is at most
$
c
/
r
^
2
$
. There are at most
$
\lceil
r
/
m
\rceil
\le
(
r
+
m
-
1
)/
m
$
choices of~
$
i
_
1
$
and independently also of~
$
i
_
2
$
. The sum is therefore bounded by
...
...
@@ -936,7 +936,7 @@ This filter can be analysed similarly to the $k$-band version. We will assume th
all hash functions are perfectly random and mutually independent.
Insertion of
$
n
$
~elements sets
$
kn
$
bits (not necessarily distinct), so the
probability that a~fixed bit
$
B
[
i
]
$
is set is
$
(
1
-
1
/
m
)
^{
nk
}$
, which is approximately
probability that a~fixed bit
$
B
[
i
]
$
is
un
set is
$
(
1
-
1
/
m
)
^{
nk
}$
, which is approximately
$
p
=
\e
^{
-
nk
/
m
}$
. We will find the optimum value of~
$
p
$
, for which the probability
of false positives is minimized. For fixed~
$
m
$
, we get
$
k
=
-
m
/
n
\cdot\ln
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