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
7358e5e9
Commit
7358e5e9
authored
3 years ago
by
Filip Stedronsky
Browse files
Options
Downloads
Patches
Plain Diff
Succinct: progress
parent
328470af
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
+1
-1
1 addition, 1 deletion
fs-succinct/Makefile
fs-succinct/composition.asy
+24
-0
24 additions, 0 deletions
fs-succinct/composition.asy
fs-succinct/succinct.tex
+17
-0
17 additions, 0 deletions
fs-succinct/succinct.tex
with
42 additions
and
1 deletion
fs-succinct/Makefile
+
1
−
1
View file @
7358e5e9
TOP
=
..
TOP
=
..
PICS
=
sole sole_boxes sole_hilevel mixer
PICS
=
sole sole_boxes sole_hilevel mixer
composition
include
../Makerules
include
../Makerules
...
...
This diff is collapsed.
Click to expand it.
fs-succinct/composition.asy
0 → 100644
+
24
−
0
View file @
7358e5e9
//import ads;
//import flowchart;
//draw(roundrectangle("f", (0,0)));
//draw(roundrectangle("g", (1,-1)));
//draw(roundrectangle("h", (-1,-2)));
object f1 = draw("$f_1$", roundbox, (0,0), xmargin=0.5, ymargin=0.5);
object f2 = draw("$f_2$", roundbox, (1cm,-1cm), xmargin=0.5, ymargin=0.5);
object f3 = draw("$f_3$", roundbox, (-1cm,-1.5cm), xmargin=0.5, ymargin=0.5);
// XXX this does not work when setting unitsize
draw(point(f1, SE) -- point(f2, NW), Arrow);
draw(point(f1, SW) -- point(f3, NE), Arrow);
draw(point(f2, W) -- point(f3, E), Arrow);
draw(roundbox(bbox(), xmargin=0.35cm));
draw(point(f2, S) -- (xpart(point(f2, S)), -2.5cm), Arrow);
draw(point(f3, S) -- (xpart(point(f3, S)), -2.5cm), Arrow);
draw((xpart(point(f1, N)), 1cm) -- point(f1, N), Arrow);
label("$f$", (xpart(min(currentpicture)), ypart(max(currentpicture))) + (0.25cm, -0.25cm));
This diff is collapsed.
Click to expand it.
fs-succinct/succinct.tex
+
17
−
0
View file @
7358e5e9
...
@@ -284,6 +284,23 @@ want to set $C$ so that it satisfies the inequality $C \cdot Y \le 2^M$. Basical
...
@@ -284,6 +284,23 @@ want to set $C$ so that it satisfies the inequality $C \cdot Y \le 2^M$. Basical
we are asking the question how much information can we fit in
$
m
$
in addition to
we are asking the question how much information can we fit in
$
m
$
in addition to
the whole of
$
y
$
. Clearly we want
$
C
$
to be as high as possibly, thus we set
the whole of
$
y
$
. Clearly we want
$
C
$
to be as high as possibly, thus we set
$
C :
=
\lfloor
2
^
M
/
Y
\rfloor
$
.
$
C :
=
\lfloor
2
^
M
/
Y
\rfloor
$
.
Now let us calculate the redundancy. First we shall note that we can compute redundancy
for
$
f
_
1
$
and
$
f
_
2
$
separately and add them up:
$$
\eqalign
{
r
(
f
)
&
=
M
+
\lceil\log
S
\rceil
-
\lceil\log
X
\rceil
-
\lceil\log
Y
\rceil
\cr
&
=
\left
(
M
-
\lceil\log
C
\rceil
-
\lceil\log
Y
\rceil\right
)
+
\left
(
\lceil\log
C
\rceil
+
\lceil\log
S
\rceil
-
\lceil\log
X
\rceil\right
)
\cr
&
=
r
(
f
_
2
)
+
r
(
f
_
1
)
}$$
}
}
This is just a telescopic sum. It works similarly for more complex mapping compositions:
as long as each intermediate result is used only once as an input to another mapping, you
can just sum the redundancies of all the mappings involved.
For example, if you have a mapping composition as in fig.
\figref
{
composition
}
,
you can easily see
$
r
(
f
)
=
r
(
f
_
1
)
+
r
(
f
_
2
)
+
r
(
f
_
3
)
$
.
\figure
[composition]
{
composition.pdf
}{}{
Mapping composition
}
First, we shall estimate
$
r
(
f
_
2
)
$
:
$$
\eqalign
{
r
(
f
_
2
)
&
=
M
-
\log
(
Y
\cdot
C
)=
M
-
\log
(
\overbrace
{
Y
\cdot
\lfloor
2
^
M
/
Y
\rfloor
}^{
\ge
2
^
M
-
Y
}
)
\cr
r
(
f
_
2
)
&
\le
M
-
\log
(
2
^
M
-
Y
)=
\log
{
2
^
M
\over
2
^
M
-
Y
}
=
\log
{
1
\over
1
-
{
Y
\over
2
^
M
}}}$$
\endchapter
\endchapter
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