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
9abd703e
Commit
9abd703e
authored
3 years ago
by
Filip Stedronsky
Browse files
Options
Downloads
Patches
Plain Diff
Succinct: tree shapes + picture
parent
e4b72369
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
fs-succinct/Makefile
+2
-1
2 additions, 1 deletion
fs-succinct/Makefile
fs-succinct/succinct.tex
+14
-1
14 additions, 1 deletion
fs-succinct/succinct.tex
fs-succinct/tree_shapes.asy
+18
-0
18 additions, 0 deletions
fs-succinct/tree_shapes.asy
with
34 additions
and
2 deletions
fs-succinct/Makefile
+
2
−
1
View file @
9abd703e
TOP
=
..
PICS
=
sole sole_boxes sole_hilevel mixer composition mixer_chain mixer_tree
PICS
=
sole sole_boxes sole_hilevel mixer composition mixer_chain mixer_tree
tree_shapes
include
../Makerules
...
...
@@ -9,3 +9,4 @@ sole_boxes.pdf:: succinct_common.asy
sole_hilevel.pdf
::
succinct_common.asy
mixer_chain.pdf
::
succinct_common.asy
mixer_tree.pdf
::
succinct_common.asy
tree_shapes.pdf
::
succinct_common.asy
This diff is collapsed.
Click to expand it.
fs-succinct/succinct.tex
+
14
−
1
View file @
9abd703e
...
...
@@ -398,7 +398,7 @@ parent (thus most vertices receive two carry inputs but it is trivial to
combine them into one). This is depicted in fig.
\figref
{
mixer
_
tree
}
. Now we
need
$
Y
\cdot
Z
\cdot
C
\le
2
^
M
$
.
\figure
[mixer_tree]
{
mixer
_
tree.pdf
}{}{
Mixer tre
e
f
or
string encoding
}
\figure
[mixer_tree]
{
mixer
_
tree.pdf
}{}{
A single mixer vertex and th
e or
ganization of those into a tree
}
Then you can create a linear order on the vertices (e.g. by layers
bottom-to-top), split the input string into blocks and feed the blocks through
...
...
@@ -409,8 +409,21 @@ Note that this scheme still has all the nice properties, for example it is local
decodable. To decode a vertex's input, you only need the output of that vertex and
its parent.
But how does a tree help us determine individual mixer parameters more easily?
The parameters of a mixer in a vertex are uniquely determined by the shape of the
subtree under that vertex. This is easily seen by induction: all leaves have the
same parameters (as they have dummy carry-in alphabets of size 1) and the parameters
of any vertex are determined by the parameters of its children.
We will use the same tree shape as for binary heaps: all the levels are full, except
for possibly the last and in the last level all the vertices in one contiguous segement
starting at the very left.
Now let us consider a level at height
$
h
$
(from the bottom). There are at most three
subtree types at that level: full subtrees of height
$
h
$
, full subtrees of height
$
h
-
1
$
and one irregular subtree in the middle (unless the whole tree is full; then there would
be only one kind of subtree). See fig.
\figref
{
tree
_
shapes
}
.
\figure
[tree_shapes]
{
tree
_
shapes.pdf
}{}{
Tree and subtree shapes
}
\endchapter
This diff is collapsed.
Click to expand it.
fs-succinct/tree_shapes.asy
0 → 100644
+
18
−
0
View file @
9abd703e
import succinct_common;
draw((-3,-2) -- (3,-2), 0.3*white);
draw((-3.2,-4)--(-3.2,-2), Arrows);
label((-3.2, -3), "$h$", W);
draw((3.2,-3.5)--(3.2,-2), Arrows);
label((3.2, -2.75), "$h-1$", E);
void subtree(path p) {
filldraw(p, 0.5*white);
}
subtree((-1.75, -4)--(-0.75,-4)--(-1.25,-2)--cycle);
subtree((-0.5, -4)--(0,-4)--(0,-3.5)--(0.5,-3.5)--(0,-2)--cycle);
subtree((1.75, -3.5)--(0.75,-3.5)--(1.25,-2)--cycle);
draw((-3, -4) -- (0,-4) -- (0,-3.5) -- (3,-3.5) -- (0, 0) -- cycle, halfthick);
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