mirror of
https://github.com/chylex/Brotli-Builder.git
synced 2025-04-12 15:15:42 +02:00
Add thesis
This commit is contained in:
parent
9cfba5216f
commit
82c8ae8b0e
Paper
BrotliCompression.pdfLICENSE.md
README.mdSource
.gitignoreBrotliCompression.tex
Figures
ExampleBitMarkerGUI.png
TeX
block-switch-builder-api.texblock-switch-example-ic-lengths.texblock-switch-example-literals.texdictionary-index-lookup-example.texdictionary-transform-examples.texdictionary-transform-use-counts.texdistance-context-map-example.texforce-lcm-best-results.texhuffman-tree-code-16-example.texintermediary-code-example.texmove-to-front-english-example.texmulti-lcm-base64-details.texobject-representation-meta-block-data.texobject-representation-meta-block-header.texobject-representation-root.texofficial-block-splitting-iteration-example.texquality-0-1-command-generation-example.texreserialize-context-map-strategies-distance-best.texreserialize-context-map-strategies-literal-best.texself-referential-ic-command-steps.tex
TikZ
benchmark-unmodified.texdisabled-block-split-context-model.texdisabled-context-model.texdisabled-dictionary-websites.texdisabled-dictionary.texdisabled-distance-parameters.texdisabled-histogram-optimization.texencode-transform-pipeline.texforce-lcm-base64-q10.texforce-lcm-base64-q11.texhuffman-tree-example.texhuffman-tree-simple-shapes.texofficial-block-splitting-merge-example.texofficial-context-modeling-example.texpicking-strategies-block-type-codes.texpicking-strategies-distance-codes.texrebuild-overall-comparison-zoomed.texrebuild-overall-comparison.texreserialize-block-type-code-savings.texreserialize-context-map-strategies-distance.texreserialize-context-map-strategies-literal.texreserialize-distance-code-savings.texreserialize-overall-comparison-zoomed.texreserialize-overall-comparison.textest-corpus-comparison.textest-corpus-context-map-bits.textest-corpus-distance-context-ids.tex
References
SourceCodes
diploma.clspdfa.xmpisRGBIEC1966-2.1.icm
BIN
Paper/BrotliCompression.pdf
Normal file
BIN
Paper/BrotliCompression.pdf
Normal file
Binary file not shown.
171
Paper/LICENSE.md
Normal file
171
Paper/LICENSE.md
Normal file
@ -0,0 +1,171 @@
|
||||
# Attribution-ShareAlike 4.0 International
|
||||
|
||||
Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
|
||||
|
||||
### Using Creative Commons Public Licenses
|
||||
|
||||
Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
|
||||
|
||||
* __Considerations for licensors:__ Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. [More considerations for licensors](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensors).
|
||||
|
||||
* __Considerations for the public:__ By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. [More considerations for the public](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensees).
|
||||
|
||||
## Creative Commons Attribution-ShareAlike 4.0 International Public License
|
||||
|
||||
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
|
||||
|
||||
### Section 1 – Definitions.
|
||||
|
||||
a. __Adapted Material__ means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
|
||||
|
||||
b. __Adapter's License__ means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
|
||||
|
||||
c. __BY-SA Compatible License__ means a license listed at [creativecommons.org/compatiblelicenses](http://creativecommons.org/compatiblelicenses), approved by Creative Commons as essentially the equivalent of this Public License.
|
||||
|
||||
d. __Copyright and Similar Rights__ means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
|
||||
|
||||
e. __Effective Technological Measures__ means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
|
||||
|
||||
f. __Exceptions and Limitations__ means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
|
||||
|
||||
g. __License Elements__ means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike.
|
||||
|
||||
h. __Licensed Material__ means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
|
||||
|
||||
i. __Licensed Rights__ means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
|
||||
|
||||
j. __Licensor__ means the individual(s) or entity(ies) granting rights under this Public License.
|
||||
|
||||
k. __Share__ means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
|
||||
|
||||
l. __Sui Generis Database Rights__ means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
|
||||
|
||||
m. __You__ means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
|
||||
|
||||
### Section 2 – Scope.
|
||||
|
||||
a. ___License grant.___
|
||||
|
||||
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
|
||||
|
||||
A. reproduce and Share the Licensed Material, in whole or in part; and
|
||||
|
||||
B. produce, reproduce, and Share Adapted Material.
|
||||
|
||||
2. __Exceptions and Limitations.__ For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
|
||||
|
||||
3. __Term.__ The term of this Public License is specified in Section 6(a).
|
||||
|
||||
4. __Media and formats; technical modifications allowed.__ The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
|
||||
|
||||
5. __Downstream recipients.__
|
||||
|
||||
A. __Offer from the Licensor – Licensed Material.__ Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
|
||||
|
||||
B. __Additional offer from the Licensor – Adapted Material.__ Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply.
|
||||
|
||||
C. __No downstream restrictions.__ You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
|
||||
|
||||
6. __No endorsement.__ Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
|
||||
|
||||
b. ___Other rights.___
|
||||
|
||||
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
|
||||
|
||||
2. Patent and trademark rights are not licensed under this Public License.
|
||||
|
||||
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
|
||||
|
||||
### Section 3 – License Conditions.
|
||||
|
||||
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
|
||||
|
||||
a. ___Attribution.___
|
||||
|
||||
1. If You Share the Licensed Material (including in modified form), You must:
|
||||
|
||||
A. retain the following if it is supplied by the Licensor with the Licensed Material:
|
||||
|
||||
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
|
||||
|
||||
ii. a copyright notice;
|
||||
|
||||
iii. a notice that refers to this Public License;
|
||||
|
||||
iv. a notice that refers to the disclaimer of warranties;
|
||||
|
||||
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
|
||||
|
||||
B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
|
||||
|
||||
C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
|
||||
|
||||
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
|
||||
|
||||
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
|
||||
|
||||
b. ___ShareAlike.___
|
||||
|
||||
In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
|
||||
|
||||
1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License.
|
||||
|
||||
2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
|
||||
|
||||
3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
|
||||
|
||||
### Section 4 – Sui Generis Database Rights.
|
||||
|
||||
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
|
||||
|
||||
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
|
||||
|
||||
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and
|
||||
|
||||
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
|
||||
|
||||
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
|
||||
|
||||
### Section 5 – Disclaimer of Warranties and Limitation of Liability.
|
||||
|
||||
a. __Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.__
|
||||
|
||||
b. __To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.__
|
||||
|
||||
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
|
||||
|
||||
### Section 6 – Term and Termination.
|
||||
|
||||
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
|
||||
|
||||
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
|
||||
|
||||
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
|
||||
|
||||
2. upon express reinstatement by the Licensor.
|
||||
|
||||
For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
|
||||
|
||||
c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
|
||||
|
||||
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
|
||||
|
||||
### Section 7 – Other Terms and Conditions.
|
||||
|
||||
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
|
||||
|
||||
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
|
||||
|
||||
### Section 8 – Interpretation.
|
||||
|
||||
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
|
||||
|
||||
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
|
||||
|
||||
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
|
||||
|
||||
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
|
||||
|
||||
> Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” The text of the Creative Commons public licenses is dedicated to the public domain under the [CC0 Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/legalcode). Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at [creativecommons.org/policies](http://creativecommons.org/policies), Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
|
||||
>
|
||||
> Creative Commons may be contacted at creativecommons.org.
|
13
Paper/Source/.gitignore
vendored
Normal file
13
Paper/Source/.gitignore
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
Generated/
|
||||
Auxiliary/
|
||||
Figures/Assignment1.jpg
|
||||
Figures/Declaration.jpg
|
||||
|
||||
*.pdf
|
||||
|
||||
*.fdb_latexmk
|
||||
*.synctex
|
||||
*.synctex(busy)
|
||||
*.synctex.gz
|
||||
*.synctex.gz(busy)
|
||||
*.pdfsync
|
1929
Paper/Source/BrotliCompression.tex
Normal file
1929
Paper/Source/BrotliCompression.tex
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Paper/Source/Figures/ExampleBitMarkerGUI.png
Normal file
BIN
Paper/Source/Figures/ExampleBitMarkerGUI.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 30 KiB |
76
Paper/Source/Figures/TeX/block-switch-builder-api.tex
Normal file
76
Paper/Source/Figures/TeX/block-switch-builder-api.tex
Normal file
@ -0,0 +1,76 @@
|
||||
\begin{lstlisting}[frame = top]
|
||||
var blocks = builder.BlockTypes[Category.InsertCopy].Reset();
|
||||
\end{lstlisting}
|
||||
|
||||
$\begin{array}{|*{11}{c|}l}
|
||||
\cline{1-11}
|
||||
IC_1 & IC_2 & IC_3 & IC_4 & IC_5 & IC_6 & IC_7 & IC_8 & IC_9 & IC_{10} & IC_{11} & \phantom{\begin{aligned}&B\\[-5pt]&B\end{aligned}} \\
|
||||
\cline{1-11}
|
||||
\addlinespace
|
||||
\cline{1-11}
|
||||
\addlinespace[0.3ex]
|
||||
\multicolumn{11}{c}{BT = 0} & \multicolumn{1}{c}{} \\
|
||||
\end{array}$
|
||||
|
||||
\bigskip
|
||||
|
||||
\begin{lstlisting}[frame = none]
|
||||
blocks.SetInitialLength(𝟒);
|
||||
\end{lstlisting}
|
||||
|
||||
$\begin{array}{|*{12}{c|}}
|
||||
\hline
|
||||
IC_1 & IC_2 & IC_3 & IC_4 &
|
||||
\begin{aligned}BT &=\,? \\[-5pt] BC &=\,?\end{aligned} &
|
||||
IC_5 & IC_6 & IC_7 & IC_8 & IC_9 & IC_{10} & IC_{11} \\
|
||||
\hline
|
||||
\addlinespace
|
||||
\cline{1-4} \cline{6-12}
|
||||
\addlinespace[0.3ex]
|
||||
\multicolumn{4}{c}{BT = 0} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{7}{c}{BT =\,?} \\
|
||||
\end{array}$
|
||||
|
||||
\bigskip
|
||||
|
||||
\begin{lstlisting}[frame = none]
|
||||
blocks.AddBlock(type: 𝟏, length: 𝟐);
|
||||
\end{lstlisting}
|
||||
|
||||
$\begin{array}{|*{13}{c|}}
|
||||
\hline
|
||||
IC_1 & IC_2 & IC_3 & IC_4 &
|
||||
\begin{aligned}BT &= 1 \\[-5pt] BC &= 2\end{aligned} &
|
||||
IC_5 & IC_6 &
|
||||
\begin{aligned}BT &=\,? \\[-5pt] BC &=\,?\end{aligned} &
|
||||
IC_7 & IC_8 & IC_9 & IC_{10} & IC_{11} \\
|
||||
\hline
|
||||
\addlinespace
|
||||
\cline{1-4} \cline{6-7} \cline{9-13}
|
||||
\addlinespace[0.3ex]
|
||||
\multicolumn{4}{c}{BT = 0} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{2}{c}{BT = 1} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{5}{c}{BT =\,?} \\
|
||||
\end{array}$
|
||||
|
||||
\bigskip
|
||||
|
||||
\begin{lstlisting}[frame = none]
|
||||
blocks.AddFinalBlock(type: 𝟐);
|
||||
\end{lstlisting}
|
||||
|
||||
$\begin{array}{|*{13}{c|}}
|
||||
\hline
|
||||
IC_1 & IC_2 & IC_3 & IC_4 &
|
||||
\begin{aligned}BT &= 1 \\[-5pt] BC &= 2\end{aligned} &
|
||||
IC_5 & IC_6 &
|
||||
\begin{aligned}BT &= 2 \\[-5pt] BC &= 5\end{aligned} &
|
||||
IC_7 & IC_8 & IC_9 & IC_{10} & IC_{11} \\
|
||||
\hline
|
||||
\addlinespace
|
||||
\cline{1-4} \cline{6-7} \cline{9-13}
|
||||
\addlinespace[0.3ex]
|
||||
\multicolumn{4}{c}{BT = 0} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{2}{c}{BT = 1} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{5}{c}{BT = 2} \\
|
||||
\end{array}$
|
21
Paper/Source/Figures/TeX/block-switch-example-ic-lengths.tex
Normal file
21
Paper/Source/Figures/TeX/block-switch-example-ic-lengths.tex
Normal file
@ -0,0 +1,21 @@
|
||||
$ HTREE_I\ =\ [\,T_0,\,T_1,\,T_2\,] $
|
||||
|
||||
\bigskip
|
||||
$\begin{array}{|*{12}{c|}}
|
||||
\hline
|
||||
IC_1 & IC_2 & IC_3 & IC_4 &
|
||||
\begin{aligned}BT_I &= 2 \\[-5pt] BC_I &= 1\end{aligned} &
|
||||
IC_5 &
|
||||
\begin{aligned}BT_I &= 0 \\[-5pt] BC_I &= 2\end{aligned} &
|
||||
IC_6 & IC_7 &
|
||||
\begin{aligned}BT_I &= 1 \\[-5pt] BC_I &= \dots\end{aligned} &
|
||||
IC_8 & \dots \\
|
||||
\hline
|
||||
\addlinespace
|
||||
\cline{1-4} \cline{6-6} \cline{8-9} \cline{11-12}
|
||||
\addlinespace[0.3ex]
|
||||
\multicolumn{4}{c}{T_0} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{1}{c}{T_2} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{2}{c}{T_0} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{2}{c}{T_1} \\
|
||||
\end{array}$
|
19
Paper/Source/Figures/TeX/block-switch-example-literals.tex
Normal file
19
Paper/Source/Figures/TeX/block-switch-example-literals.tex
Normal file
@ -0,0 +1,19 @@
|
||||
$\begin{array}{|*{15}{c|}}
|
||||
\hline
|
||||
\multicolumn{9}{|c|}{IC_1} & \multicolumn{6}{c|}{IC_2} \\
|
||||
\hline
|
||||
\addlinespace
|
||||
\hline
|
||||
L_1 & L_2 & L_3 &
|
||||
\begin{aligned}BT_L &= 1 \\[-5pt] BC_L &= 6\end{aligned} &
|
||||
L_4 & L_5 & L_6 & L_7 & D_1 & L_8 & L_9 &
|
||||
\begin{aligned}BT_L &= 0 \\[-5pt] BC_L &= \dots\end{aligned} &
|
||||
L_{10} & L_{11} & \dots \\
|
||||
\hline
|
||||
\addlinespace
|
||||
\cline{1-3} \cline{5-11} \cline{13-15}
|
||||
\addlinespace[0.3ex]
|
||||
\multicolumn{3}{c}{BT_L = 0} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{7}{c}{BT_L = 1} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{3}{c}{BT_L = 0} \\
|
||||
\end{array}$
|
36
Paper/Source/Figures/TeX/dictionary-index-lookup-example.tex
Normal file
36
Paper/Source/Figures/TeX/dictionary-index-lookup-example.tex
Normal file
@ -0,0 +1,36 @@
|
||||
\newcolumntype{q}{|@{\hskip4pt}f{8pt}@{\hskip4pt}}
|
||||
\newcommand{\rowsep}{\cline{1-18}\addlinespace\cline{1-18}}
|
||||
\newcommand{\s}{\textvisiblespace}
|
||||
|
||||
\begin{tabular}{qqqqqqqqqqqqqqqqqq|}
|
||||
\hline
|
||||
B & a & c & k & \s & t & o & \s & t & h & e & \s & f & u & t & u & r & e \\
|
||||
\hline
|
||||
\hline
|
||||
\end{tabular}
|
||||
\\
|
||||
\begin{tabular}{qqqqqqqqqqqqqqqqqq|l}
|
||||
\addlinespace
|
||||
\cline{1-18}
|
||||
B & a & c & k & & & & & & & & & & & & & & & \triple{4}{4}{9};\triple{10}{86}{56} \\
|
||||
\rowsep
|
||||
B & a & c & k & \s & & & & & & & & & & & & & & \triple{4}{4}{4} \\
|
||||
\rowsep
|
||||
B & a & c & k & \s & t & & & & & & & & & & & & & \,(no matches) \\
|
||||
\rowsep
|
||||
B & a & c & k & \s & t & o & & & & & & & & & & & & \,(no matches) \\
|
||||
\rowsep
|
||||
B & a & c & k & \s & t & o & \s & & & & & & & & & & & \triple{8}{277}{9} \\
|
||||
\rowsep
|
||||
B & a & c & k & \s & t & o & \s & t & & & & & & & & & & \,(no matches) \\
|
||||
\rowsep
|
||||
B & a & c & k & \s & t & o & \s & t & h & & & & & & & & & \,(no matches) \\
|
||||
\rowsep
|
||||
B & a & c & k & \s & t & o & \s & t & h & e & & & & & & & & \triple{11}{724}{9} \\
|
||||
\rowsep
|
||||
B & a & c & k & \s & t & o & \s & t & h & e & \s & & & & & & & \triple{11}{724}{4};\triple{12}{397}{9} \\
|
||||
\cline{1-18}
|
||||
\addlinespace
|
||||
\multicolumn{18}{c}{(longer prefixes yield no more matches)} & \\
|
||||
\addlinespace
|
||||
\end{tabular}
|
12
Paper/Source/Figures/TeX/dictionary-transform-examples.tex
Normal file
12
Paper/Source/Figures/TeX/dictionary-transform-examples.tex
Normal file
@ -0,0 +1,12 @@
|
||||
\newcommand{\ttspace}{\texttt{\textvisiblespace}}
|
||||
\begin{tabular}{r|c|c|c|l}
|
||||
ID & Function & Prefix & Suffix & Example \\ \hline
|
||||
0 & Identity & & & \verb|time| $\rightarrow$ \verb|time| \\
|
||||
1 & Identity & & \ttspace & \verb|time| $\rightarrow$ \verb|time|\,\ttspace \\
|
||||
2 & Identity & \ttspace & \ttspace & \verb|time| $\rightarrow$ \ttspace\,\verb|time|\,\ttspace \\
|
||||
3 & Omit First 1 & & & \verb|time| $\rightarrow$ \verb|ime| \\
|
||||
9 & Ferment First & & & \verb|time| $\rightarrow$ \verb|Time| \\
|
||||
49 & Omit Last 1 & & \verb|ing|\,\ttspace & \verb|time| $\rightarrow$ \verb|timing|\,\ttspace \\
|
||||
67 & Identity & \verb|.| & \verb|(| & \verb|time| $\rightarrow$ \verb|.time(| \\
|
||||
107 & Ferment All & & \verb|.| & \verb|time| $\rightarrow$ \verb|TIME.|
|
||||
\end{tabular}
|
34
Paper/Source/Figures/TeX/dictionary-transform-use-counts.tex
Normal file
34
Paper/Source/Figures/TeX/dictionary-transform-use-counts.tex
Normal file
@ -0,0 +1,34 @@
|
||||
\newcommand{\topleft}{\diagbox[font = \footnotesize, height = 28pt]{Function}{Quality}}
|
||||
|
||||
\begin{tabular}{|r|r|r|r|r|r|r|r|r|r|}
|
||||
\hline
|
||||
\topleft & \th{2} & \th{4} & \th{5} & \th{6} & \th{7} & \th{8} & \th{9} & \th{10} & \th{11} \\ \hline
|
||||
\th{Identity} & 770 & 5\,860 & 28\,954 & 27\,614 & 26\,899 & 26\,703 & 26\,233 & 90\,239 & 98\,464 \\
|
||||
\th{Ferment First} & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 14\,426 & 19\,532 \\
|
||||
\th{Ferment All} & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 7\,228 & 9\,116 \\
|
||||
\th{Omit Last 1} & 239 & 2\,106 & 5\,362 & 5\,153 & 5\,047 & 4\,999 & 4\,931 & 3\,012 & 4\,355 \\
|
||||
\th{Omit Last 2} & 377 & 2\,001 & 2\,263 & 2\,129 & 2\,067 & 2\,053 & 1\,992 & 921 & 1\,544 \\
|
||||
\th{Omit Last 3} & 399 & 2\,991 & 1\,450 & 1\,325 & 1\,286 & 1\,265 & 1\,217 & 1\,057 & 2\,055 \\
|
||||
\th{Omit Last 4} & 255 & 2\,269 & 1\,287 & 1\,184 & 1\,141 & 1\,123 & 1\,103 & 528 & 1\,053 \\
|
||||
\th{Omit Last 5} & 119 & 1\,861 & 724 & 680 & 664 & 664 & 645 & 204 & 368 \\
|
||||
\th{Omit Last 6} & 48 & 1\,347 & 548 & 523 & 504 & 503 & 496 & 196 & 393 \\
|
||||
\th{Omit Last 7} & 50 & 865 & 444 & 435 & 426 & 422 & 412 & 244 & 397 \\
|
||||
\th{Omit Last 8} & 107 & 872 & 346 & 331 & 327 & 324 & 315 & 225 & 377 \\
|
||||
\th{Omit Last 9} & 41 & 410 & 277 & 256 & 251 & 246 & 242 & 239 & 423 \\
|
||||
\th{Omit First 1--9} & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ \hline
|
||||
|
||||
\addlinespace
|
||||
\cline{2-10}
|
||||
\multicolumn{1}{c|}{} &
|
||||
\small 2\,405 &
|
||||
\small 20\,582 &
|
||||
\small 41\,655 &
|
||||
\small 39\,630 &
|
||||
\small 38\,612 &
|
||||
\small 38\,302 &
|
||||
\small 37\,586 &
|
||||
\small 118\,519 &
|
||||
\small 138\,077
|
||||
\fixcline
|
||||
\cline{2-10}
|
||||
\end{tabular}
|
21
Paper/Source/Figures/TeX/distance-context-map-example.tex
Normal file
21
Paper/Source/Figures/TeX/distance-context-map-example.tex
Normal file
@ -0,0 +1,21 @@
|
||||
$ HTREE_D\ =\ [\,T_0,\,T_1,\,T_2,\,T_3,\,T_4,\,T_5,\,T_6\,]$
|
||||
|
||||
\medskip
|
||||
$ CMAP_D\ =\ \begin{array}{|*{14}{c|}}
|
||||
\multicolumn{5}{c}{} &
|
||||
\multicolumn{4}{@{\hspace{ 0em}}r}{\textsubscript{context ID = 3}} &
|
||||
\multicolumn{5}{c}{} \\
|
||||
\cline{9-9}
|
||||
\addlinespace
|
||||
\cline{1-4} \cline{6-9} \cline{11-14}
|
||||
0 & 0 & 0 & 2 & \cdot &
|
||||
1 & 1 & 2 & 2 & \cdot &
|
||||
3 & 4 & 5 & 6 \fixcline
|
||||
\cline{1-4} \cline{6-9} \cline{11-14}
|
||||
\addlinespace
|
||||
\cline{1-4} \cline{6-9} \cline{11-14}
|
||||
\addlinespace[0.3ex]
|
||||
\multicolumn{4}{c}{BT = 0} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{4}{c}{BT = 1} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{4}{c}{BT = 2} \\
|
||||
\end{array}$
|
20
Paper/Source/Figures/TeX/force-lcm-best-results.tex
Normal file
20
Paper/Source/Figures/TeX/force-lcm-best-results.tex
Normal file
@ -0,0 +1,20 @@
|
||||
\newcommand{\corpusCC}{\multirow{2}{*}{\vspace{-5pt}\shortstack[c]{Canterbury\\Corpus}}}
|
||||
\newcommand{\corpusSC}{\multirow{2}{*}{\vspace{-5pt}\shortstack[c]{Silesia\\Corpus}}}
|
||||
\newcommand{\corpusSD}{\multirow{2}{*}{\vspace{-5pt}\shortstack[c]{Snappy\\Test Data}}}
|
||||
\newcommand{\corpusBL}{\multirow{2}{*}{\vspace{-5pt}\shortstack[c]{Bible\\Languages}}}
|
||||
\newcommand{\corpusWR}{\multirow{2}{*}{\vspace{-5pt}\shortstack[c]{Website\\Resources}}}
|
||||
|
||||
\begin{tabular}{c|c|f{1.58cm}|f{1.58cm}|f{1.58cm}|f{1.58cm}|r}
|
||||
& & \multicolumn{4}{c|}{Best/Tied Literal Context Mode} & \\ \cline{3-6}
|
||||
& Quality & \verb|LSB6| & \verb|MSB6| & \verb|UTF8| & \verb|Signed| & \th{Potential Savings} \\ \hline
|
||||
\corpusCC & 10 & 3 / 0 & 1 / 0 & 6 / 0 & 1 / 0 & \verb|1 831 B| ($\approx 0.36 \%$) \\
|
||||
& 11 & 1 / 1 & 0 / 1 & 6 / 0 & 3 / 1 & \verb|1 200 B| ($\approx 0.25 \%$) \\ \hline
|
||||
\corpusSC & 10 & 0 / 0 & 2 / 0 & 6 / 0 & 4 / 0 & \verb|35 907 B| ($\approx 0.07 \%$) \\
|
||||
& 11 & 1 / 0 & 1 / 0 & 6 / 0 & 4 / 0 & \verb|15 976 B| ($\approx 0.03 \%$) \\ \hline
|
||||
\corpusSD & 10 & 0 / 0 & 2 / 0 & 4 / 0 & 0 / 0 & \verb|277 B| ($\approx 0.07 \%$) \\
|
||||
& 11 & 0 / 0 & 2 / 0 & 4 / 0 & 0 / 0 & \verb|349 B| ($\approx 0.09 \%$) \\ \hline
|
||||
\corpusBL & 10 & 6 / 0 & 0 / 0 & 1 / 0 & 0 / 0 & \verb|31 306 B| ($\approx 0.44 \%$) \\
|
||||
& 11 & 3 / 0 & 0 / 0 & 4 / 0 & 0 / 0 & \verb|494 B| ($\approx 0.01 \%$) \\ \hline
|
||||
\corpusWR & 10 & 2 / 1 & 8 / 3 & 105 / 1\phantom{00} & 7 / 4 & \verb|779 B| ($\approx 0.02 \%$) \\
|
||||
& 11 & 2 / 3 & 6 / 7 & 97 / 10 & 12 / 10 & \verb|993 B| ($\approx 0.02 \%$)
|
||||
\end{tabular}
|
98
Paper/Source/Figures/TeX/huffman-tree-code-16-example.tex
Normal file
98
Paper/Source/Figures/TeX/huffman-tree-code-16-example.tex
Normal file
@ -0,0 +1,98 @@
|
||||
\newcommand{\colorA}[1]{\textcolor{green!60!black}{#1}}
|
||||
\newcommand{\colorB}[1]{\textcolor{magenta!65!black}{#1}}
|
||||
\newcommand{\colorC}[1]{\textcolor{cyan!60!black}{#1}}
|
||||
|
||||
\begin{minipage}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
\newcommand{\codearray}[3]{
|
||||
$\begin{array}{|c|c|}
|
||||
\hline
|
||||
16 & +\colorA{#1} \\
|
||||
\hline
|
||||
\addlinespace[2pt]
|
||||
\end{array} \,= #2 = #3$
|
||||
|
||||
}
|
||||
|
||||
\codearray{00}{3 + \colorA{0}}{3}
|
||||
\codearray{01}{3 + \colorA{1}}{4}
|
||||
\codearray{10}{3 + \colorA{2}}{5}
|
||||
\codearray{11}{3 + \colorA{3}}{6}
|
||||
\end{minipage}
|
||||
|
||||
\vspace{16pt}
|
||||
|
||||
\begin{minipage}[t]{0.5\textwidth}
|
||||
\vspace{0pt}
|
||||
\newcommand{\codearray}[4]{
|
||||
$\begin{array}{|c|c|c|c|}
|
||||
\hline
|
||||
16 & +\colorB{#1} & 16 & +\colorA{#2} \\
|
||||
\hline
|
||||
\addlinespace[2pt]
|
||||
\end{array} \,= #3 = #4$
|
||||
|
||||
}
|
||||
|
||||
\codearray{00}{00}{3 + (4 \times \colorB{1}) + \colorA{0}}{7}
|
||||
\codearray{00}{01}{3 + (4 \times \colorB{1}) + \colorA{1}}{8}
|
||||
\codearray{00}{10}{3 + (4 \times \colorB{1}) + \colorA{2}}{9}
|
||||
\codearray{00}{11}{3 + (4 \times \colorB{1}) + \colorA{3}}{10}
|
||||
|
||||
\vspace{16pt}
|
||||
|
||||
\codearray{10}{00}{3 + (4 \times \colorB{3}) + \colorA{0}}{15}
|
||||
\codearray{10}{01}{3 + (4 \times \colorB{3}) + \colorA{1}}{16}
|
||||
\codearray{10}{10}{3 + (4 \times \colorB{3}) + \colorA{2}}{17}
|
||||
\codearray{10}{11}{3 + (4 \times \colorB{3}) + \colorA{3}}{18}
|
||||
\end{minipage}%
|
||||
\begin{minipage}[t]{0.5\textwidth}
|
||||
\vspace{0pt}
|
||||
\newcommand{\codearray}[4]{
|
||||
$\begin{array}{|c|c|c|c|}
|
||||
\hline
|
||||
16 & +\colorB{#1} & 16 & +\colorA{#2} \\
|
||||
\hline
|
||||
\addlinespace[2pt]
|
||||
\end{array} \,= #3 = #4$
|
||||
|
||||
}
|
||||
|
||||
\codearray{01}{00}{3 + (4 \times \colorB{2}) + \colorA{0}}{11}
|
||||
\codearray{01}{01}{3 + (4 \times \colorB{2}) + \colorA{1}}{12}
|
||||
\codearray{01}{10}{3 + (4 \times \colorB{2}) + \colorA{2}}{13}
|
||||
\codearray{01}{11}{3 + (4 \times \colorB{2}) + \colorA{3}}{14}
|
||||
|
||||
\vspace{16pt}
|
||||
|
||||
\codearray{11}{00}{3 + (4 \times \colorB{4}) + \colorA{0}}{19}
|
||||
\codearray{11}{01}{3 + (4 \times \colorB{4}) + \colorA{1}}{20}
|
||||
\codearray{11}{10}{3 + (4 \times \colorB{4}) + \colorA{2}}{21}
|
||||
\codearray{11}{11}{3 + (4 \times \colorB{4}) + \colorA{3}}{22}
|
||||
\end{minipage}
|
||||
|
||||
\vspace{16pt}
|
||||
|
||||
\begin{minipage}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
\newcommand{\codearray}[5]{
|
||||
$\begin{array}{|c|c|c|c|c|c|}
|
||||
\hline
|
||||
16 & +\colorC{#1} & 16 & +\colorB{#2} & 16 & +\colorA{#3} \\
|
||||
\hline
|
||||
\addlinespace[2pt]
|
||||
\end{array} \,= #4 = #5$
|
||||
|
||||
}
|
||||
|
||||
\codearray{00}{00}{00}{3 + \Big(4 \times \big((4 \times \colorC{1}) + \colorB{1}\big)\Big) + \colorA{0}}{23}
|
||||
\codearray{00}{00}{01}{3 + \Big(4 \times \big((4 \times \colorC{1}) + \colorB{1}\big)\Big) + \colorA{1}}{24}
|
||||
|
||||
\centerline{\vdots}
|
||||
\vspace{4pt}
|
||||
|
||||
\codearray{11}{11}{11}{3 + \Big(4 \times \big((4 \times \colorC{4}) + \colorB{4}\big)\Big) + \colorA{3}}{86}
|
||||
|
||||
\centerline{\vdots}
|
||||
\centerline{etc.}
|
||||
\end{minipage}
|
39
Paper/Source/Figures/TeX/intermediary-code-example.tex
Normal file
39
Paper/Source/Figures/TeX/intermediary-code-example.tex
Normal file
@ -0,0 +1,39 @@
|
||||
\newcommand{\colg}{\color{green!60!black}}
|
||||
\newcommand{\colc}{\color{cyan!60!black}}
|
||||
\newcommand{\colm}{\color{magenta!65!black}}
|
||||
\newcommand{\colr}{\color{red!75!black}}
|
||||
|
||||
\newcommand{\codeOO}{{\colg\texttt{00}}}
|
||||
\newcommand{\codeOI}{{\colc\texttt{01}}}
|
||||
\newcommand{\codeIO}{{\colm\texttt{10}}}
|
||||
\newcommand{\codeII}{{\colr\texttt{11}}}
|
||||
|
||||
\newcommand{\pO}{\phantom{0}}
|
||||
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
\centering
|
||||
|
||||
\begin{tabular}{c|c|c|c}
|
||||
\th{Code} & \th{Range} & \th{Difference} & \th{Extra Bits} \\ \hline
|
||||
\codeOO & {\colg 1}--1 & $0 = 2^0$ & 0 \\
|
||||
\codeOI & {\colc 2}--3 & $1 = 2^1$ & 1 \\
|
||||
\codeIO & \pO{\colm 4}--12 & $8 = 2^3$ & 3 \\
|
||||
\codeII & {\colr 13}--21 & $8 = 2^3$ & 3
|
||||
\end{tabular}
|
||||
|
||||
\end{varwidth}%
|
||||
\hspace{0.65cm}%
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
\centering
|
||||
|
||||
\begin{tabular}{c|r||c|r}
|
||||
\th{Example} & \th{Value} & \th{Example} & \th{Value} \\ \hline
|
||||
\codeOO\,\phantom{\texttt{000}} & $\colg 1$ & \codeIO\,\verb|001| & ${\colm 4} + 1 = \pO 5$ \\
|
||||
\codeOI\,\verb|0|\phantom{\texttt{00}} & ${\colc 2} + 0 = 2$ & \codeIO\,\verb|111| & ${\colm 4} + 8 = 12$ \\
|
||||
\codeOI\,\verb|1|\phantom{\texttt{00}} & ${\colc 2} + 1 = 3$ & \codeII\,\verb|000| & ${\colr 13} + 0 = 13$ \\
|
||||
\codeIO\,\verb|000| & ${\colm 4} + 0 = 4$ & \codeII\,\verb|111| & ${\colr 13} + 8 = 21$
|
||||
\end{tabular}
|
||||
|
||||
\end{varwidth}
|
14
Paper/Source/Figures/TeX/move-to-front-english-example.tex
Normal file
14
Paper/Source/Figures/TeX/move-to-front-english-example.tex
Normal file
@ -0,0 +1,14 @@
|
||||
\newcommand{\highlight}[1]{\textcolor{red!80!white}{#1}}
|
||||
|
||||
\begin{tabular}{l|l|l|l}
|
||||
Sequence & Original & Transformed & Next Alphabet State \\ \hline
|
||||
- & - & - & \texttt{abcdefghijkl\highlight{m}nopqrst}\dots \\
|
||||
\verb|m| & $13$ & $13$ & \texttt{mabcdefghijkln\highlight{o}pqrst}\dots \\
|
||||
\verb|mo| & $13, 15$ & $13, 15$ & \texttt{omabcdefghijkl\highlight{n}pqrst}\dots \\
|
||||
\verb|mon| & $13, 15, 14$ & $13, 15, 15$ & \texttt{nomabcdefghijklpqr\highlight{s}t}\dots \\
|
||||
\verb|mons| & $13, 15, 14, 19$ & $13, 15, 15, 19$ & \texttt{sn\highlight{o}mabcdefghijklpqrt}\dots \\
|
||||
\verb|monso| & $13, 15, 14, 19, 15$ & $13, 15, 15, 19, 3$ & \texttt{\highlight{o}snmabcdefghijklpqrt}\dots \\
|
||||
\verb|monsoo| & $13, 15, 14, 19, 15, 15$ & $13, 15, 15, 19, 3, 1$ & \texttt{os\highlight{n}mabcdefghijklpqrt}\dots \\
|
||||
\verb|monsoon| & $13, 15, 14, 19, 15, 15, 14$ & $13, 15, 15, 19, 3, 1, 3$ & \texttt{no\highlight{s}mabcdefghijklpqrt}\dots \\
|
||||
\verb|monsoons| & $13, 15, 14, 19, 15, 15, 14, 19$ & $13, 15, 15, 19, 3, 1, 3, 3$ & \texttt{snomabcdefghijklpqrt}\dots
|
||||
\end{tabular}
|
24
Paper/Source/Figures/TeX/multi-lcm-base64-details.tex
Normal file
24
Paper/Source/Figures/TeX/multi-lcm-base64-details.tex
Normal file
@ -0,0 +1,24 @@
|
||||
\begin{minipage}{0.475\textwidth}
|
||||
\centering
|
||||
|
||||
\caption*{(Quality 10)}
|
||||
|
||||
\begin{tabular}{r|c|c}
|
||||
& Improved & Regressed \\ \hline
|
||||
With Base64 & 5 & 5 \\
|
||||
No Base64 & 0 & 1
|
||||
\end{tabular}
|
||||
|
||||
\end{minipage}%
|
||||
\begin{minipage}{0.475\textwidth}
|
||||
\centering
|
||||
|
||||
\caption*{(Quality 11)}
|
||||
|
||||
\begin{tabular}{r|c|c}
|
||||
& Improved & Regressed \\ \hline
|
||||
With Base64 & 5 & 5 \\
|
||||
No Base64 & 1 & 3
|
||||
\end{tabular}
|
||||
|
||||
\end{minipage}
|
@ -0,0 +1,42 @@
|
||||
\begin{tabular}{l}
|
||||
\textbf{Compressed Meta-Block Data} \\
|
||||
\addlinespace
|
||||
\hline
|
||||
\addlinespace
|
||||
List of Insert\&Copy Commands \\
|
||||
List of Block-Switch Commands $\times$ \verb|[L,I,D]| \\
|
||||
\end{tabular}
|
||||
|
||||
\bigskip
|
||||
\medskip
|
||||
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
\centering
|
||||
|
||||
\begin{tabular}[t]{l}
|
||||
\textbf{Insert\&Copy Command} \\
|
||||
\addlinespace
|
||||
\hline
|
||||
\addlinespace
|
||||
List of Literals\footnotemark \\
|
||||
Copy Length \\
|
||||
Distance\footnotemark \\
|
||||
\end{tabular}
|
||||
|
||||
\end{varwidth}%
|
||||
\hspace{0.75cm}%
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
\centering
|
||||
|
||||
\begin{tabular}[t]{l}
|
||||
\textbf{Block-Switch Command} \\
|
||||
\addlinespace
|
||||
\hline
|
||||
\addlinespace
|
||||
Block Type \\
|
||||
Block Length \\
|
||||
\end{tabular}
|
||||
|
||||
\end{varwidth}
|
@ -0,0 +1,61 @@
|
||||
\begin{tabular}{l}
|
||||
\textbf{Compressed Meta-Block Header} \\
|
||||
\addlinespace
|
||||
\hline
|
||||
\addlinespace
|
||||
Block Type Info $\times$ \verb|[L,I,D]| \\
|
||||
Distance Parameters \\
|
||||
Literal Context Mode Array \\
|
||||
Context Map $\times$ \verb|[L,D]| \\
|
||||
Huffman Tree Array $\times$ \verb|[L,I,D]| \\
|
||||
\end{tabular}
|
||||
|
||||
\bigskip
|
||||
\medskip
|
||||
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
\centering
|
||||
|
||||
\begin{tabular}[t]{l}
|
||||
\textbf{Block Type Info} \\
|
||||
\addlinespace
|
||||
\hline
|
||||
\addlinespace
|
||||
Block Type Count \\
|
||||
Initial Length \\
|
||||
Huffman Tree for Block Types \\
|
||||
Huffman Tree for Lengths \\
|
||||
\end{tabular}
|
||||
|
||||
\end{varwidth}%
|
||||
\hspace{0.75cm}%
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
\centering
|
||||
|
||||
\begin{tabular}[t]{l}
|
||||
\textbf{Distance Parameters} \\
|
||||
\addlinespace
|
||||
\hline
|
||||
\addlinespace
|
||||
Postfix Bits \\
|
||||
Direct Code Bits \\
|
||||
\end{tabular}
|
||||
|
||||
\end{varwidth}%
|
||||
\hspace{0.75cm}%
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
\centering
|
||||
|
||||
\begin{tabular}[t]{l}
|
||||
\textbf{Context Map} \\
|
||||
\addlinespace
|
||||
\hline
|
||||
\addlinespace
|
||||
Tree Count \\
|
||||
Context Map Array \\
|
||||
\end{tabular}
|
||||
|
||||
\end{varwidth}
|
44
Paper/Source/Figures/TeX/object-representation-root.tex
Normal file
44
Paper/Source/Figures/TeX/object-representation-root.tex
Normal file
@ -0,0 +1,44 @@
|
||||
\noindent
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
\centering
|
||||
|
||||
\begin{tabular}[t]{l}
|
||||
\textbf{Brotli File Structure} \\
|
||||
\addlinespace
|
||||
\hline
|
||||
\addlinespace
|
||||
Brotli File Parameters \\
|
||||
List of Meta-Blocks \\
|
||||
\end{tabular}
|
||||
|
||||
\end{varwidth}%
|
||||
\hspace{0.75cm}%
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
\centering
|
||||
|
||||
\begin{tabular}[t]{l}
|
||||
\textbf{Brotli File Parameters} \\
|
||||
\addlinespace
|
||||
\hline
|
||||
\addlinespace
|
||||
Sliding Window Size \\
|
||||
Dictionary\footnotemark \\
|
||||
\end{tabular}
|
||||
|
||||
\end{varwidth}%
|
||||
\hspace{0.75cm}%
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
\centering
|
||||
|
||||
\begin{tabular}[t]{l}
|
||||
\textbf{(Abstract) Meta-Block} \\
|
||||
\addlinespace
|
||||
\hline
|
||||
\addlinespace
|
||||
Uncompressed Data Length \\
|
||||
\end{tabular}
|
||||
|
||||
\end{varwidth}
|
@ -0,0 +1,15 @@
|
||||
$\begin{array}{cc|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
|
||||
\text{Input} & \multicolumn{1}{c}{} & \multicolumn{21}{c}{H_1, H_2, H_3, H_4, H_5} \\
|
||||
\addlinespace[2.25ex]
|
||||
\cline{3-23}
|
||||
\text{Step 1} & & 5 & 2 & 0 & 2 & 3 & 2 & 2 & 2 & 0 & 2 & 2 & 5 & 3 & 1 & 1 & 1 & 1 & 5 & 3 & 5 & 5 \fixcline
|
||||
\cline{3-23}
|
||||
\addlinespace[0.4ex]
|
||||
\text{Step 2} & \multicolumn{3}{r}{\bullet} & \multicolumn{9}{r}{\bullet} & \multicolumn{4}{r}{\bullet} & \multicolumn{6}{r}{\circ} \\
|
||||
\addlinespace[0.4ex]
|
||||
\cline{3-23}
|
||||
\text{Step 3} & & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 1 & 1 & 1 & 1 & 5 & 5 & 5 & 5 & 5 & 5 \fixcline
|
||||
\cline{3-23}
|
||||
\addlinespace[0.5ex]
|
||||
\text{Step 4} & \multicolumn{1}{c}{} & \multicolumn{21}{c}{H_1^\prime, H_2^\prime, H_5^\prime}
|
||||
\end{array}$
|
@ -0,0 +1,39 @@
|
||||
\newcommand{\tikzunderarrowA}{
|
||||
\tikzset{external/export next=false}
|
||||
\begin{tikzpicture}
|
||||
\draw [->] (0, 0) -- ++(0, -0.3) -- node[midway, below] {\small $distance = 7$} ++(5.6, 0) -- ++(0, 0.3);
|
||||
\end{tikzpicture}
|
||||
}
|
||||
|
||||
\newcommand{\tikzunderarrowB}{
|
||||
\tikzset{external/export next=false}
|
||||
\begin{tikzpicture}
|
||||
\draw [->] (0, 0) -- ++(0, -0.3) -- ++(5.6, 0) -- ++(0, 0.3);
|
||||
\draw [->] (1.4, 0) -- ++(0, -0.65) -- node[midway, below] {\small $distance = 7$} ++(6.3, 0) -- ++(0, 0.65);
|
||||
\end{tikzpicture}
|
||||
}
|
||||
|
||||
\begin{enumerate} \nosep
|
||||
\item $insert\ length = 7,\ copy\ length = 5,\ distance = 7$
|
||||
\\[5pt]
|
||||
$\begin{array}{|*{13}{f{2ex}|}}
|
||||
\cline{1-7} \cline{9-13}
|
||||
w & o & r & d & s & , & \texttt{\textvisiblespace} & $\cdot$ & w & o & r & d & s \fixcline
|
||||
\cline{1-7} \cline{9-13}
|
||||
\end{array}$
|
||||
\\[1pt]
|
||||
\trimbox{-0.5ex 0.3ex 0 0}{\tikzunderarrowA}
|
||||
\end{enumerate}
|
||||
|
||||
\begin{enumerate} \nosep
|
||||
\item $insert\ length = 7,\ copy\ length = 2,\ distance = 7$
|
||||
\item $insert\ length = 0,\ copy\ length = 3,\ distance = 7$ (always the same distance)
|
||||
\\[5pt]
|
||||
$\begin{array}{|*{14}{f{2ex}|}l}
|
||||
\cline{1-7} \cline{9-10} \cline{12-14}
|
||||
w & o & r & d & s & , & \texttt{\textvisiblespace} & $\cdot$ & w & o & $\cdot$ & r & d & s \fixcline
|
||||
\cline{1-7} \cline{9-10} \cline{12-14}
|
||||
\end{array}$
|
||||
\\[1pt]
|
||||
\trimbox{-0.5ex 1.5ex 0 0}{\tikzunderarrowB}
|
||||
\end{enumerate}
|
@ -0,0 +1,46 @@
|
||||
\newcommand{\perc}[2]{\small #1\%\,/\,#2\%}
|
||||
\newcommand{\p}{\phantom{0}}
|
||||
|
||||
\begin{tabular}{r|c|c|c|c|c|c}
|
||||
Q
|
||||
&
|
||||
$\begin{aligned}
|
||||
\text{\small MTF }&\text{\small = No} \\[-5pt]
|
||||
\text{\small RLE }&\text{\small = No}
|
||||
\end{aligned}$
|
||||
&
|
||||
$\begin{aligned}
|
||||
\text{\small MTF }&\text{\small = No} \\[-5pt]
|
||||
\text{\small RLE }&\text{\small = Full}
|
||||
\end{aligned}$
|
||||
&
|
||||
$\begin{aligned}
|
||||
\text{\small MTF }&\text{\small = No} \\[-5pt]
|
||||
\text{\small RLE }&\text{\small = Split}
|
||||
\end{aligned}$
|
||||
&
|
||||
$\begin{aligned}
|
||||
\text{\small MTF }&\text{\small = Yes} \\[-5pt]
|
||||
\text{\small RLE }&\text{\small = No}
|
||||
\end{aligned}$
|
||||
&
|
||||
$\begin{aligned}
|
||||
\text{\small MTF }&\text{\small = Yes} \\[-5pt]
|
||||
\text{\small RLE }&\text{\small = Full}
|
||||
\end{aligned}$
|
||||
&
|
||||
$\begin{aligned}
|
||||
\text{\small MTF }&\text{\small = Yes} \\[-5pt]
|
||||
\text{\small RLE }&\text{\small = Split}
|
||||
\end{aligned}$
|
||||
\\
|
||||
\hline
|
||||
4 & \perc{0.0}{18.8} & \perc{0.0}{0.0} & \perc{0.0}{\p0.0} & \perc{47.1}{19.6} & \perc{1.5}{1.4} & \perc{30.4}{\p2.2} \\
|
||||
5 & \perc{0.0}{19.4} & \perc{0.0}{0.0} & \perc{0.0}{\p0.0} & \perc{49.3}{20.9} & \perc{1.5}{0.0} & \perc{28.4}{\p1.5} \\
|
||||
6 & \perc{0.0}{22.1} & \perc{0.0}{0.0} & \perc{0.0}{\p0.0} & \perc{46.3}{25.0} & \perc{0.7}{1.5} & \perc{26.5}{\p4.4} \\
|
||||
7 & \perc{0.0}{21.2} & \perc{0.0}{0.0} & \perc{0.0}{\p0.0} & \perc{41.6}{21.9} & \perc{0.0}{0.7} & \perc{35.8}{\p1.5} \\
|
||||
8 & \perc{0.0}{21.0} & \perc{0.0}{0.0} & \perc{0.0}{\p0.0} & \perc{44.9}{21.7} & \perc{1.5}{1.4} & \perc{30.4}{\p2.2} \\
|
||||
9 & \perc{0.0}{19.9} & \perc{0.0}{0.0} & \perc{0.0}{\p0.0} & \perc{43.4}{22.1} & \perc{0.7}{0.7} & \perc{33.1}{\p3.0} \\
|
||||
10 & \perc{5.3}{62.9} & \perc{1.3}{2.0} & \perc{0.0}{61.6} & \perc{\p6.0}{63.6} & \perc{0.0}{9.9} & \perc{\p2.0}{62.3} \\
|
||||
11 & \perc{1.5}{48.5} & \perc{3.0}{3.8} & \perc{0.0}{43.2} & \perc{18.2}{62.1} & \perc{0.8}{5.3} & \perc{\p0.0}{58.3} \\
|
||||
\end{tabular}
|
@ -0,0 +1,46 @@
|
||||
\newcommand{\perc}[2]{\small #1\%\,/\,#2\%}
|
||||
\newcommand{\p}{\phantom{0}}
|
||||
|
||||
\begin{tabular}{r|c|c|c|c|c|c}
|
||||
Q
|
||||
&
|
||||
$\begin{aligned}
|
||||
\text{\small MTF }&\text{\small = No} \\[-5pt]
|
||||
\text{\small RLE }&\text{\small = No}
|
||||
\end{aligned}$
|
||||
&
|
||||
$\begin{aligned}
|
||||
\text{\small MTF }&\text{\small = No} \\[-5pt]
|
||||
\text{\small RLE }&\text{\small = Full}
|
||||
\end{aligned}$
|
||||
&
|
||||
$\begin{aligned}
|
||||
\text{\small MTF }&\text{\small = No} \\[-5pt]
|
||||
\text{\small RLE }&\text{\small = Split}
|
||||
\end{aligned}$
|
||||
&
|
||||
$\begin{aligned}
|
||||
\text{\small MTF }&\text{\small = Yes} \\[-5pt]
|
||||
\text{\small RLE }&\text{\small = No}
|
||||
\end{aligned}$
|
||||
&
|
||||
$\begin{aligned}
|
||||
\text{\small MTF }&\text{\small = Yes} \\[-5pt]
|
||||
\text{\small RLE }&\text{\small = Full}
|
||||
\end{aligned}$
|
||||
&
|
||||
$\begin{aligned}
|
||||
\text{\small MTF }&\text{\small = Yes} \\[-5pt]
|
||||
\text{\small RLE }&\text{\small = Split}
|
||||
\end{aligned}$
|
||||
\\
|
||||
\hline
|
||||
4 & \perc{0.0}{0.0} & \perc{0.0}{0.0} & \perc{0.0}{0.0} & \perc{\p0.0}{0.0} & \perc{18.4}{28.7} & \perc{52.9}{28.7} \\
|
||||
5 & \perc{0.0}{0.0} & \perc{0.0}{0.0} & \perc{0.0}{0.0} & \perc{25.9}{0.0} & \perc{13.6}{34.6} & \perc{25.9}{34.6} \\
|
||||
6 & \perc{0.0}{0.0} & \perc{0.0}{0.0} & \perc{0.0}{0.0} & \perc{26.3}{0.0} & \perc{12.5}{35.0} & \perc{26.3}{35.0} \\
|
||||
7 & \perc{0.0}{0.0} & \perc{0.0}{0.0} & \perc{0.0}{0.0} & \perc{26.3}{0.0} & \perc{11.3}{36.3} & \perc{26.3}{36.3} \\
|
||||
8 & \perc{0.0}{0.0} & \perc{0.0}{0.0} & \perc{0.0}{0.0} & \perc{26.3}{0.0} & \perc{11.3}{35.0} & \perc{27.5}{35.0} \\
|
||||
9 & \perc{0.0}{0.0} & \perc{0.0}{0.0} & \perc{0.0}{0.0} & \perc{26.9}{0.0} & \perc{14.1}{34.6} & \perc{24.4}{34.6} \\
|
||||
10 & \perc{0.0}{0.6} & \perc{2.9}{1.1} & \perc{1.1}{1.1} & \perc{69.1}{1.1} & \perc{18.9}{\p1.7} & \perc{\p4.0}{\p2.3} \\
|
||||
11 & \perc{0.6}{3.5} & \perc{1.7}{2.9} & \perc{0.0}{2.9} & \perc{64.4}{4.0} & \perc{19.6}{\p1.7} & \perc{\p5.2}{\p2.3} \\
|
||||
\end{tabular}
|
@ -0,0 +1,96 @@
|
||||
\begin{minipage}[t]{0.38\textwidth}
|
||||
\vspace{0pt}
|
||||
\centering
|
||||
|
||||
$\begin{aligned}
|
||||
insert\ length &= 2 \\
|
||||
copy\ length &= 4 \\
|
||||
distance &= 2
|
||||
\end{aligned}$
|
||||
|
||||
\medskip
|
||||
$\begin{aligned}
|
||||
L_1 &= a \\
|
||||
L_2 &= b
|
||||
\end{aligned}$
|
||||
\end{minipage}%
|
||||
\begin{minipage}[t]{0.5\textwidth}
|
||||
\vspace{0pt}
|
||||
|
||||
\newcommand{\tikzunderarrow}{
|
||||
\tikzset{external/export next=false}
|
||||
\begin{tikzpicture}
|
||||
\draw [->] (0, 0) to [out=325, in=215] (1.3, 0);
|
||||
\end{tikzpicture}
|
||||
}
|
||||
|
||||
\newcommand{\tikzunderarrowhidden}{
|
||||
\tikzset{external/export next=false}
|
||||
\begin{tikzpicture}
|
||||
\draw [->, draw=none] (0, 0) to [out=325, in=215] (1.3, 0);
|
||||
\end{tikzpicture}
|
||||
}
|
||||
|
||||
\begin{enumerate} \nosep
|
||||
% \item
|
||||
% $\begin{array}{|*{6}{f{2ex}|}}
|
||||
% \hline
|
||||
% & & & & & \\
|
||||
% \hline
|
||||
% \end{array}$
|
||||
% \\[-1.5pt]
|
||||
% \trimbox{-1.3ex 0.3ex 0 0}{\tikzunderarrowhidden}
|
||||
|
||||
\item
|
||||
$\begin{array}{|*{6}{f{2ex}|}}
|
||||
\hline
|
||||
a & b & & & & \\
|
||||
\hline
|
||||
\end{array}$
|
||||
\\[-1.5pt]
|
||||
\trimbox{-1.3ex 0.3ex 0 0}{\tikzunderarrowhidden}
|
||||
|
||||
\item
|
||||
$\begin{array}{|*{6}{f{2ex}|}}
|
||||
\hline
|
||||
a & b & & & & \\
|
||||
\hline
|
||||
\end{array}$
|
||||
\\[-1.5pt]
|
||||
\trimbox{-1.3ex 0.3ex 0 0}{\tikzunderarrow}
|
||||
|
||||
\item
|
||||
$\begin{array}{|*{6}{f{2ex}|}}
|
||||
\hline
|
||||
a & b & a & & & \\
|
||||
\hline
|
||||
\end{array}$
|
||||
\\[-1.5pt]
|
||||
\trimbox{-5.5ex 0.3ex 0 0}{\tikzunderarrow}
|
||||
|
||||
\item
|
||||
$\begin{array}{|*{6}{f{2ex}|}}
|
||||
\hline
|
||||
a & b & a & b & & \\
|
||||
\hline
|
||||
\end{array}$
|
||||
\\[-1.5pt]
|
||||
\trimbox{-9.8ex 0.3ex 0 0}{\tikzunderarrow}
|
||||
|
||||
\item
|
||||
$\begin{array}{|*{6}{f{2ex}|}}
|
||||
\hline
|
||||
a & b & a & b & a & \\
|
||||
\hline
|
||||
\end{array}$
|
||||
\\[-1.5pt]
|
||||
\trimbox{-14ex 0.3ex 0 0}{\tikzunderarrow}
|
||||
|
||||
\item
|
||||
$\begin{array}{|*{6}{f{2ex}|}}
|
||||
\hline
|
||||
a & b & a & b & a & b \\
|
||||
\hline
|
||||
\end{array}$
|
||||
\end{enumerate}
|
||||
\end{minipage}
|
35
Paper/Source/Figures/TikZ/benchmark-unmodified.tex
Normal file
35
Paper/Source/Figures/TikZ/benchmark-unmodified.tex
Normal file
@ -0,0 +1,35 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = \textwidth,
|
||||
height = 1.1*\axisdefaultheight,
|
||||
xbar,
|
||||
xmin = 0,
|
||||
xmax = 2600,
|
||||
xtick distance = 300,
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 1},
|
||||
nodes near coords,
|
||||
nodes near coords align = {horizontal},
|
||||
nodes near coords style = {/pgf/number format/.cd, fixed zerofill, precision = 1},
|
||||
xlabel = Compression Time (s),
|
||||
ylabel = Quality
|
||||
]
|
||||
\addplot coordinates {
|
||||
(7.26, 0)
|
||||
(8.28, 1)
|
||||
(14.16, 2)
|
||||
(15.23, 3)
|
||||
(31.01, 4)
|
||||
(46.94, 5)
|
||||
(65.97, 6)
|
||||
(105.56, 7)
|
||||
(169.08, 8)
|
||||
(263.59, 9)
|
||||
(1105.75, 10)
|
||||
(2305.51, 11)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
@ -0,0 +1,78 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.96\textwidth,
|
||||
height = 0.91*\axisdefaultheight,
|
||||
xbar stacked,
|
||||
xmin = 0,
|
||||
xmax = 84,
|
||||
xtick distance = 10,
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
ytick pos = left,
|
||||
extra y ticks = {4, 5, 6, 7, 8, 9, 10, 11},
|
||||
extra y tick labels = {$+1.4$, $+1.3$, $+1.3$, $+1.3$, $+1.4$, $+1.4$, $+5.4$, $+3.5$},
|
||||
extra y tick style = {ticklabel pos = right},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.8},
|
||||
nodes near coords,
|
||||
nodes near coords align = {horizontal},
|
||||
nodes near coords style = {xshift = 2pt, /pgf/number format/.cd, fixed zerofill, precision = 1},
|
||||
legend columns = -1,
|
||||
legend style = {
|
||||
at = {(0.5, 1.05)},
|
||||
anchor = south,
|
||||
column sep = 0.05cm,
|
||||
/tikz/every even column/.append style = {
|
||||
column sep = 0.3cm
|
||||
}
|
||||
},
|
||||
legend image code/.code = {
|
||||
\draw[#1] (0cm, -0.075cm) rectangle (0.2cm, 0.135cm);
|
||||
},
|
||||
xlabel = Total Compressed Size (MiB),
|
||||
ylabel = Quality,
|
||||
ylabel style = {yshift = -width(+0.0)}
|
||||
]
|
||||
\addplot[blue, fill = blue!30!white] coordinates {
|
||||
(76.42, 4)
|
||||
(71.05, 5)
|
||||
(69.56, 6)
|
||||
(68.39, 7)
|
||||
(67.53, 8)
|
||||
(66.81, 9)
|
||||
(60.60, 10)
|
||||
(59.04, 11)
|
||||
};
|
||||
\addplot[red, fill = red!30!white, point meta = x, every node near coord/.append style = {/tikz/.cd, xshift = 1.5pt}] coordinates {
|
||||
(1.4129, 4)
|
||||
(1.3275, 5)
|
||||
(1.3100, 6)
|
||||
(1.3136, 7)
|
||||
(1.3404, 8)
|
||||
(1.3620, 9)
|
||||
(0, 10)
|
||||
(0, 11)
|
||||
};
|
||||
\addplot[red, fill = red!30!white, point meta = x, every node near coord/.append style = {/tikz/.cd, xshift = 11pt}] coordinates {
|
||||
(0, 4)
|
||||
(0, 5)
|
||||
(0, 6)
|
||||
(0, 7)
|
||||
(0, 8)
|
||||
(0, 9)
|
||||
(5.3895, 10)
|
||||
(0, 11)
|
||||
};
|
||||
\addplot[red, fill = red!30!white, point meta = x, every node near coord/.append style = {/tikz/.cd, xshift = 6pt}] coordinates {
|
||||
(0, 4)
|
||||
(0, 5)
|
||||
(0, 6)
|
||||
(0, 7)
|
||||
(0, 8)
|
||||
(0, 9)
|
||||
(0, 10)
|
||||
(3.4190, 11)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
78
Paper/Source/Figures/TikZ/disabled-context-model.tex
Normal file
78
Paper/Source/Figures/TikZ/disabled-context-model.tex
Normal file
@ -0,0 +1,78 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.96\textwidth,
|
||||
height = 0.83*\axisdefaultheight,
|
||||
xbar stacked,
|
||||
xmin = 0,
|
||||
xmax = 84,
|
||||
xtick distance = 10,
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
ytick pos = left,
|
||||
extra y ticks = {5, 6, 7, 8, 9, 10, 11},
|
||||
extra y tick labels = {$+0.2$, $+0.2$, $+0.2$, $+0.2$, $+0.2$, $+2.7$, $+1.5$},
|
||||
extra y tick style = {ticklabel pos = right},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.8},
|
||||
nodes near coords,
|
||||
nodes near coords align = {horizontal},
|
||||
nodes near coords style = {xshift = 2pt, /pgf/number format/.cd, fixed zerofill, precision = 1},
|
||||
legend columns = -1,
|
||||
legend style = {
|
||||
at = {(0.5, 1.055)},
|
||||
anchor = south,
|
||||
column sep = 0.05cm,
|
||||
/tikz/every even column/.append style = {
|
||||
column sep = 0.3cm
|
||||
}
|
||||
},
|
||||
legend image code/.code = {
|
||||
\draw[#1] (0cm, -0.075cm) rectangle (0.2cm, 0.135cm);
|
||||
},
|
||||
xlabel = Total Compressed Size (MiB),
|
||||
ylabel = Quality,
|
||||
ylabel style = {yshift = -width(+0.0)}
|
||||
]
|
||||
\legend{
|
||||
Original,
|
||||
Regressed
|
||||
}
|
||||
\addplot[blue, fill = blue!30!white] coordinates {
|
||||
(71.05, 5)
|
||||
(69.56, 6)
|
||||
(68.39, 7)
|
||||
(67.53, 8)
|
||||
(66.81, 9)
|
||||
(60.60, 10)
|
||||
(59.04, 11)
|
||||
};
|
||||
\addplot[red, fill = red!30!white, point meta = x] coordinates {
|
||||
(0.2440, 5)
|
||||
(0.2147, 6)
|
||||
(0.1967, 7)
|
||||
(0.1812, 8)
|
||||
(0.1720, 9)
|
||||
(0, 10)
|
||||
(0, 11)
|
||||
};
|
||||
\addplot[red, fill = red!30!white, point meta = x, every node near coord/.append style = {/tikz/.cd, xshift = 5.5pt}] coordinates {
|
||||
(0, 5)
|
||||
(0, 6)
|
||||
(0, 7)
|
||||
(0, 8)
|
||||
(0, 9)
|
||||
(2.6912, 10)
|
||||
(0, 11)
|
||||
};
|
||||
\addplot[red, fill = red!30!white, point meta = x, every node near coord/.append style = {/tikz/.cd, xshift = 2.5pt}] coordinates {
|
||||
(0, 5)
|
||||
(0, 6)
|
||||
(0, 7)
|
||||
(0, 8)
|
||||
(0, 9)
|
||||
(0, 10)
|
||||
(1.4247, 11)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
66
Paper/Source/Figures/TikZ/disabled-dictionary-websites.tex
Normal file
66
Paper/Source/Figures/TikZ/disabled-dictionary-websites.tex
Normal file
@ -0,0 +1,66 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.925\textwidth,
|
||||
height = 0.96*\axisdefaultheight,
|
||||
xbar stacked,
|
||||
xmin = 0,
|
||||
xmax = 6,
|
||||
xtick distance = 1,
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
ytick pos = left,
|
||||
yticklabels = {2, 4, 5, 6, 7, 8, 9, 10, 11},
|
||||
extra y ticks = {0, 1, 2, 3, 4, 5, 6, 7, 8},
|
||||
extra y tick labels = {$+0.0004$, $+0.021$, $+0.036$, $+0.036$, $+0.036$, $+0.036$, $+0.034$, $+0.068$, $+0.080$},
|
||||
extra y tick style = {ticklabel pos = right},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.8},
|
||||
nodes near coords,
|
||||
nodes near coords align = {horizontal},
|
||||
nodes near coords style = {/pgf/number format/.cd, fixed zerofill, precision = 2},
|
||||
legend columns = -1,
|
||||
legend style = {
|
||||
at = {(0.5, 1.045)},
|
||||
anchor = south,
|
||||
column sep = 0.05cm,
|
||||
/tikz/every even column/.append style = {
|
||||
column sep = 0.3cm
|
||||
}
|
||||
},
|
||||
legend image code/.code = {
|
||||
\draw[#1] (0cm, -0.075cm) rectangle (0.2cm, 0.135cm);
|
||||
},
|
||||
xlabel = Total Compressed Size (MiB),
|
||||
ylabel = Quality,
|
||||
ylabel style = {yshift = -width(+0.0000)}
|
||||
]
|
||||
\legend{
|
||||
Original,
|
||||
Regressed,
|
||||
Improved
|
||||
}
|
||||
\addplot[blue, fill = blue!30!white] coordinates {
|
||||
(5.60, 0)
|
||||
(5.29, 1)
|
||||
(4.93, 2)
|
||||
(4.87, 3)
|
||||
(4.83, 4)
|
||||
(4.80, 5)
|
||||
(4.78, 6)
|
||||
(4.48, 7)
|
||||
(4.42, 8)
|
||||
};
|
||||
\addplot[red, fill = red!30!white, point meta = x] coordinates {
|
||||
(0.0004, 0)
|
||||
(0.0210, 1)
|
||||
(0.0356, 2)
|
||||
(0.0355, 3)
|
||||
(0.0357, 4)
|
||||
(0.0355, 5)
|
||||
(0.0344, 6)
|
||||
(0.0678, 7)
|
||||
(0.0801, 8)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
72
Paper/Source/Figures/TikZ/disabled-dictionary.tex
Normal file
72
Paper/Source/Figures/TikZ/disabled-dictionary.tex
Normal file
@ -0,0 +1,72 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.925\textwidth,
|
||||
height = 0.96*\axisdefaultheight,
|
||||
xbar stacked,
|
||||
xmin = 0,
|
||||
xmax = 90,
|
||||
xtick distance = 10,
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
ytick pos = left,
|
||||
yticklabels = {2, 4, 5, 6, 7, 8, 9, 10, 11},
|
||||
extra y ticks = {0, 1, 2, 3, 4, 5, 6, 7, 8},
|
||||
extra y tick labels = {$-0.0014$, $+0.023$, $+0.043$, $+0.039$, $+0.042$, $+0.043$, $+0.038$, $+0.109$, $+0.124$},
|
||||
extra y tick style = {ticklabel pos = right},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.8},
|
||||
nodes near coords,
|
||||
nodes near coords align = {horizontal},
|
||||
nodes near coords style = {/pgf/number format/.cd, fixed zerofill, precision = 2},
|
||||
legend columns = -1,
|
||||
legend style = {
|
||||
at = {(0.5, 1.045)},
|
||||
anchor = south,
|
||||
column sep = 0.05cm,
|
||||
/tikz/every even column/.append style = {
|
||||
column sep = 0.3cm
|
||||
}
|
||||
},
|
||||
legend image code/.code = {
|
||||
\draw[#1] (0cm, -0.075cm) rectangle (0.2cm, 0.135cm);
|
||||
},
|
||||
xlabel = Total Compressed Size (MiB),
|
||||
ylabel = Quality,
|
||||
ylabel style = {yshift = -width(+0.0000)}
|
||||
]
|
||||
\legend{
|
||||
Original,
|
||||
Regressed,
|
||||
Improved
|
||||
}
|
||||
\addplot[blue, fill = blue!30!white] coordinates {
|
||||
(0, 0)
|
||||
(76.42, 1)
|
||||
(71.05, 2)
|
||||
(69.56, 3)
|
||||
(68.39, 4)
|
||||
(67.53, 5)
|
||||
(66.81, 6)
|
||||
(60.60, 7)
|
||||
(59.04, 8)
|
||||
};
|
||||
\addplot[red, fill = red!30!white, point meta = x] coordinates {
|
||||
(0, 0)
|
||||
(0.0230, 1)
|
||||
(0.0427, 2)
|
||||
(0.0394, 3)
|
||||
(0.0424, 4)
|
||||
(0.0429, 5)
|
||||
(0.0378, 6)
|
||||
(0.1093, 7)
|
||||
(0.1242, 8)
|
||||
};
|
||||
\addplot[green!35!black, fill = green!55!white] coordinates {
|
||||
(81.9786, 0)
|
||||
};
|
||||
\addplot[blue, fill = blue!30!white, point meta = x] coordinates {
|
||||
(0.0014, 0)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
50
Paper/Source/Figures/TikZ/disabled-distance-parameters.tex
Normal file
50
Paper/Source/Figures/TikZ/disabled-distance-parameters.tex
Normal file
@ -0,0 +1,50 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.96\textwidth,
|
||||
height = 0.435*\axisdefaultheight,
|
||||
xbar stacked,
|
||||
xmin = 0,
|
||||
xmax = 70,
|
||||
xtick distance = 10,
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
ytick pos = left,
|
||||
extra y ticks = {10, 11},
|
||||
extra y tick labels = {$+0.6$, $+0.7$},
|
||||
extra y tick style = {ticklabel pos = right},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.8},
|
||||
nodes near coords,
|
||||
nodes near coords align = {horizontal},
|
||||
nodes near coords style = {xshift = 1pt, /pgf/number format/.cd, fixed zerofill, precision = 1},
|
||||
legend columns = -1,
|
||||
legend style = {
|
||||
at = {(0.5, 1.14)},
|
||||
anchor = south,
|
||||
column sep = 0.05cm,
|
||||
/tikz/every even column/.append style = {
|
||||
column sep = 0.3cm
|
||||
}
|
||||
},
|
||||
legend image code/.code = {
|
||||
\draw[#1] (0cm, -0.075cm) rectangle (0.2cm, 0.135cm);
|
||||
},
|
||||
xlabel = Total Compressed Size (MiB),
|
||||
ylabel = Quality,
|
||||
ylabel style = {yshift = -width(+0.0)}
|
||||
]
|
||||
\legend{
|
||||
Original,
|
||||
Regressed
|
||||
}
|
||||
\addplot[blue, fill = blue!30!white] coordinates {
|
||||
(60.60, 10)
|
||||
(59.04, 11)
|
||||
};
|
||||
\addplot[red, fill = red!30!white, point meta = x] coordinates {
|
||||
(0.55, 10)
|
||||
(0.70, 11)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
@ -0,0 +1,62 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.925\textwidth,
|
||||
height = 0.91*\axisdefaultheight,
|
||||
xbar stacked,
|
||||
xmin = 0,
|
||||
xmax = 85,
|
||||
xtick distance = 10,
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
ytick pos = left,
|
||||
extra y ticks = {4, 5, 6, 7, 8, 9, 10, 11},
|
||||
extra y tick labels = {$+0.063$, $+0.034$, $+0.034$, $+0.034$, $+0.034$, $+0.032$, $+0.017$, $+0.012$},
|
||||
extra y tick style = {ticklabel pos = right},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.8},
|
||||
nodes near coords,
|
||||
nodes near coords align = {horizontal},
|
||||
nodes near coords style = {xshift = 2pt, /pgf/number format/.cd, fixed zerofill, precision = 2},
|
||||
legend columns = -1,
|
||||
legend style = {
|
||||
at = {(0.5, 1.05)},
|
||||
anchor = south,
|
||||
column sep = 0.05cm,
|
||||
/tikz/every even column/.append style = {
|
||||
column sep = 0.3cm
|
||||
}
|
||||
},
|
||||
legend image code/.code = {
|
||||
\draw[#1] (0cm, -0.075cm) rectangle (0.2cm, 0.135cm);
|
||||
},
|
||||
xlabel = Total Compressed Size (MiB),
|
||||
ylabel = Quality,
|
||||
ylabel style = {yshift = -width(+0.000)}
|
||||
]
|
||||
\legend{
|
||||
Original,
|
||||
Regressed
|
||||
}
|
||||
\addplot[blue, fill = blue!30!white] coordinates {
|
||||
(76.42, 4)
|
||||
(71.05, 5)
|
||||
(69.56, 6)
|
||||
(68.39, 7)
|
||||
(67.53, 8)
|
||||
(66.81, 9)
|
||||
(60.60, 10)
|
||||
(59.04, 11)
|
||||
};
|
||||
\addplot[red, fill = red!30!white, point meta = x] coordinates {
|
||||
(0.0634, 4)
|
||||
(0.0339, 5)
|
||||
(0.0343, 6)
|
||||
(0.0341, 7)
|
||||
(0.0340, 8)
|
||||
(0.0322, 9)
|
||||
(0.0172, 10)
|
||||
(0.0115, 11)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
100
Paper/Source/Figures/TikZ/encode-transform-pipeline.tex
Normal file
100
Paper/Source/Figures/TikZ/encode-transform-pipeline.tex
Normal file
@ -0,0 +1,100 @@
|
||||
\begin{tikzpicture}[edge from parent/.style = { draw, -latex }, node distance = 1.05cm]
|
||||
\let\sub\textsubscript
|
||||
|
||||
\tikzstyle{defheight} = [minimum height = 0.75cm]
|
||||
\tikzstyle{defsize} = [minimum width = 1.5cm, defheight, text centered]
|
||||
\tikzstyle{txt} = [draw, rectangle, defheight]
|
||||
\tikzstyle{mb} = [draw, rectangle, defsize, text centered]
|
||||
\tikzstyle{mf} = [mb, minimum width = 0.75cm]
|
||||
\tikzstyle{dt} = [defsize, text centered]
|
||||
|
||||
\node (enc) [txt] { \textbf{\,Encoder\,} };
|
||||
|
||||
\node (encbelow1) [defheight, below = 0.6cm of enc] {};
|
||||
\node (encbelow2) [defheight, below = of encbelow1] {};
|
||||
\node (encbelow3) [defheight, below = of encbelow2] {};
|
||||
\node (encbelow1t) [defheight, below = 0cm of encbelow1, yshift = 0.15cm] {};
|
||||
\node (encbelow2t) [defheight, below = 0cm of encbelow2, yshift = 0.15cm] {};
|
||||
\node (encbelow3t) [defheight, below = 0cm of encbelow3, yshift = 0.15cm] {};
|
||||
|
||||
\node (mb1) [mb, right = of encbelow1] { MB\sub{O\sub{1}} };
|
||||
\node (mb1t1) [mb, right = of mb1] { MB\sub{T\sub{1,1}} };
|
||||
\node (mb1t2) [mb, right = of mb1t1] { MB\sub{T\sub{1,2}} };
|
||||
\node (mb1tX) [dt, right = 0.33cm of mb1t2] { $\dots$ };
|
||||
\node (mb1tM) [mb, right = 0.26cm of mb1tX] { MB\sub{T\sub{1,m}} };
|
||||
\node (mb1F) [mf, right = 1.85cm of mb1tM] { MB };
|
||||
|
||||
\node (mb2) [mb, right = of encbelow2] { MB\sub{O\sub{2}} };
|
||||
\node (mb2t1) [mb, right = of mb2] { MB\sub{T\sub{2,1}} };
|
||||
\node (mb2t2) [mb, right = of mb2t1] { MB\sub{T\sub{2,2}} };
|
||||
\node (mb2tX) [dt, right = 0.33cm of mb2t2] { $\dots$ };
|
||||
\node (mb2tM) [mb, right = 0.26cm of mb2tX] { MB\sub{T\sub{2,m}} };
|
||||
\node (mb2F) [mf, right = 1.85cm of mb2tM] { MB };
|
||||
|
||||
\node (mb3) [mb, right = of encbelow3] { MB\sub{O\sub{3}} };
|
||||
\node (mb3t1) [mb, right = of mb3] { MB\sub{T\sub{3,1}} };
|
||||
\node (mb3t2) [mb, right = of mb3t1] { MB\sub{T\sub{3,2}} };
|
||||
\node (mb3tX) [dt, right = 0.33cm of mb3t2] { $\dots$ };
|
||||
\node (mb3tM) [mb, right = 0.26cm of mb3tX] { MB\sub{T\sub{3,m}} };
|
||||
\node (mb3F) [mf, right = 1.85cm of mb3tM] { MB };
|
||||
|
||||
\node (mbX) [dt, below = 0.4cm of mb3] { $\vdots$ };
|
||||
\node (mbXtX) [dt, below = 0.4cm of mb3tX] { $\ddots$ };
|
||||
\node (mbXtM) [dt, below = 0.4cm of mb3tM] { $\vdots$ };
|
||||
\node (mbXF) [dt, below = 0.3cm of mb3F] { $\vdots$ };
|
||||
|
||||
\node (mbN) [mb, below = 0.3cm of mbX] { MB\sub{O\sub{n}} };
|
||||
\node (mbNt1) [mb, right = of mbN] { MB\sub{T\sub{n,1}} };
|
||||
\node (mbNt2) [mb, right = of mbNt1] { MB\sub{T\sub{n,2}} };
|
||||
\node (mbNtX) [dt, right = 0.33cm of mbNt2] { $\dots$ };
|
||||
\node (mbNtM) [mb, right = 0.26cm of mbNtX] { MB\sub{T\sub{n,m}} };
|
||||
\node (mbNF) [mf, right = 1.85cm of mbNtM] { MB };
|
||||
|
||||
\node (t1) [defsize, above = 0.3cm of mb1t1] { T\sub{1} };
|
||||
\node (t2) [defsize, above = 0.3cm of mb1t2] { T\sub{2} };
|
||||
\node (tM) [defsize, above = 0.3cm of mb1tM] { T\sub{m} };
|
||||
|
||||
\node (bfs) [txt, draw = none, above = 0.6cm of mb1F] { \textbf{\,Structure\,} };
|
||||
\node (bfsunder) [below = 0.05cm of mbNF] {};
|
||||
\draw [thick] (bfs.north west) -- (bfs.north east);
|
||||
\draw [thick] (bfs.south west) -- (bfs.south east);
|
||||
\node [draw, thick, inner sep = 0cm, fit = (bfs) (bfsunder)] {};
|
||||
|
||||
\node [draw, inner sep = 0.3cm, fit = (t1) (mbNt1)] {};
|
||||
\node [draw, inner sep = 0.3cm, fit = (t2) (mbNt2)] {};
|
||||
\node [draw, inner sep = 0.3cm, fit = (tM) (mbNtM)] {};
|
||||
|
||||
\draw [->] (enc) |- (mb1);
|
||||
\draw [->] (mb1) -- (mb1t1);
|
||||
\draw [->] (mb1t1) -- (mb1t2);
|
||||
\draw [<-] (mb1tX.center) + (-0.45cm, 0) -- (mb1t2);
|
||||
\draw [->] (mb1tX.center) + ( 0.35cm, 0) -- (mb1tM);
|
||||
|
||||
\draw [->] (enc) |- (mb2);
|
||||
\draw [->] (mb2) -- (mb2t1);
|
||||
\draw [->] (mb2t1) -- (mb2t2);
|
||||
\draw [<-] (mb2tX.center) + (-0.45cm, 0) -- (mb2t2);
|
||||
\draw [->] (mb2tX.center) + ( 0.35cm, 0) -- (mb2tM);
|
||||
|
||||
\draw [->] (enc) |- (mb3);
|
||||
\draw [->] (mb3) -- (mb3t1);
|
||||
\draw [->] (mb3t1) -- (mb3t2);
|
||||
\draw [<-] (mb3tX.center) + (-0.45cm, 0) -- (mb3t2);
|
||||
\draw [->] (mb3tX.center) + ( 0.35cm, 0) -- (mb3tM);
|
||||
|
||||
\draw [->] (enc) |- (mbN);
|
||||
\draw [->] (mbN) -- (mbNt1);
|
||||
\draw [->] (mbNt1) -- (mbNt2);
|
||||
\draw [<-] (mbNtX.center) + (-0.45cm, 0) -- (mbNt2);
|
||||
\draw [->] (mbNtX.center) + ( 0.35cm, 0) -- (mbNtM);
|
||||
|
||||
\draw [->, dashed] (mb1tM) node[anchor = north west, yshift = -0.55cm] {S\sub{T\sub{1}}} |- (encbelow1t.center);
|
||||
\draw [->, dashed] (mb2tM) node[anchor = north west, yshift = -0.55cm] {S\sub{T\sub{2}}} |- (encbelow2t.center);
|
||||
\draw [->, dashed] (mb3tM) node[anchor = north west, yshift = -0.55cm] {S\sub{T\sub{3}}} |- (encbelow3t.center);
|
||||
|
||||
\path [-] (mb1tM) edge (mb1F);
|
||||
\path [-] (mb2tM) edge (mb2F);
|
||||
\path [-] (mb3tM) edge (mb3F);
|
||||
\path [-] (mbNtM) edge (mbNF);
|
||||
|
||||
\end{tikzpicture}
|
28
Paper/Source/Figures/TikZ/force-lcm-base64-q10.tex
Normal file
28
Paper/Source/Figures/TikZ/force-lcm-base64-q10.tex
Normal file
@ -0,0 +1,28 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.95\textwidth,
|
||||
height = 0.62*\axisdefaultheight,
|
||||
xbar,
|
||||
xmin = 0,
|
||||
xmax = 80,
|
||||
xtick distance = 5,
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
yticklabels = {LSB6, MSB6, UTF8, Signed},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.9},
|
||||
nodes near coords,
|
||||
nodes near coords align = {horizontal},
|
||||
nodes near coords style = {/pgf/number format/.cd, fixed zerofill, precision = 1},
|
||||
xlabel = Total Compressed Size (MiB),
|
||||
ylabel = Mode
|
||||
]
|
||||
\addplot coordinates {
|
||||
(72.90, 0)
|
||||
(73.68, 1)
|
||||
(74.05, 2)
|
||||
(74.69, 3)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
28
Paper/Source/Figures/TikZ/force-lcm-base64-q11.tex
Normal file
28
Paper/Source/Figures/TikZ/force-lcm-base64-q11.tex
Normal file
@ -0,0 +1,28 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.95\textwidth,
|
||||
height = 0.62*\axisdefaultheight,
|
||||
xbar,
|
||||
xmin = 0,
|
||||
xmax = 80,
|
||||
xtick distance = 5,
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
yticklabels = {LSB6, MSB6, UTF8, Signed},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.9},
|
||||
nodes near coords,
|
||||
nodes near coords align = {horizontal},
|
||||
nodes near coords style = {/pgf/number format/.cd, fixed zerofill, precision = 1},
|
||||
xlabel = Total Compressed Size (MiB),
|
||||
ylabel = Mode
|
||||
]
|
||||
\addplot coordinates {
|
||||
(70.78, 0)
|
||||
(71.20, 1)
|
||||
(71.40, 2)
|
||||
(71.73, 3)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
19
Paper/Source/Figures/TikZ/huffman-tree-example.tex
Normal file
19
Paper/Source/Figures/TikZ/huffman-tree-example.tex
Normal file
@ -0,0 +1,19 @@
|
||||
\begin{tikzpicture}[edge from parent/.style = { draw, -latex }]
|
||||
\node [draw, circle] { \phantom{-} }
|
||||
child {
|
||||
node [draw, circle] { a }
|
||||
edge from parent node [above left] { 0 }
|
||||
}
|
||||
child {
|
||||
node [draw, circle] { \phantom{-} }
|
||||
child {
|
||||
node [draw, circle] { b }
|
||||
edge from parent node [above left] { 10 }
|
||||
}
|
||||
child {
|
||||
node [draw, circle] { c }
|
||||
edge from parent node [above right] { 11 }
|
||||
}
|
||||
edge from parent node [above right] { 1 }
|
||||
};
|
||||
\end{tikzpicture}
|
135
Paper/Source/Figures/TikZ/huffman-tree-simple-shapes.tex
Normal file
135
Paper/Source/Figures/TikZ/huffman-tree-simple-shapes.tex
Normal file
@ -0,0 +1,135 @@
|
||||
\begin{minipage}[t]{0.15\textwidth}
|
||||
\centering
|
||||
\vspace{0pt}
|
||||
|
||||
\caption*{(1)}
|
||||
|
||||
\tikzsetnextfilename{huffman-tree-simple-shapes-1}
|
||||
\begin{tikzpicture}[edge from parent/.style = { draw, -latex }]
|
||||
\node [draw, circle] { a };
|
||||
\end{tikzpicture}
|
||||
\end{minipage}
|
||||
\begin{minipage}[t]{0.25\textwidth}
|
||||
\centering
|
||||
\vspace{0pt}
|
||||
|
||||
\caption*{(2)}
|
||||
|
||||
\tikzsetnextfilename{huffman-tree-simple-shapes-2}
|
||||
\begin{tikzpicture}[edge from parent/.style = { draw, -latex }]
|
||||
\node [draw, circle] { \phantom{-} }
|
||||
child {
|
||||
node [draw, circle] { a }
|
||||
edge from parent node [above left] { 0 }
|
||||
}
|
||||
child {
|
||||
node [draw, circle] { b }
|
||||
edge from parent node [above right] { 1 }
|
||||
};
|
||||
\end{tikzpicture}
|
||||
\end{minipage}
|
||||
\begin{minipage}[t]{0.29\textwidth}
|
||||
\centering
|
||||
\vspace{0pt}
|
||||
|
||||
\caption*{(3)}
|
||||
|
||||
\tikzsetnextfilename{huffman-tree-simple-shapes-3}
|
||||
\begin{tikzpicture}[edge from parent/.style = { draw, -latex }]
|
||||
\node [draw, circle] { \phantom{-} }
|
||||
child {
|
||||
node [draw, circle] { a }
|
||||
edge from parent node [above left] { 0 }
|
||||
}
|
||||
child {
|
||||
node [draw, circle] { \phantom{-} }
|
||||
child {
|
||||
node [draw, circle] { b }
|
||||
edge from parent node [above left] { 10 }
|
||||
}
|
||||
child {
|
||||
node [draw, circle] { c }
|
||||
edge from parent node [above right] { 11 }
|
||||
}
|
||||
edge from parent node [above right] { 1 }
|
||||
};
|
||||
\end{tikzpicture}
|
||||
\end{minipage}
|
||||
|
||||
\bigskip
|
||||
\bigskip
|
||||
|
||||
\begin{minipage}[t]{0.38\textwidth}
|
||||
\centering
|
||||
\vspace{0pt}
|
||||
|
||||
\caption*{(4)}
|
||||
|
||||
\tikzsetnextfilename{huffman-tree-simple-shapes-4}
|
||||
\begin{tikzpicture}[
|
||||
edge from parent/.style = { draw, -latex },
|
||||
level 1/.style = { sibling distance = 2\tikzsiblingdistance },
|
||||
level 2/.style = { sibling distance = 0.5\tikzsiblingdistance }
|
||||
]
|
||||
\node [draw, circle] { \phantom{-} }
|
||||
child {
|
||||
node [draw, circle] { \phantom{-} }
|
||||
child {
|
||||
node [draw, circle] { a }
|
||||
edge from parent node [above left] { 00 }
|
||||
}
|
||||
child {
|
||||
node [draw, circle] { b }
|
||||
edge from parent node [above right] { 01 }
|
||||
}
|
||||
edge from parent node [above left] { 0 }
|
||||
}
|
||||
child {
|
||||
node [draw, circle] { \phantom{-} }
|
||||
child {
|
||||
node [draw, circle] { c }
|
||||
edge from parent node [above left] { 10 }
|
||||
}
|
||||
child {
|
||||
node [draw, circle] { d }
|
||||
edge from parent node [above right] { 11 }
|
||||
}
|
||||
edge from parent node [above right] { 1 }
|
||||
};
|
||||
\end{tikzpicture}
|
||||
\end{minipage}
|
||||
\begin{minipage}[t]{0.36\textwidth}
|
||||
\centering
|
||||
\vspace{0pt}
|
||||
|
||||
\caption*{(5)}
|
||||
|
||||
\tikzsetnextfilename{huffman-tree-simple-shapes-5}
|
||||
\begin{tikzpicture}[edge from parent/.style = { draw, -latex }]
|
||||
\node [draw, circle] { \phantom{-} }
|
||||
child {
|
||||
node [draw, circle] { a }
|
||||
edge from parent node [above left] { 0 }
|
||||
}
|
||||
child {
|
||||
node [draw, circle] { \phantom{-} }
|
||||
child {
|
||||
node [draw, circle] { b }
|
||||
edge from parent node [above left] { 10 }
|
||||
}
|
||||
child {
|
||||
node [draw, circle] { \phantom{-} }
|
||||
child {
|
||||
node [draw, circle] { c }
|
||||
edge from parent node [above left] { 110 }
|
||||
}
|
||||
child {
|
||||
node [draw, circle] { d }
|
||||
edge from parent node [above right] { 111 }
|
||||
}
|
||||
edge from parent node [above right] { 11 }
|
||||
}
|
||||
edge from parent node [above right] { 1 }
|
||||
};
|
||||
\end{tikzpicture}
|
||||
\end{minipage}
|
@ -0,0 +1,95 @@
|
||||
\caption*{(Pre-Merge Blocks)}
|
||||
|
||||
\begin{tabular}{|f{110pt}|c|f{40pt}|c|f{40pt}|c|f{70pt}|}
|
||||
\cline{1-1} \cline{3-3} \cline{5-5} \cline{7-7}
|
||||
$B_0$ & $\cdot$ & $B_1$ & $\cdot$ & $B_2$ & $\cdot$ & $B_3$ \fixcline
|
||||
\cline{1-1} \cline{3-3} \cline{5-5} \cline{7-7}
|
||||
\addlinespace
|
||||
\cline{1-1} \cline{3-3} \cline{5-5} \cline{7-7}
|
||||
\addlinespace[0.3ex]
|
||||
\multicolumn{1}{c}{$BT = 0$} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{1}{c}{$BT = 1$} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{1}{c}{$BT = 2$} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{1}{c}{$BT = 1$}
|
||||
\end{tabular}
|
||||
|
||||
\vspace{20pt}
|
||||
|
||||
\begin{minipage}[t]{0.45\textwidth}
|
||||
\centering
|
||||
\vspace{0pt}
|
||||
|
||||
\caption*{(Merge)}
|
||||
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
|
||||
$\begin{array}{|c|l}
|
||||
\cline{1-1}
|
||||
BT = 0 & \ \rightarrow \fixcline
|
||||
\cline{1-1}
|
||||
\addlinespace[0.44cm]
|
||||
\cline{1-1}
|
||||
BT = 1 & \ \rightarrow \fixcline
|
||||
\cline{1-1}
|
||||
\addlinespace[0.44cm]
|
||||
\cline{1-1}
|
||||
BT = 2 & \ \rightarrow \fixcline
|
||||
\cline{1-1}
|
||||
\end{array}$
|
||||
|
||||
\end{varwidth}%
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
|
||||
\tikzsetnextfilename{official-block-splitting-merge-example}
|
||||
\begin{tikzpicture}[edge from parent/.style = { draw, -latex }]
|
||||
|
||||
\node at (0, -0) (h1) { $H_0$ };
|
||||
\node at (0, -1) (h2) { $H_1$ };
|
||||
\node at (0, -2) (h3) { $H_2$ };
|
||||
|
||||
\node at (2, -0) (h1a) { $H_0$ };
|
||||
\node at (2, -1) (h23) { $H_{1,2}$ };
|
||||
|
||||
\draw (h1) -- (h1a);
|
||||
\draw (h2) -- (h23);
|
||||
\draw (h3) -- +(1, 0) |- (h23);
|
||||
|
||||
\end{tikzpicture}
|
||||
|
||||
\end{varwidth}
|
||||
\end{minipage}
|
||||
\begin{minipage}[t]{0.38\textwidth}
|
||||
\centering
|
||||
\vspace{0pt}
|
||||
|
||||
\caption*{(Reassign)}
|
||||
|
||||
$\begin{array}{lcl}
|
||||
B_0 \approx H_0 & \rightarrow\ & BT = 0 \\
|
||||
\addlinespace[0.085cm]
|
||||
B_1 \approx H_{1,2} & \rightarrow\ & BT = 1 \\
|
||||
\addlinespace[0.085cm]
|
||||
B_2 \approx H_{1,2} & \rightarrow\ & BT = 1 \\
|
||||
\addlinespace[0.085cm]
|
||||
B_3 \approx H_0 & \rightarrow\ & BT = 0 \\
|
||||
\end{array}$
|
||||
\end{minipage}
|
||||
|
||||
\vspace{22pt}
|
||||
|
||||
\caption*{(Post-Merge Blocks)}
|
||||
|
||||
\hspace{3.5pt}
|
||||
\begin{tabular}{|f{110pt}|c|f{107.5pt}|c|f{70pt}|}
|
||||
\cline{1-1} \cline{3-3} \cline{5-5}
|
||||
$B_0$ & $\cdot$ & $B_1 + B_2$ & $\cdot$ & $B_3$ \fixcline
|
||||
\cline{1-1} \cline{3-3} \cline{5-5}
|
||||
\addlinespace
|
||||
\cline{1-1} \cline{3-3} \cline{5-5}
|
||||
\addlinespace[0.3ex]
|
||||
\multicolumn{1}{c}{$BT = 0$} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{1}{c}{$BT = 1$} & \multicolumn{1}{c}{} &
|
||||
\multicolumn{1}{c}{$BT = 0$}
|
||||
\end{tabular}
|
@ -0,0 +1,83 @@
|
||||
\begin{minipage}[t]{0.45\textwidth}
|
||||
\centering
|
||||
\vspace{0pt}
|
||||
|
||||
\caption*{(Merge)}
|
||||
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
|
||||
$\begin{array}{|c|l}
|
||||
\cline{1-1}
|
||||
0 & \ \rightarrow \fixcline
|
||||
\cline{1-1}
|
||||
\addlinespace[0.185cm]
|
||||
\cline{1-1}
|
||||
1 & \ \rightarrow \fixcline
|
||||
\cline{1-1}
|
||||
\addlinespace[0.185cm]
|
||||
\cline{1-1}
|
||||
2 & \ \rightarrow \fixcline
|
||||
\cline{1-1}
|
||||
\addlinespace[0.185cm]
|
||||
\cline{1-1}
|
||||
3 & \ \rightarrow \fixcline
|
||||
\cline{1-1}
|
||||
\end{array}$
|
||||
|
||||
\end{varwidth}%
|
||||
\begin{varwidth}[t]{\textwidth}
|
||||
\vspace{0pt}
|
||||
|
||||
\tikzsetnextfilename{official-context-modeling-example}
|
||||
\begin{tikzpicture}[edge from parent/.style = { draw, -latex }]
|
||||
|
||||
\node at (0, -0.00) (h1) { $H_1$ };
|
||||
\node at (0, -0.75) (h2) { $H_2$ };
|
||||
\node at (0, -1.50) (h3) { $H_3$ };
|
||||
\node at (0, -2.25) (h4) { $H_4$ };
|
||||
|
||||
\node at (2, -0.00) (h13) { $H_{1,3}$ };
|
||||
\node at (2, -0.75) (h2a) { $H_2$ };
|
||||
\node at (2, -2.25) (h4a) { $H_4$ };
|
||||
|
||||
\node at (4, -0.00) (h134) { $H_{1,3,4}$ };
|
||||
\node at (4, -0.75) (h2aa) { $H_2$ };
|
||||
|
||||
\draw (h1) -- (h13);
|
||||
\draw (h2) -- +(0.875, 0) to [bend right = 270] +(1.125, 0) -- (h2a);
|
||||
\draw (h3) -- +(1, 0) |- (h13);
|
||||
\draw (h4) -- (h4a);
|
||||
|
||||
\draw (h13) -- (h134);
|
||||
\draw (h2a) -- +(0.875, 0) to [bend right = 270] +(1.125, 0) -- (h2aa);
|
||||
\draw (h4a) -- +(1, 0) |- (h134);
|
||||
|
||||
\end{tikzpicture}
|
||||
|
||||
\end{varwidth}
|
||||
\end{minipage}
|
||||
\begin{minipage}[t]{0.35\textwidth}
|
||||
\centering
|
||||
\vspace{0pt}
|
||||
|
||||
\caption*{(Reassign)}
|
||||
|
||||
$\begin{array}{lc|c|}
|
||||
\cline{3-3}
|
||||
H_1 \approx H_{1,3,4} & \rightarrow{\ } & 0 \fixcline
|
||||
\cline{3-3}
|
||||
\addlinespace[0.185cm]
|
||||
\cline{3-3}
|
||||
H_2 = H_2 & \rightarrow{\ } & 1 \fixcline
|
||||
\cline{3-3}
|
||||
\addlinespace[0.185cm]
|
||||
\cline{3-3}
|
||||
H_3 \approx H_2 & \rightarrow{\ } & 1 \fixcline
|
||||
\cline{3-3}
|
||||
\addlinespace[0.185cm]
|
||||
\cline{3-3}
|
||||
H_4 \approx H_{1,3,4} & \rightarrow{\ } & 0 \fixcline
|
||||
\cline{3-3}
|
||||
\end{array}$
|
||||
\end{minipage}
|
@ -0,0 +1,36 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.892\textwidth,
|
||||
height = 0.51*\axisdefaultheight,
|
||||
xbar,
|
||||
xmin = 99.9,
|
||||
xmax = 100.5,
|
||||
xtick distance = 0.1,
|
||||
xmajorgrids = true,
|
||||
xminorgrids = true,
|
||||
minor x tick num = 1,
|
||||
minor grid style = {dashed},
|
||||
y dir = reverse,
|
||||
ytick = {1, 2},
|
||||
yticklabels = {Prefer Code 1, Non-Special},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.5},
|
||||
xlabel = Ratio (\%)
|
||||
]
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0000,
|
||||
lower whisker = 99.9692,
|
||||
upper whisker = 100.0233,
|
||||
lower quartile = 99.9998,
|
||||
upper quartile = 100.0000,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0000,
|
||||
lower whisker = 99.9870,
|
||||
upper whisker = 100.4435,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.0074,
|
||||
}] coordinates {};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
@ -0,0 +1,42 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.967\textwidth,
|
||||
height = 0.6*\axisdefaultheight,
|
||||
xbar,
|
||||
xmin = 98,
|
||||
xmax = 122.75,
|
||||
xmajorgrids = true,
|
||||
xminorgrids = true,
|
||||
minor x tick num = 1,
|
||||
minor grid style = {dashed},
|
||||
y dir = reverse,
|
||||
ytick = {1, 2, 3},
|
||||
yticklabels = {Seen, Frequent, Non-Last},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.5},
|
||||
xlabel = Ratio (\%)
|
||||
]
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1211,
|
||||
lower whisker = 98.7069,
|
||||
upper whisker = 106.5226,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.4531,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1280,
|
||||
lower whisker = 98.7069,
|
||||
upper whisker = 106.8631,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.4834,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1316,
|
||||
lower whisker = 98.4694,
|
||||
upper whisker = 122.4647,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.5757,
|
||||
}] coordinates {};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
@ -0,0 +1,86 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.975\textwidth,
|
||||
height = 0.96*\axisdefaultheight,
|
||||
xbar,
|
||||
xmin = 99.5,
|
||||
xmax = 105.64,
|
||||
xtick = {99.5, 100, 100.5, 101, 101.5, 102, 102.5, 103, 103.5, 104, 104.5, 105, 105.5},
|
||||
y dir = reverse,
|
||||
ytick = {1, 2, 3, 4, 5, 6, 7, 8, 9},
|
||||
yticklabels = {3, 4, 5, 6, 7, 8, 9, 10, 11},
|
||||
xmajorgrids = true,
|
||||
xminorgrids = true,
|
||||
minor x tick num = 1,
|
||||
minor grid style = {dashed},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.64},
|
||||
xlabel = Ratio (\%),
|
||||
ylabel = Quality
|
||||
]
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0103,
|
||||
lower whisker = 99.9298,
|
||||
upper whisker = 102.1739,
|
||||
lower quartile = 100.0040,
|
||||
upper quartile = 100.0496,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1270,
|
||||
lower whisker = 99.9824,
|
||||
upper whisker = 103.9216,
|
||||
lower quartile = 100.0559,
|
||||
upper quartile = 100.4008,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1420,
|
||||
lower whisker = 99.9635,
|
||||
upper whisker = 104.8951,
|
||||
lower quartile = 100.0556,
|
||||
upper quartile = 100.4711,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1576,
|
||||
lower whisker = 99.9774,
|
||||
upper whisker = 104.8951,
|
||||
lower quartile = 100.0628,
|
||||
upper quartile = 100.4864,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1727,
|
||||
lower whisker = 99.9829,
|
||||
upper whisker = 104.8951,
|
||||
lower quartile = 100.0649,
|
||||
upper quartile = 100.4364,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1754,
|
||||
lower whisker = 99.9874,
|
||||
upper whisker = 104.8951,
|
||||
lower quartile = 100.0666,
|
||||
upper quartile = 100.4476,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1571,
|
||||
lower whisker = 99.9867,
|
||||
upper whisker = 104.8951,
|
||||
lower quartile = 100.0663,
|
||||
upper quartile = 100.4608,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.2262,
|
||||
lower whisker = 99.9944,
|
||||
upper whisker = 105.5556,
|
||||
lower quartile = 100.0804,
|
||||
upper quartile = 100.6567,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1615,
|
||||
lower whisker = 99.9768,
|
||||
upper whisker = 104.1801,
|
||||
lower quartile = 100.0553,
|
||||
upper quartile = 100.4198,
|
||||
}] coordinates {};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
108
Paper/Source/Figures/TikZ/rebuild-overall-comparison.tex
Normal file
108
Paper/Source/Figures/TikZ/rebuild-overall-comparison.tex
Normal file
@ -0,0 +1,108 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.98\textwidth,
|
||||
height = 1.2*\axisdefaultheight,
|
||||
xbar,
|
||||
xmin = 74,
|
||||
xmax = 106,
|
||||
xtick distance = 2,
|
||||
xmajorgrids = true,
|
||||
y dir = reverse,
|
||||
ytick = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
|
||||
yticklabels = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11},
|
||||
xmajorgrids = true,
|
||||
xminorgrids = true,
|
||||
minor x tick num = 1,
|
||||
minor grid style = {dashed},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.8},
|
||||
xlabel = Ratio (\%),
|
||||
ylabel = Quality
|
||||
]
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 96.9074,
|
||||
lower whisker = 75.1021,
|
||||
upper whisker = 100.0000,
|
||||
lower quartile = 96.0119,
|
||||
upper quartile = 97.4844,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 99.8591,
|
||||
lower whisker = 95.5679,
|
||||
upper whisker = 100.0708,
|
||||
lower quartile = 99.7010,
|
||||
upper quartile = 99.9202,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 99.6665,
|
||||
lower whisker = 82.8283,
|
||||
upper whisker = 100.0000,
|
||||
lower quartile = 99.0420,
|
||||
upper quartile = 99.7874,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0103,
|
||||
lower whisker = 99.9298,
|
||||
upper whisker = 102.1739,
|
||||
lower quartile = 100.0040,
|
||||
upper quartile = 100.0496,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1270,
|
||||
lower whisker = 99.9824,
|
||||
upper whisker = 103.9216,
|
||||
lower quartile = 100.0559,
|
||||
upper quartile = 100.4008,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1420,
|
||||
lower whisker = 99.9635,
|
||||
upper whisker = 104.8951,
|
||||
lower quartile = 100.0556,
|
||||
upper quartile = 100.4711,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1576,
|
||||
lower whisker = 99.9774,
|
||||
upper whisker = 104.8951,
|
||||
lower quartile = 100.0628,
|
||||
upper quartile = 100.4864,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1727,
|
||||
lower whisker = 99.9829,
|
||||
upper whisker = 104.8951,
|
||||
lower quartile = 100.0649,
|
||||
upper quartile = 100.4364,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1754,
|
||||
lower whisker = 99.9874,
|
||||
upper whisker = 104.8951,
|
||||
lower quartile = 100.0666,
|
||||
upper quartile = 100.4476,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1571,
|
||||
lower whisker = 99.9867,
|
||||
upper whisker = 104.8951,
|
||||
lower quartile = 100.0663,
|
||||
upper quartile = 100.4608,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.2262,
|
||||
lower whisker = 99.9944,
|
||||
upper whisker = 105.5556,
|
||||
lower quartile = 100.0804,
|
||||
upper quartile = 100.6567,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.1615,
|
||||
lower whisker = 99.9768,
|
||||
upper whisker = 104.1801,
|
||||
lower quartile = 100.0553,
|
||||
upper quartile = 100.4198,
|
||||
}] coordinates {};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
@ -0,0 +1,30 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.95\textwidth,
|
||||
height = 0.8*\axisdefaultheight,
|
||||
xbar,
|
||||
xmax = 4650,
|
||||
xtick = {0, 1000, 2000, 3000, 4000},
|
||||
xticklabels = {$0$K, $1$K, $2$K, $3$K, $4$K},
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 1},
|
||||
nodes near coords,
|
||||
nodes near coords align = {horizontal},
|
||||
xlabel = Bits Saved,
|
||||
ylabel = Quality
|
||||
]
|
||||
\addplot coordinates {
|
||||
(85, 4)
|
||||
(50, 5)
|
||||
(39, 6)
|
||||
(30, 7)
|
||||
(31, 8)
|
||||
(36, 9)
|
||||
(4035, 10)
|
||||
(4201, 11)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
@ -0,0 +1,97 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.985\textwidth,
|
||||
height = 2.05*\axisdefaultheight,
|
||||
xbar,
|
||||
xmin = 0,
|
||||
xmax = 106000,
|
||||
xtick = {0, 10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000, 90000, 100000},
|
||||
xticklabels = {0, 10K, 20K, 30K, 40K, 50K, 60K, 70K, 80K, 90K, 100K},
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
bar width = 4.75pt,
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.65},
|
||||
legend reversed,
|
||||
legend cell align = {left},
|
||||
legend style = {
|
||||
at = {(0.98, 0.02)},
|
||||
anchor = south east
|
||||
},
|
||||
legend image code/.code = {
|
||||
\draw[#1] (0cm, -0.075cm) rectangle (0.2cm, 0.135cm);
|
||||
},
|
||||
xlabel = Total Bits Used,
|
||||
ylabel = Quality
|
||||
]
|
||||
\legend{
|
||||
MTF = No, RLE = Split \\
|
||||
MTF = No, RLE = Full \\
|
||||
MTF = No, RLE = No \\
|
||||
MTF = Yes, RLE = Split \\
|
||||
MTF = Yes, RLE = Full \\
|
||||
MTF = Yes, RLE = No \\
|
||||
}
|
||||
\addplot[blue, pattern = north east lines, pattern color = blue!30!white] coordinates {
|
||||
(104549, 4)
|
||||
( 90220, 5)
|
||||
( 94037, 6)
|
||||
( 97062, 7)
|
||||
( 99103, 8)
|
||||
( 98671, 9)
|
||||
( 31004, 10)
|
||||
( 36731, 11)
|
||||
};
|
||||
\addplot[red, pattern = north east lines, pattern color = red!30!white] coordinates {
|
||||
(103952, 4)
|
||||
( 89616, 5)
|
||||
( 93400, 6)
|
||||
( 96427, 7)
|
||||
( 98475, 8)
|
||||
( 98000, 9)
|
||||
( 31693, 10)
|
||||
( 37400, 11)
|
||||
};
|
||||
\addplot[brown, pattern = north east lines, pattern color = brown!30!white] coordinates {
|
||||
(103592, 4)
|
||||
( 89250, 5)
|
||||
( 92995, 6)
|
||||
( 96158, 7)
|
||||
( 98192, 8)
|
||||
( 97725, 9)
|
||||
( 30847, 10)
|
||||
( 36587, 11)
|
||||
};
|
||||
\addplot[blue, fill = blue!30!white] coordinates {
|
||||
(42748, 4)
|
||||
(37320, 5)
|
||||
(38880, 6)
|
||||
(40168, 7)
|
||||
(41155, 8)
|
||||
(41187, 9)
|
||||
(29891, 10)
|
||||
(34029, 11)
|
||||
};
|
||||
\addplot[red, fill = red!30!white] coordinates {
|
||||
(43212, 4)
|
||||
(37753, 5)
|
||||
(39299, 6)
|
||||
(40626, 7)
|
||||
(41565, 8)
|
||||
(41628, 9)
|
||||
(31164, 10)
|
||||
(35350, 11)
|
||||
};
|
||||
\addplot[brown, fill = brown!30!white] coordinates {
|
||||
(45122, 4)
|
||||
(39249, 5)
|
||||
(40951, 6)
|
||||
(42363, 7)
|
||||
(43279, 8)
|
||||
(43313, 9)
|
||||
(29759, 10)
|
||||
(33528, 11)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
@ -0,0 +1,97 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.985\textwidth,
|
||||
height = 2.05*\axisdefaultheight,
|
||||
xbar,
|
||||
xmin = 0,
|
||||
xmax = 2010000,
|
||||
xtick = {0, 250000, 500000, 750000, 1000000, 1250000, 1500000, 1750000, 2010000},
|
||||
xticklabels = {0, 250K, 500K, 750K, 1M, 1.25M, 1.5M, 1.75M, 2M},
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
bar width = 4.75pt,
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.65},
|
||||
legend reversed,
|
||||
legend cell align = {left},
|
||||
legend style = {
|
||||
at = {(0.98, 0.02)},
|
||||
anchor = south east
|
||||
},
|
||||
legend image code/.code = {
|
||||
\draw[#1] (0cm, -0.075cm) rectangle (0.2cm, 0.135cm);
|
||||
},
|
||||
xlabel = Total Bits Used,
|
||||
ylabel = Quality
|
||||
]
|
||||
\legend{
|
||||
MTF = No, RLE = Split \\
|
||||
MTF = No, RLE = Full \\
|
||||
MTF = No, RLE = No \\
|
||||
MTF = Yes, RLE = Split \\
|
||||
MTF = Yes, RLE = Full \\
|
||||
MTF = Yes, RLE = No \\
|
||||
}
|
||||
\addplot[blue, pattern = north east lines, pattern color = blue!30!white] coordinates {
|
||||
(1977076, 4)
|
||||
(1268889, 5)
|
||||
(1284168, 6)
|
||||
(1280449, 7)
|
||||
(1280609, 8)
|
||||
(1231017, 9)
|
||||
(1173389, 10)
|
||||
( 734348, 11)
|
||||
};
|
||||
\addplot[red, pattern = north east lines, pattern color = red!30!white] coordinates {
|
||||
(1976132, 4)
|
||||
(1268612, 5)
|
||||
(1283879, 6)
|
||||
(1280145, 7)
|
||||
(1280285, 8)
|
||||
(1230700, 9)
|
||||
(1172110, 10)
|
||||
( 732234, 11)
|
||||
};
|
||||
\addplot[brown, pattern = north east lines, pattern color = brown!30!white] coordinates {
|
||||
(1993312, 4)
|
||||
(1278295, 5)
|
||||
(1293454, 6)
|
||||
(1289767, 7)
|
||||
(1289896, 8)
|
||||
(1240082, 9)
|
||||
(1177902, 10)
|
||||
( 746310, 11)
|
||||
};
|
||||
\addplot[blue, fill = blue!30!white] coordinates {
|
||||
( 66052, 4)
|
||||
( 98466, 5)
|
||||
( 98859, 6)
|
||||
( 99001, 7)
|
||||
(100242, 8)
|
||||
( 98290, 9)
|
||||
(664678, 10)
|
||||
(417725, 11)
|
||||
};
|
||||
\addplot[red, fill = red!30!white] coordinates {
|
||||
(65983, 4)
|
||||
(97420, 5)
|
||||
(97860, 6)
|
||||
(98018, 7)
|
||||
(99227, 8)
|
||||
(97254, 9)
|
||||
(660969, 10)
|
||||
(414774, 11)
|
||||
};
|
||||
\addplot[brown, fill = brown!30!white] coordinates {
|
||||
(305227, 4)
|
||||
(232071, 5)
|
||||
(233624, 6)
|
||||
(233230, 7)
|
||||
(234143, 8)
|
||||
(227256, 9)
|
||||
(688179, 10)
|
||||
(433459, 11)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
@ -0,0 +1,34 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.95\textwidth,
|
||||
height = 1.1*\axisdefaultheight,
|
||||
xbar,
|
||||
xmax = 56500,
|
||||
xtick = {0, 5000, 10000, 15000, 20000, 25000, 30000, 35000, 40000, 45000, 50000, 55000},
|
||||
xticklabels = {$0$K, $5$K, $10$K, $15$K, $20$K, $25$K, $30$K, $35$K, $40$K, $45$K, $50$K, $55$K},
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 1},
|
||||
nodes near coords,
|
||||
nodes near coords align = {horizontal},
|
||||
xlabel = Bits Saved,
|
||||
ylabel = Quality
|
||||
]
|
||||
\addplot coordinates {
|
||||
(0, 0)
|
||||
(0, 1)
|
||||
(50197, 2)
|
||||
(30432, 3)
|
||||
(12585, 4)
|
||||
(23764, 5)
|
||||
(20239, 6)
|
||||
(16701, 7)
|
||||
(16657, 8)
|
||||
(12102, 9)
|
||||
(26024, 10)
|
||||
(30285, 11)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
@ -0,0 +1,86 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.975\textwidth,
|
||||
height = 0.96*\axisdefaultheight,
|
||||
xbar,
|
||||
xmin = 99.775,
|
||||
xmax = 100.425,
|
||||
xtick = {99.8, 99.9, 100, 100.1, 100.2, 100.3, 100.4},
|
||||
y dir = reverse,
|
||||
ytick = {1, 2, 3, 4, 5, 6, 7, 8, 9},
|
||||
yticklabels = {3, 4, 5, 6, 7, 8, 9, 10, 11},
|
||||
xmajorgrids = true,
|
||||
xminorgrids = true,
|
||||
minor x tick num = 1,
|
||||
minor grid style = {dashed},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.64},
|
||||
xlabel = Ratio (\%),
|
||||
ylabel = Quality
|
||||
]
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0000,
|
||||
lower whisker = 99.9323,
|
||||
upper whisker = 100.0833,
|
||||
lower quartile = 99.9940,
|
||||
upper quartile = 100.0000,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0019,
|
||||
lower whisker = 99.9521,
|
||||
upper whisker = 100.3378,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.0132,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0000,
|
||||
lower whisker = 99.9062,
|
||||
upper whisker = 100.1150,
|
||||
lower quartile = 99.9977,
|
||||
upper quartile = 100.0112,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0000,
|
||||
lower whisker = 99.9062,
|
||||
upper whisker = 100.2265,
|
||||
lower quartile = 99.9989,
|
||||
upper quartile = 100.0130,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0039,
|
||||
lower whisker = 99.9058,
|
||||
upper whisker = 100.2457,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.0155,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0031,
|
||||
lower whisker = 99.9427,
|
||||
upper whisker = 100.2457,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.0170,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0035,
|
||||
lower whisker = 99.9061,
|
||||
upper whisker = 100.1214,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.0144,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0074,
|
||||
lower whisker = 99.7906,
|
||||
upper whisker = 100.3984,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.0260,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0000,
|
||||
lower whisker = 99.9131,
|
||||
upper whisker = 100.4098,
|
||||
lower quartile = 99.9985,
|
||||
upper quartile = 100.0167,
|
||||
}] coordinates {};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
104
Paper/Source/Figures/TikZ/reserialize-overall-comparison.tex
Normal file
104
Paper/Source/Figures/TikZ/reserialize-overall-comparison.tex
Normal file
@ -0,0 +1,104 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.975\textwidth,
|
||||
height = 1.2*\axisdefaultheight,
|
||||
xbar,
|
||||
xmin = 94.5,
|
||||
xmax = 100.5,
|
||||
xtick distance = 0.5,
|
||||
xmajorgrids = true,
|
||||
y dir = reverse,
|
||||
ytick = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
|
||||
yticklabels = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.8},
|
||||
xlabel = Ratio (\%),
|
||||
ylabel = Quality
|
||||
]
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 99.9259,
|
||||
lower whisker = 96.0526,
|
||||
upper whisker = 100.0000,
|
||||
lower quartile = 99.8049,
|
||||
upper quartile = 99.9793,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 99.9454,
|
||||
lower whisker = 95.0139,
|
||||
upper whisker = 100.0000,
|
||||
lower quartile = 99.8026,
|
||||
upper quartile = 99.9735,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 99.6814,
|
||||
lower whisker = 94.8087,
|
||||
upper whisker = 100.0000,
|
||||
lower quartile = 99.1795,
|
||||
upper quartile = 99.7820,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0000,
|
||||
lower whisker = 99.9323,
|
||||
upper whisker = 100.0833,
|
||||
lower quartile = 99.9940,
|
||||
upper quartile = 100.0000,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0019,
|
||||
lower whisker = 99.9521,
|
||||
upper whisker = 100.3378,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.0132,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0000,
|
||||
lower whisker = 99.9062,
|
||||
upper whisker = 100.1150,
|
||||
lower quartile = 99.9977,
|
||||
upper quartile = 100.0112,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0000,
|
||||
lower whisker = 99.9062,
|
||||
upper whisker = 100.2265,
|
||||
lower quartile = 99.9989,
|
||||
upper quartile = 100.0130,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0039,
|
||||
lower whisker = 99.9058,
|
||||
upper whisker = 100.2457,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.0155,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0031,
|
||||
lower whisker = 99.9427,
|
||||
upper whisker = 100.2457,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.0170,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0035,
|
||||
lower whisker = 99.9061,
|
||||
upper whisker = 100.1214,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.0144,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0074,
|
||||
lower whisker = 99.7906,
|
||||
upper whisker = 100.3984,
|
||||
lower quartile = 100.0000,
|
||||
upper quartile = 100.0260,
|
||||
}] coordinates {};
|
||||
\addplot[blue, fill = blue!30!white, boxplot prepared = {
|
||||
median = 100.0000,
|
||||
lower whisker = 99.9131,
|
||||
upper whisker = 100.4098,
|
||||
lower quartile = 99.9985,
|
||||
upper quartile = 100.0167,
|
||||
}] coordinates {};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
116
Paper/Source/Figures/TikZ/test-corpus-comparison.tex
Normal file
116
Paper/Source/Figures/TikZ/test-corpus-comparison.tex
Normal file
@ -0,0 +1,116 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.95*\textwidth,
|
||||
height = 3.056*\axisdefaultheight,
|
||||
xbar,
|
||||
xmin = 0,
|
||||
xmax = 102,
|
||||
xtick = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100},
|
||||
xticklabel pos = right,
|
||||
y dir = reverse,
|
||||
ytick = {
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
|
||||
11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
||||
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
||||
31, 32, 33, 34, 35, 36, 37, 38, 39
|
||||
},
|
||||
yticklabels = {
|
||||
brotli 0,
|
||||
gzip 1,
|
||||
gzip 2,
|
||||
brotli 1,
|
||||
zstd 1,
|
||||
gzip 3,
|
||||
gzip 4,
|
||||
zstd 2,
|
||||
gzip 5,
|
||||
brotli 2,
|
||||
gzip 6,
|
||||
brotli 3,
|
||||
gzip 7,
|
||||
gzip 8,
|
||||
gzip 9,
|
||||
zstd 3,
|
||||
zstd 4,
|
||||
zstd 5,
|
||||
brotli 4,
|
||||
zstd 6,
|
||||
zstd 7,
|
||||
zstd 8,
|
||||
zstd 9,
|
||||
brotli 5,
|
||||
zstd 10,
|
||||
zstd 11,
|
||||
zstd 12,
|
||||
brotli 6,
|
||||
zstd 13,
|
||||
brotli 7,
|
||||
zstd 14,
|
||||
zstd 15,
|
||||
brotli 8,
|
||||
brotli 9,
|
||||
zstd 16,
|
||||
zstd 17,
|
||||
zstd 18,
|
||||
zstd 19,
|
||||
brotli 10,
|
||||
brotli 11
|
||||
},
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 1},
|
||||
nodes near coords,
|
||||
nodes near coords align = {horizontal},
|
||||
nodes near coords style = {/pgf/number format/.cd, fixed zerofill, precision = 1},
|
||||
every axis plot/.append style = {xbar, fill, bar shift = 0pt},
|
||||
xlabel near ticks,
|
||||
xlabel = Total Compressed Size (MiB)
|
||||
]
|
||||
\addplot[blue, fill = blue!30!white] coordinates {
|
||||
(94.56, 0) % 99 150 297 B
|
||||
(89.10, 3) % 93 429 734 B
|
||||
(81.98, 9) % 85 960 725 B
|
||||
(80.90, 11) % 84 830 319 B
|
||||
(76.42, 18) % 80 136 146 B
|
||||
(71.05, 23) % 74 500 236 B
|
||||
(69.56, 27) % 72 940 373 B
|
||||
(68.39, 29) % 71 711 758 B
|
||||
(67.53, 32) % 70 807 826 B
|
||||
(66.81, 33) % 70 055 213 B
|
||||
(60.60, 38) % 63 543 079 B
|
||||
(59.04, 39) % 61 911 912 B
|
||||
};
|
||||
\addplot[red, fill = red!30!white] coordinates {
|
||||
(94.44, 1) % 99 027 630 B
|
||||
(91.14, 2) % 95 567 413 B
|
||||
(87.88, 5) % 92 146 479 B
|
||||
(85.36, 6) % 89 507 810 B
|
||||
(82.64, 8) % 86 656 402 B
|
||||
(81.05, 10) % 84 987 646 B
|
||||
(80.58, 12) % 84 495 896 B
|
||||
(80.21, 13) % 84 110 750 B
|
||||
(80.15, 14) % 84 047 624 B
|
||||
};
|
||||
\addplot[brown, fill = brown!30!white] coordinates {
|
||||
(88.00, 4) % 92 275 340 B
|
||||
(83.76, 7) % 87 832 541 B
|
||||
(79.86, 15) % 83 737 813 B
|
||||
(78.64, 16) % 82 460 802 B
|
||||
(76.79, 17) % 80 524 085 B
|
||||
(75.20, 19) % 78 852 204 B
|
||||
(73.21, 20) % 76 761 040 B
|
||||
(72.41, 21) % 75 927 488 B
|
||||
(71.55, 22) % 75 027 107 B
|
||||
(70.87, 24) % 74 314 109 B
|
||||
(70.57, 25) % 74 002 318 B
|
||||
(69.88, 26) % 73 270 742 B
|
||||
(68.66, 28) % 71 991 701 B
|
||||
(68.08, 30) % 71 391 788 B
|
||||
(67.60, 31) % 70 888 796 B
|
||||
(65.46, 34) % 68 641 121 B
|
||||
(64.35, 35) % 67 480 010 B
|
||||
(63.31, 36) % 66 383 640 B
|
||||
(62.86, 37) % 65 912 429 B
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
55
Paper/Source/Figures/TikZ/test-corpus-context-map-bits.tex
Normal file
55
Paper/Source/Figures/TikZ/test-corpus-context-map-bits.tex
Normal file
@ -0,0 +1,55 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.95\textwidth,
|
||||
height = 1.15*\axisdefaultheight,
|
||||
xbar,
|
||||
xmin = 0,
|
||||
xmax = 100,
|
||||
xtick = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100},
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
bar width = 7pt,
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.8},
|
||||
reverse legend,
|
||||
legend cell align = {left},
|
||||
legend style = {
|
||||
at = {(0.89, 0.94)},
|
||||
anchor = north
|
||||
},
|
||||
legend image code/.code = {
|
||||
\draw[#1] (0cm, -0.075cm) rectangle (0.2cm, 0.135cm);
|
||||
},
|
||||
nodes near coords,
|
||||
nodes near coords align = {horizontal},
|
||||
nodes near coords style = {/pgf/number format/.cd, fixed zerofill, precision = 2},
|
||||
xlabel = Ratio of Actual Bits to Raw Size (\%),
|
||||
ylabel = Quality
|
||||
]
|
||||
\legend{
|
||||
Distances,
|
||||
Literals
|
||||
}
|
||||
\addplot coordinates {
|
||||
(34.40, 4)
|
||||
(34.57, 5)
|
||||
(34.39, 6)
|
||||
(34.26, 7)
|
||||
(34.27, 8)
|
||||
(34.17, 9)
|
||||
(61.47, 10)
|
||||
(62.66, 11)
|
||||
};
|
||||
\addplot coordinates {
|
||||
(3.00, 4)
|
||||
(7.07, 5)
|
||||
(7.04, 6)
|
||||
(7.08, 7)
|
||||
(7.15, 8)
|
||||
(7.25, 9)
|
||||
(43.74, 10)
|
||||
(40.89, 11)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
@ -0,0 +1,93 @@
|
||||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
width = 0.99\textwidth,
|
||||
height = 1.09*\axisdefaultheight,
|
||||
xbar stacked,
|
||||
xmin = 0,
|
||||
xmax = 100,
|
||||
xtick = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100},
|
||||
y dir = reverse,
|
||||
ytick = data,
|
||||
bar width = 8.25pt,
|
||||
scaled ticks = false,
|
||||
enlarge x limits = {abs = 0},
|
||||
enlarge y limits = {abs = 0.9},
|
||||
legend columns = -1,
|
||||
legend style = {
|
||||
at = {(0.5, 1.04)},
|
||||
anchor = south,
|
||||
column sep = 0.05cm,
|
||||
/tikz/every even column/.append style = {
|
||||
column sep = 0.3cm
|
||||
}
|
||||
},
|
||||
legend image code/.code = {
|
||||
\draw[#1] (0cm, -0.075cm) rectangle (0.2cm, 0.135cm);
|
||||
},
|
||||
xlabel = \% of Occurrences in Insert\&Copy Commands,
|
||||
ylabel = Quality
|
||||
]
|
||||
\legend{
|
||||
CID = 0,
|
||||
CID = 1,
|
||||
CID = 2,
|
||||
CID = 3
|
||||
}
|
||||
\addplot[blue, fill = blue!30!white] coordinates {
|
||||
(28.18, 0)
|
||||
(31.18, 1)
|
||||
(0.00, 2)
|
||||
(0.00, 3)
|
||||
(0.00, 4)
|
||||
(2.38, 5)
|
||||
(2.31, 6)
|
||||
(2.26, 7)
|
||||
(2.22, 8)
|
||||
(2.23, 9)
|
||||
(3.93, 10)
|
||||
(3.83, 11)
|
||||
};
|
||||
\addplot[red, fill = red!30!white] coordinates {
|
||||
(10.76, 0)
|
||||
(0.02, 1)
|
||||
(0.0, 2)
|
||||
(0.0, 3)
|
||||
(0.0, 4)
|
||||
(1.8, 5)
|
||||
(1.73, 6)
|
||||
(1.93, 7)
|
||||
(1.91, 8)
|
||||
(2.13, 9)
|
||||
(4.74, 10)
|
||||
(5.51, 11)
|
||||
};
|
||||
\addplot[brown, fill = brown!30!white] coordinates {
|
||||
(4.98, 0)
|
||||
(9.68, 1)
|
||||
(0.22, 2)
|
||||
(0.2, 3)
|
||||
(0.59, 4)
|
||||
(1.31, 5)
|
||||
(1.29, 6)
|
||||
(1.36, 7)
|
||||
(1.37, 8)
|
||||
(1.46, 9)
|
||||
(4.44, 10)
|
||||
(5.31, 11)
|
||||
};
|
||||
\addplot[black, fill = black!30!white] coordinates {
|
||||
(56.09, 0)
|
||||
(59.12, 1)
|
||||
(99.78, 2)
|
||||
(99.8, 3)
|
||||
(99.41, 4)
|
||||
(94.51, 5)
|
||||
(94.67, 6)
|
||||
(94.45, 7)
|
||||
(94.5, 8)
|
||||
(94.18, 9)
|
||||
(86.89, 10)
|
||||
(85.35, 11)
|
||||
};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
95
Paper/Source/References/sources.bib
Normal file
95
Paper/Source/References/sources.bib
Normal file
@ -0,0 +1,95 @@
|
||||
@techreport{RFC7932,
|
||||
author = {J. Alakuijala and Z. Szabadka},
|
||||
title = {Brotli Compressed Data Format},
|
||||
url = {https://tools.ietf.org/html/rfc7932},
|
||||
type = {RFC},
|
||||
number = {7932},
|
||||
month = {7},
|
||||
year = {2016},
|
||||
pages = {1--128},
|
||||
issn = {2070-1721},
|
||||
publisher = {RFC Editor},
|
||||
institution = {RFC Editor},
|
||||
howpublished = {Internet Requests for Comments},
|
||||
}
|
||||
|
||||
@techreport{RFC1951,
|
||||
author = {P. Deutsch},
|
||||
title = {DEFLATE Compressed Data Format Specification version 1.3},
|
||||
url = {https://tools.ietf.org/html/rfc1951},
|
||||
type = {RFC},
|
||||
number = {1951},
|
||||
month = {5},
|
||||
year = {1996},
|
||||
pages = {1--17},
|
||||
publisher = {RFC Editor},
|
||||
institution = {RFC Editor},
|
||||
howpublished = {Internet Requests for Comments},
|
||||
}
|
||||
|
||||
@online{BrotliComparisonStudy,
|
||||
author = {Jyrki Alakuijala and Evgenii Kliuchnikov and Zoltan Szabadka and Lode Vandevenne},
|
||||
title = {Comparison of Brotli, Deflate, Zopfli, LZMA, LZHAM and Bzip2 Compression Algorithms},
|
||||
url = {https://github.com/google/brotli/blob/master/docs/brotli-comparison-study-2015-09-22.pdf},
|
||||
date = {2015-09-22},
|
||||
month = {9},
|
||||
year = {2015},
|
||||
}
|
||||
|
||||
@article{Huffman,
|
||||
author = {David A. Huffman},
|
||||
title = {A Method for the Construction of Minimum-Redundancy Codes},
|
||||
journal = {Proceedings of the IRE},
|
||||
volume = {40},
|
||||
issue = {9},
|
||||
month = {9},
|
||||
year = {1952},
|
||||
pages = {1098-1101},
|
||||
issn = {2162-6634},
|
||||
doi = {10.1109/JRPROC.1952.273898},
|
||||
publisher = {IEEE},
|
||||
}
|
||||
|
||||
@article{LZ77,
|
||||
author = {Jacob Ziv and Abraham Lempel},
|
||||
title = {A universal algorithm for sequential data compression},
|
||||
journal = {IEEE TRANSACTIONS ON INFORMATION THEORY},
|
||||
year = {1977},
|
||||
volume = {23},
|
||||
number = {3},
|
||||
pages = {337--343},
|
||||
}
|
||||
|
||||
@online{FiniteContextModelling,
|
||||
author = {Dario Phong},
|
||||
title = {Finite Context Modelling},
|
||||
date = {2000-01-02},
|
||||
url = {http://www.hugi.scene.org/online/coding/hugi%2019%20-%20cofinite.htm},
|
||||
}
|
||||
|
||||
@book{DataCompressionCompleteReference,
|
||||
author = {David Salomon},
|
||||
title = {Data Compression: The Complete Reference},
|
||||
note = {With contributions by Giovanni Motta and David Bryant.},
|
||||
publisher = {Spring{\-}er-Ver{\-}lag},
|
||||
location = {Berlin, Germany~/ Heidelberg, Germany~/ London, UK~/ etc.},
|
||||
year = {2007},
|
||||
isbn = {1-84628-602-6},
|
||||
pagetotal = {xxvii+1092},
|
||||
}
|
||||
|
||||
@online{DepthLimitedHuffmanTrees,
|
||||
author = {Charles Bloom},
|
||||
title = {Length-Limitted Huffman Codes Heuristic},
|
||||
date = {2010-07-03},
|
||||
url = {https://cbloomrants.blogspot.com/2010/07/07-03-10-length-limitted-huffman-codes.html},
|
||||
month = {7},
|
||||
year = {2010},
|
||||
}
|
||||
|
||||
@online{DataUrlBase64,
|
||||
author = {MDN Contributors},
|
||||
title = {Data URLs},
|
||||
date = {2020-03-03},
|
||||
url = {https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs},
|
||||
}
|
3
Paper/Source/SourceCodes/BlockSwitchBuilderGetters.cs
Normal file
3
Paper/Source/SourceCodes/BlockSwitchBuilderGetters.cs
Normal file
@ -0,0 +1,3 @@
|
||||
var literalBlocks = builder.BlockTypes[Category.Literal];
|
||||
var lengthCodeBlocks = builder.BlockTypes[Category.InsertCopy];
|
||||
var distanceCodeBlocks = builder.BlockTypes[Category.Distance];
|
37
Paper/Source/SourceCodes/CompressedMetaBlockBuilderAPI.cs
Normal file
37
Paper/Source/SourceCodes/CompressedMetaBlockBuilderAPI.cs
Normal file
@ -0,0 +1,37 @@
|
||||
var state = new BrotliGlobalState(BrotliFileParameters.Default);
|
||||
var builder = new CompressedMetaBlockBuilder(state);
|
||||
|
||||
// Generates command 1 that outputs "This␣is␣" from literals "This␣",
|
||||
// and a copy part that produces "is␣" by copying the last 3 literals.
|
||||
builder.AddInsertCopy(
|
||||
Literal.FromString("This ", UTF8),
|
||||
copyLength: 𝟑,
|
||||
copyDistance: 𝟑);
|
||||
|
||||
// Generates command 2 with literals "test" and no copy part.
|
||||
builder.AddInsert(Literal.FromString("test", UTF8));
|
||||
|
||||
// Every command must either have a copy part, or be the last in a meta-block.
|
||||
// Subsequent commands will be automatically merged until either
|
||||
// the meta-block is built, or a command introduces a copy part.
|
||||
|
||||
// Merges literals "ing" into command 2.
|
||||
// The command now produces the text "testing".
|
||||
builder.AddInsert(Literal.FromString("ing", UTF8));
|
||||
|
||||
// The previous command is still missing a copy part.
|
||||
// This finds "␣data" in the dictionary, encodes it into a copy part,
|
||||
// and merges with command 2 which will now output "testing␣data".
|
||||
var dictionary = BrotliFileParameters.Default.Dictionary.Index;
|
||||
var results = dictionary.Find(UTF8.GetBytes(" data"), minLength: 𝟓);
|
||||
builder.AddCopy(results.First());
|
||||
|
||||
// The previous command now has a copy part, so this
|
||||
// generates command 3 with literals "!!".
|
||||
builder.AddInsert(Literal.FromString("!!", UTF8));
|
||||
|
||||
// We can check the output size before building.
|
||||
Assert(builder.OutputSize == "This is testing data!!".Length);
|
||||
|
||||
// Build the meta-block and obtain the state for building the next meta-block.
|
||||
var (metaBlock,nextState) = builder.Build(BrotliCompressionParameters.Default);
|
28
Paper/Source/SourceCodes/ContextMapBuilderAPI.cs
Normal file
28
Paper/Source/SourceCodes/ContextMapBuilderAPI.cs
Normal file
@ -0,0 +1,28 @@
|
||||
// Assume the block types have already been setup.
|
||||
Assert(builder.BlockTypes[Category.Distance].TypeCount == 𝟑);
|
||||
|
||||
var contextMap = new ContextMapBuilder.Distances(blockTypeCount: 𝟑);
|
||||
// [ 0,0,0,0 | 0,0,0,0 | 0,0,0,0 ]
|
||||
|
||||
contextMap.Set(blockType: 𝟎, values: new byte[]{ 𝟎, 𝟏, 𝟐, 𝟑 });
|
||||
// [ 0,1,2,3 | 0,0,0,0 | 0,0,0,0 ]
|
||||
// * * * *
|
||||
|
||||
contextMap.Set(blockType: 𝟎, index: 𝟏, value: 𝟎);
|
||||
// [ 0,0,2,3 | 0,0,0,0 | 0,0,0,0 ]
|
||||
// *
|
||||
|
||||
contextMap.Set(blockType: 𝟎, range: new IntRange(𝟐, 𝟑), value: 𝟏);
|
||||
// [ 0,0,1,1 | 0,0,0,0 | 0,0,0,0 ]
|
||||
// * *
|
||||
|
||||
contextMap.RepeatFirstBlockType(separateTreesPerBlockType: false);
|
||||
// [ 0,0,1,1 | 0,0,1,1 | 0,0,1,1 ]
|
||||
// * * * * * * * *
|
||||
|
||||
contextMap.RepeatFirstBlockType(separateTreesPerBlockType: true);
|
||||
// [ 0,0,1,1 | 2,2,3,3 | 4,4,5,5 ]
|
||||
// * * * * * * * *
|
||||
|
||||
// Build and assign.
|
||||
builder.DistanceCtxMap = contextMap.Build();
|
584
Paper/Source/diploma.cls
Normal file
584
Paper/Source/diploma.cls
Normal file
@ -0,0 +1,584 @@
|
||||
%%
|
||||
%% This is file `diploma.cls',
|
||||
%% generated with the docstrip utility.
|
||||
%%
|
||||
%% The original source files were:
|
||||
%%
|
||||
%% VersionInfo.dtx
|
||||
%% Introduction.dtx
|
||||
%% UserManual.dtx
|
||||
%% ImplementationBeginning.dtx
|
||||
%% Constants.dtx
|
||||
%% VariablesDeclaration.dtx
|
||||
%% BaseClassAndPackages.dtx
|
||||
%% OptionsDeclaration.dtx
|
||||
%% PublicMacros.dtx
|
||||
%% InternalMacros.dtx
|
||||
%% SourceCodeListings.dtx
|
||||
%% ImplementationFinale.dtx
|
||||
%%
|
||||
%% Original was created by doc. Mgr. Jiří Dvorský, Ph.D., available at http://www.cs.vsb.cz/dvorsky/Download/LaTeX/Diploma.zip
|
||||
%%
|
||||
%% Toto dílo podléhá licenci CC BY-NC-ND 3.0 CZ, https://creativecommons.org/licenses/by-nc-nd/3.0/cz/
|
||||
%% Můžete jej šířit a používat pro nekomerční účely, musí však být uveden autor a dokument nelze měnit.
|
||||
%%
|
||||
%% This work is licensed under CC BY-NC-ND 3.0 CZ, https://creativecommons.org/licenses/by-nc-nd/3.0/cz/deed.en
|
||||
%% You may distribute it and use it for non-commercial purposes, but the author must be mentioned and the document can not be changed.
|
||||
%%
|
||||
\def\fileversion{4.3}
|
||||
\def\filedate{2018/05/30}
|
||||
\def\docdate{30. května 2019}
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{diploma}[\filedate\space \fileversion\space diploma LaTeX document class]
|
||||
\RequirePackage{ifthen}
|
||||
\RequirePackage[utf8]{inputenc}
|
||||
\newcommand{\Dipl@BachelorThesis}{0}
|
||||
\newcommand{\Dipl@BachelorPractice}{1}
|
||||
\newcommand{\Dipl@MasterThesis}{2}
|
||||
\newcommand{\Dipl@PhDThesis}{3}
|
||||
\newcommand{\Dipl@CzechLanguage}{0}
|
||||
\newcommand{\Dipl@EnglishLanguage}{1}
|
||||
\newcommand{\Dipl@SlovakLanguage}{2}
|
||||
\newcommand{\Dipl@CzechBachelorMaleAuthorDeclaration}{Prohlašuji, že jsem tuto bakalářskou práci vypracoval samostatně. Uvedl jsem všechny literární prameny a publikace, ze kterých jsem čerpal.}
|
||||
\newcommand{\Dipl@CzechBachelorFemaleAuthorDeclaration}{Prohlašuji, že jsem tuto bakalářskou práci vypracovala samostatně. Uvedla jsem všechny literární prameny a publikace, ze kterých jsem čerpala.}
|
||||
\newcommand{\Dipl@CzechMasterMaleAuthorDeclaration}{Prohlašuji, že jsem tuto diplomovou práci vypracoval samostatně. Uvedl jsem všechny literární prameny a publikace, ze kterých jsem čerpal.}
|
||||
\newcommand{\Dipl@CzechMasterFemaleAuthorDeclaration}{Prohlašuji, že jsem tuto diplomovou práci vypracovala samostatně. Uvedla jsem všechny literární prameny a publikace, ze kterých jsem čerpala.}
|
||||
\newcommand{\Dipl@CzechPhDMaleAuthorDeclaration}{Prohlašuji, že jsem tuto disertační práci vypracoval samostatně. Uvedl jsem všechny literární prameny a publikace, ze kterých jsem čerpal.}
|
||||
\newcommand{\Dipl@CzechPhDFemaleAuthorDeclaration}{Prohlašuji, že jsem tuto disertační práci vypracovala samostatně. Uvedla jsem všechny literární prameny a publikace, ze kterých jsem čerpala.}
|
||||
\newcommand{\Dipl@SlovakBachelorMaleAuthorDeclaration}{Prehlasujem, že som túto bakalársku prácu vypracoval samostatne. Uviedol som všetky literárne pramene a publikácie, z ktorých som čerpal.}
|
||||
\newcommand{\Dipl@SlovakBachelorFemaleAuthorDeclaration}{Prehlasujem, že som túto bakalársku prácu vypracovala samostatne. Uviedla som všetky literárne pramene a publikácie, z ktorých som čerpala.}
|
||||
\newcommand{\Dipl@SlovakMasterMaleAuthorDeclaration}{Prehlasujem, že som túto diplomovú prácu vypracoval samostatne. Uviedol som všetky literárne pramene a publikácie, z ktorých som čerpal.}
|
||||
\newcommand{\Dipl@SlovakMasterFemaleAuthorDeclaration}{Prehlasujem, že som túto diplomovú prácu vypracovala samostatne. Uviedla som všetky literárne pramene a publikácie, z ktorých som čerpala.}
|
||||
\newcommand{\Dipl@SlovakPhDMaleAuthorDeclaration}{Prehlasujem, že som túto disertačnú prácu vypracoval samostatne. Uviedol som všetky literárne pramene a publikácie, z ktorých som čerpal.}
|
||||
\newcommand{\Dipl@SlovakPhDFemaleAuthorDeclaration}{Prehlasujem, že som túto disertačnú prácu vypracovala samostatne. Uviedla som všetky literárne pramene a publikácie, z ktorých som čerpala.}
|
||||
\newcommand{\Dipl@EnglishBachelorAuthorDeclaration}{I hereby declare that this bachelor's thesis was written by myself. I have quoted all the references I have drawn upon.}
|
||||
\newcommand{\Dipl@EnglishMasterAuthorDeclaration}{I hereby declare that this master's thesis was written by myself. I have quoted all the references I have drawn upon.}
|
||||
\newcommand{\Dipl@EnglishPhDAuthorDeclaration}{I hereby declare that this PhD thesis was written by myself. I have quoted all the references I have drawn upon.}
|
||||
\newtoks\Dipl@UniversityName
|
||||
\Dipl@UniversityName={No university name is given}
|
||||
\newtoks\Dipl@FacultyName
|
||||
\Dipl@FacultyName={No faculty name is given}
|
||||
\newtoks\Dipl@DepartmentName
|
||||
\Dipl@DepartmentName={No department name is given}
|
||||
\newtoks\Dipl@ThesisAuthor
|
||||
\Dipl@ThesisAuthor={No author name is given}
|
||||
\newtoks\Dipl@CzechThesisTitle
|
||||
% EDIT START
|
||||
\Dipl@CzechThesisTitle={}
|
||||
% EDIT END
|
||||
\newtoks\Dipl@EnglishThesisTitle
|
||||
\Dipl@EnglishThesisTitle={No English thesis title is given}
|
||||
\newtoks\Dipl@SubmissionDate
|
||||
\Dipl@SubmissionDate={No submission date is given}
|
||||
\newtoks\Dipl@ThesisAssignmentImagePath
|
||||
\Dipl@ThesisAssignmentImagePath={}
|
||||
\newtoks\Dipl@AuthorDeclaration
|
||||
\Dipl@AuthorDeclaration={}
|
||||
\newtoks\Dipl@AuthorDeclarationImageFile
|
||||
\Dipl@AuthorDeclarationImageFile={}
|
||||
\newtoks\Dipl@CooperatingPersonsDeclaration
|
||||
\Dipl@CooperatingPersonsDeclaration={}
|
||||
\newtoks\Dipl@CooperatingPersonsDeclarationImageFile
|
||||
\Dipl@CooperatingPersonsDeclarationImageFile={}
|
||||
\newtoks\Dipl@Thanks
|
||||
\Dipl@Thanks={}
|
||||
\newtoks\Dipl@CzechAbstract
|
||||
% EDIT START
|
||||
\Dipl@CzechAbstract={}
|
||||
% EDIT END
|
||||
\newtoks\Dipl@CzechKeywords
|
||||
\Dipl@CzechKeywords={No Czech or Slovak keywords are given}
|
||||
\newtoks\Dipl@EnglishAbstract
|
||||
\Dipl@EnglishAbstract={No English abstract is given}
|
||||
\newtoks\Dipl@EnglishKeywords
|
||||
\Dipl@EnglishKeywords={No English keywords are given}
|
||||
\newtoks\Dipl@Acronyms
|
||||
\Dipl@Acronyms={}
|
||||
\newtoks\Dipl@DefaultSourceCodeLanguage
|
||||
\Dipl@DefaultSourceCodeLanguage={csharp}
|
||||
\newtoks\Dipl@BabelLanguageOptions
|
||||
\newboolean{Dipl@AuthorIsMale}
|
||||
\setboolean{Dipl@AuthorIsMale}{true}
|
||||
\newboolean{Dipl@PrintCooperatingPersonsDeclaration}
|
||||
\setboolean{Dipl@PrintCooperatingPersonsDeclaration}{false}
|
||||
\newboolean{Dipl@IsAppendix}
|
||||
\setboolean{Dipl@IsAppendix}{false}
|
||||
\newcounter{Dipl@CurrentThesisType}
|
||||
\setcounter{Dipl@CurrentThesisType}{\Dipl@MasterThesis}
|
||||
\newcounter{Dipl@CurrentThesisLanguage}
|
||||
\setcounter{Dipl@CurrentThesisLanguage}{\Dipl@CzechLanguage}
|
||||
\newcounter{Dipl@ThesisAssignmentImageCounter}
|
||||
\LoadClass[11pt]{article}
|
||||
\RequirePackage[T1]{fontenc}
|
||||
\RequirePackage{lmodern}
|
||||
\RequirePackage[a4paper,includefoot,nohead,marginparwidth=0mm,marginparsep=0mm,left=30mm,right=20mm,top=30mm,bottom=30mm]{geometry}
|
||||
\RequirePackage{booktabs}
|
||||
\RequirePackage{graphicx}
|
||||
\RequirePackage[final]{listings}
|
||||
\RequirePackage{longtable}
|
||||
\RequirePackage{caption}
|
||||
\RequirePackage{rotating}
|
||||
\RequirePackage{setspace}
|
||||
\RequirePackage{theorem}
|
||||
\RequirePackage{titlesec}
|
||||
\RequirePackage[nottoc,notindex,section]{tocbibind}
|
||||
\RequirePackage{totcount}
|
||||
\RequirePackage{xcolor}
|
||||
\RequirePackage[a-1b]{pdfx}
|
||||
\DeclareOption{czech}
|
||||
{
|
||||
\setcounter{Dipl@CurrentThesisLanguage}{\Dipl@CzechLanguage}
|
||||
\Dipl@BabelLanguageOptions={english,main=czech}
|
||||
\Dipl@UniversityName={VŠB -- Technická univerzita Ostrava}
|
||||
\Dipl@FacultyName={Fakulta elektrotechniky a informatiky}
|
||||
}
|
||||
\DeclareOption{english}
|
||||
{
|
||||
\setcounter{Dipl@CurrentThesisLanguage}{\Dipl@EnglishLanguage}
|
||||
\Dipl@BabelLanguageOptions{czech,main=english}
|
||||
\Dipl@UniversityName={VŠB -- Technical University of Ostrava}
|
||||
\Dipl@FacultyName={Faculty of Electrical Engineering and Computer Science}
|
||||
}
|
||||
\DeclareOption{slovak}
|
||||
{
|
||||
\setcounter{Dipl@CurrentThesisLanguage}{\Dipl@SlovakLanguage}
|
||||
\Dipl@BabelLanguageOptions={english,main=slovak}
|
||||
\Dipl@UniversityName={VŠB -- Technická univerzita Ostrava}
|
||||
\Dipl@FacultyName={Fakulta elektrotechniky a informatiky}
|
||||
}
|
||||
\DeclareOption{bachelor}
|
||||
{
|
||||
\setcounter{Dipl@CurrentThesisType}{\Dipl@BachelorThesis}
|
||||
\Dipl@CooperatingPersonsDeclaration={\Dipl@LanguageDependentText{Souhlasím se zveřejněním této bakalářské práce dle požadavků čl.\ 26, odst.\ 9 Studijního a~zkušebního řádu pro studium v bakalářských programech VŠB-TU Ostrava.}{Súhlasím so zverejnením tejto bakalárskej práce podľa požiadaviek čl .\ 26, odst.\ 9 Študijného a~skúšobného poriadku pre štúdium v bakalárskych programoch VŠB-TU Ostrava.}{I hereby agree to the publishing of the bachelor's thesis as per s. 26, ss. 9 of the Study and Examination Regulations for Bachelor's Degree Programmes at VŠB -- Technical University of Ostrava.}}
|
||||
}
|
||||
\DeclareOption{bachelorpractice}
|
||||
{
|
||||
\setcounter{Dipl@CurrentThesisType}{\Dipl@BachelorPractice}
|
||||
\Dipl@CzechThesisTitle={Absolvování individuální odborné praxe}
|
||||
\Dipl@EnglishThesisTitle={Individual Professional Practice in the Company}
|
||||
\Dipl@CooperatingPersonsDeclaration={\Dipl@LanguageDependentText{Souhlasím se zveřejněním této bakalářské práce dle požadavků čl.\ 26, odst.\ 9 Studijního a~zkušebního řádu pro studium v bakalářských programech VŠB-TU Ostrava.}{Súhlasím so zverejnením tejto bakalárskej práce podľa požiadaviek čl .\ 26, odst.\ 9 Študijného a~skúšobného poriadku pre štúdium v bakalárskych programoch VŠB-TU Ostrava.}{I hereby agree to the publishing of the bachelor's thesis as per s. 26, ss. 9 of the Study and Examination Regulations for Bachelor's Degree Programmes at VŠB -- Technical University of Ostrava.}}
|
||||
}
|
||||
\DeclareOption{master}
|
||||
{
|
||||
\setcounter{Dipl@CurrentThesisType}{\Dipl@MasterThesis}
|
||||
\Dipl@CooperatingPersonsDeclaration={\Dipl@LanguageDependentText{Souhlasím se zveřejněním této diplomové práce dle požadavků čl.\ 26, odst.\ 9 Studijního a~zkušebního řádu pro studium v magisterských programech VŠB-TU Ostrava.}{Súhlasím so zverejnením tejto diplomovej práce podľa požiadaviek čl .\ 26, odst.\ 9 Študijného a~skúšobného poriadku pre štúdium v bakalárskych programoch VŠB-TU Ostrava.}{I hereby agree to the publishing of the master's thesis as per s. 26, ss. 9 of the Study and Examination Regulations for Master's Degree Programmes at VŠB -- Technical University of Ostrava.}}
|
||||
}
|
||||
\DeclareOption{phd}{\setcounter{Dipl@CurrentThesisType}{\Dipl@PhDThesis}}
|
||||
\DeclareOption{cpdeclaration}{\setboolean{Dipl@PrintCooperatingPersonsDeclaration}{true}}
|
||||
\DeclareOption{dept410}{\Dipl@DepartmentName={\Dipl@LanguageDependentText{Katedra elektroenergetiky}{Katedra elektroenergetiky}{Department of Electrical Power Engineering}}}
|
||||
\DeclareOption{dept420}{\Dipl@DepartmentName={\Dipl@LanguageDependentText{Katedra elektrotechniky}{Katedra elektrotechniky}{Department of Electrical Engineering}}}
|
||||
\DeclareOption{dept430}{\Dipl@DepartmentName={\Dipl@LanguageDependentText{Katedra elektroniky}{Katedra elektroniky}{Department of Electronics}}}
|
||||
\DeclareOption{dept440}{\Dipl@DepartmentName={\Dipl@LanguageDependentText{Katedra telekomunikační techniky}{Katedra telekomunikační techniky}{Department of Telecommunications}}}
|
||||
\DeclareOption{dept450}{\Dipl@DepartmentName={\Dipl@LanguageDependentText{Katedra kybernetiky a biomedicínského inženýrství}{Katedra kybernetiky a biomedicínského inženýrství}{Department of Cybernetics and Biomedical Engineering}}}
|
||||
\DeclareOption{dept460}{\Dipl@DepartmentName={\Dipl@LanguageDependentText{Katedra informatiky}{Katedra informatiky}{Department of Computer Science}}}
|
||||
\DeclareOption{dept470}{\Dipl@DepartmentName={\Dipl@LanguageDependentText{Katedra aplikované matematiky}{Katedra aplikované matematiky}{Department of Applied Mathematics}}}
|
||||
\DeclareOption{dept480}{\Dipl@DepartmentName={\Dipl@LanguageDependentText{Katedra fyziky}{Katedra fyziky}{Department of Physics}}}
|
||||
\DeclareOption{male}
|
||||
{
|
||||
\setboolean{Dipl@AuthorIsMale}{true}
|
||||
\ifthenelse{\(\value{Dipl@CurrentThesisType}=\Dipl@BachelorThesis\) \or \(\value{Dipl@CurrentThesisType}=\Dipl@BachelorPractice\)}
|
||||
{
|
||||
\Dipl@AuthorDeclaration={\Dipl@LanguageDependentText{\Dipl@CzechBachelorMaleAuthorDeclaration}{\Dipl@SlovakBachelorMaleAuthorDeclaration}{\Dipl@EnglishBachelorAuthorDeclaration}}
|
||||
}
|
||||
{\relax}
|
||||
\ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@MasterThesis}
|
||||
{
|
||||
\Dipl@AuthorDeclaration={\Dipl@LanguageDependentText{\Dipl@CzechMasterMaleAuthorDeclaration}{\Dipl@SlovakMasterMaleAuthorDeclaration}{\Dipl@EnglishMasterAuthorDeclaration}}
|
||||
}
|
||||
{\relax}
|
||||
\ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@PhDThesis}
|
||||
{
|
||||
\Dipl@AuthorDeclaration={\Dipl@LanguageDependentText{\Dipl@CzechPhDMaleAuthorDeclaration}{\Dipl@SlovakPhDMaleAuthorDeclaration}{\Dipl@EnglishPhDAuthorDeclaration}}
|
||||
}
|
||||
{\relax}
|
||||
}
|
||||
\DeclareOption{female}
|
||||
{
|
||||
\setboolean{Dipl@AuthorIsMale}{false}
|
||||
\ifthenelse{\(\value{Dipl@CurrentThesisType}=\Dipl@BachelorThesis\) \or \(\value{Dipl@CurrentThesisType}=\Dipl@BachelorPractice\)}
|
||||
{
|
||||
\Dipl@AuthorDeclaration={\Dipl@LanguageDependentText{\Dipl@CzechBachelorFemaleAuthorDeclaration}{\Dipl@SlovakBachelorFemaleAuthorDeclaration}{\Dipl@EnglishBachelorAuthorDeclaration}}
|
||||
}
|
||||
{\relax}
|
||||
\ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@MasterThesis}
|
||||
{
|
||||
\Dipl@AuthorDeclaration={\Dipl@LanguageDependentText{\Dipl@CzechMasterFemaleAuthorDeclaration}{\Dipl@SlovakMasterFemaleAuthorDeclaration}{\Dipl@EnglishMasterAuthorDeclaration}}
|
||||
}
|
||||
{\relax}
|
||||
\ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@PhDThesis}
|
||||
{
|
||||
\Dipl@AuthorDeclaration={\Dipl@LanguageDependentText{\Dipl@CzechPhDFemaleAuthorDeclaration}{\Dipl@SlovakPhDFemaleAuthorDeclaration}{\Dipl@EnglishPhDAuthorDeclaration}}
|
||||
}
|
||||
{\relax}
|
||||
}
|
||||
\DeclareOption{ansic}{\Dipl@DefaultSourceCodeLanguage={ansic}}
|
||||
\DeclareOption{bash}{\Dipl@DefaultSourceCodeLanguage={bash}}
|
||||
\DeclareOption{cil}{\Dipl@DefaultSourceCodeLanguage={cil}}
|
||||
\DeclareOption{cpp}{\Dipl@DefaultSourceCodeLanguage={cpp}}
|
||||
\DeclareOption{csharp}{\Dipl@DefaultSourceCodeLanguage={csharp}}
|
||||
\DeclareOption{delphi}{\Dipl@DefaultSourceCodeLanguage={delphi}}
|
||||
\DeclareOption{gnuplot}{\Dipl@DefaultSourceCodeLanguage={gnuplot}}
|
||||
\DeclareOption{html}{\Dipl@DefaultSourceCodeLanguage={html}}
|
||||
\DeclareOption{java}{\Dipl@DefaultSourceCodeLanguage={java}}
|
||||
\DeclareOption{latex}{\Dipl@DefaultSourceCodeLanguage={latex}}
|
||||
\DeclareOption{lisp}{\Dipl@DefaultSourceCodeLanguage={lisp}}
|
||||
\DeclareOption{lua}{\Dipl@DefaultSourceCodeLanguage={lua}}
|
||||
\DeclareOption{make}{\Dipl@DefaultSourceCodeLanguage={make}}
|
||||
\DeclareOption{mathematica}{\Dipl@DefaultSourceCodeLanguage={mathematica}}
|
||||
\DeclareOption{matlab}{\Dipl@DefaultSourceCodeLanguage={matlab}}
|
||||
\DeclareOption{octave}{\Dipl@DefaultSourceCodeLanguage={octave}}
|
||||
\DeclareOption{pascal}{\Dipl@DefaultSourceCodeLanguage={pascal}}
|
||||
\DeclareOption{perl}{\Dipl@DefaultSourceCodeLanguage={perl}}
|
||||
\DeclareOption{php}{\Dipl@DefaultSourceCodeLanguage={php}}
|
||||
\DeclareOption{pov}{\Dipl@DefaultSourceCodeLanguage={pov}}
|
||||
\DeclareOption{prolog}{\Dipl@DefaultSourceCodeLanguage={prolog}}
|
||||
\DeclareOption{python}{\Dipl@DefaultSourceCodeLanguage={python}}
|
||||
\DeclareOption{ruby}{\Dipl@DefaultSourceCodeLanguage={ruby}}
|
||||
\DeclareOption{r}{\Dipl@DefaultSourceCodeLanguage={r}}
|
||||
\DeclareOption{sh}{\Dipl@DefaultSourceCodeLanguage={sh}}
|
||||
\DeclareOption{sql}{\Dipl@DefaultSourceCodeLanguage={sql}}
|
||||
\DeclareOption{tcltk}{\Dipl@DefaultSourceCodeLanguage={tcltk}}
|
||||
\DeclareOption{vb}{\Dipl@DefaultSourceCodeLanguage={vb}}
|
||||
\DeclareOption{vhdl}{\Dipl@DefaultSourceCodeLanguage={vhdl}}
|
||||
\DeclareOption{xml}{\Dipl@DefaultSourceCodeLanguage={xml}}
|
||||
\DeclareOption{xslt}{\Dipl@DefaultSourceCodeLanguage={xslt}}
|
||||
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
|
||||
\ProcessOptions
|
||||
\RequirePackage[\the\Dipl@BabelLanguageOptions]{babel}
|
||||
\newcommand{\ThesisAuthor}[1]{\Dipl@ThesisAuthor={#1}}
|
||||
\newcommand{\CzechThesisTitle}[1]{\ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@BachelorPractice}{\relax}{\Dipl@CzechThesisTitle={#1}}}
|
||||
\newcommand{\EnglishThesisTitle}[1]{\ifthenelse{\value{Dipl@CurrentThesisType}=\Dipl@BachelorPractice}{\relax}{\Dipl@EnglishThesisTitle={#1}}}
|
||||
\newcommand{\SubmissionDate}[1]{\Dipl@SubmissionDate={#1}}
|
||||
\newcommand{\ThesisAssignmentImagePath}[1]{\Dipl@ThesisAssignmentImagePath={#1}}
|
||||
\newcommand{\AuthorDeclarationImageFile}[1]{\Dipl@AuthorDeclarationImageFile={#1}}
|
||||
\newcommand{\CooperatingPersonsDeclarationImageFile}[1]{\Dipl@CooperatingPersonsDeclarationImageFile={#1}}
|
||||
\newcommand{\Thanks}[1]{\Dipl@Thanks={#1}}
|
||||
\newcommand{\CzechAbstract}[1]{\Dipl@CzechAbstract={#1}}
|
||||
\newcommand{\CzechKeywords}[1]{\Dipl@CzechKeywords={#1}}
|
||||
\newcommand{\EnglishAbstract}[1]{\Dipl@EnglishAbstract={#1}}
|
||||
\newcommand{\EnglishKeywords}[1]{\Dipl@EnglishKeywords={#1}}
|
||||
\newcommand{\AddAcronym}[2]{\Dipl@AddTokens{\Dipl@Acronyms}{#1&--\\}}
|
||||
\newcommand{\MakeTitlePages}
|
||||
{
|
||||
\pagestyle{empty}
|
||||
\Dipl@TitlePage
|
||||
\Dipl@ThesisAssignmentPage
|
||||
\Dipl@AuthorDeclarationPage
|
||||
\Dipl@CooperatingPersonsDeclarationPage
|
||||
% EDIT START
|
||||
%\Dipl@WriteThanksPage
|
||||
% EDIT END
|
||||
\Dipl@AbstractsKeywordsPage
|
||||
\pagestyle{plain}
|
||||
\tableofcontents\cleardoublepage
|
||||
\Dipl@WriteAcronymsPage
|
||||
% EDIT START
|
||||
\begingroup
|
||||
\let\clearpage\relax
|
||||
\listoffigures
|
||||
\listoftables
|
||||
\lstlistoflistings
|
||||
\endgroup
|
||||
\cleardoublepage
|
||||
\relax
|
||||
% EDIT END
|
||||
}
|
||||
{\theorembodyfont{\itshape}\newtheorem{definition}{\Dipl@LanguageDependentText{Definice}{Definícia}{Definition}}}
|
||||
{\theorembodyfont{\itshape}\newtheorem{theorem}{\Dipl@LanguageDependentText{Věta}{Veta}{Theorem}}}
|
||||
\newenvironment{proof}
|
||||
{\par\noindent\textbf{\proofname}}
|
||||
{\mbox{}\hspace*{5pt}\hfill\hbox{\vrule height5pt depth0pt width5pt}\par\medskip}
|
||||
{\theorembodyfont{\rmfamily}\newtheorem{remark}{\Dipl@LanguageDependentText{Poznámka}{Poznámka}{Remark}}}
|
||||
{\theoremstyle{break}\theorembodyfont{\rmfamily}\newtheorem{Dipl@examplebody}{\Dipl@LanguageDependentText{Příklad}{Príklad}{Example}}}
|
||||
\newenvironment{example}
|
||||
{\begin{Dipl@examplebody}}
|
||||
{
|
||||
\nopagebreak\mbox{}\hspace*{5pt}\hfill\hbox{\vrule height5pt depth0pt width5pt}
|
||||
\end{Dipl@examplebody}
|
||||
}
|
||||
\newcommand{\InsertFigure}[4]
|
||||
{
|
||||
\begin{figure}
|
||||
\centering
|
||||
\includegraphics[width=#2]{#1}
|
||||
\caption{#3}
|
||||
\label{#4}
|
||||
\end{figure}
|
||||
}
|
||||
\newcommand{\Dipl@TitlePage}
|
||||
{
|
||||
\begin{center}
|
||||
{\Large\the\Dipl@UniversityName\par
|
||||
\the\Dipl@FacultyName\par
|
||||
\the\Dipl@DepartmentName\par}
|
||||
\vspace{26mm}
|
||||
{\Huge\bfseries\Dipl@LanguageDependentText{\the\Dipl@CzechThesisTitle}{\the\Dipl@CzechThesisTitle}{\the\Dipl@EnglishThesisTitle}\par}
|
||||
\bigskip
|
||||
{\Huge\bfseries\Dipl@LanguageDependentText{\the\Dipl@EnglishThesisTitle}{\the\Dipl@EnglishThesisTitle}{\the\Dipl@CzechThesisTitle}\par}
|
||||
\end{center}
|
||||
\vfill
|
||||
{\Large\number\year\hfill\the\Dipl@ThesisAuthor}
|
||||
\cleardoublepage
|
||||
}
|
||||
\newcommand{\Dipl@ThesisAssignmentPage}
|
||||
{
|
||||
\ifthenelse{\equal{\the\Dipl@ThesisAssignmentImagePath}{\empty}}
|
||||
{
|
||||
% EDIT START
|
||||
%\begin{center}
|
||||
%\Large\sffamily\bfseries
|
||||
%\Dipl@LanguageDependentText{Tuto stránku nahradíte v tištěné verzi práce oficiálním zadáním Vaší diplomové či bakalářské práce.}{Tuto stránku nahradíte v tištěné verzi práce oficiálním zadáním Vaší diplomové či bakalářské práce.}{This page will be replaced by official thesis assignment in printed and electronic version of the submitted thesis.}
|
||||
%\end{center}
|
||||
% EDIT END
|
||||
}
|
||||
{
|
||||
\setcounter{Dipl@ThesisAssignmentImageCounter}{1}
|
||||
\whiledo{\value{Dipl@ThesisAssignmentImageCounter}>0}
|
||||
{
|
||||
\IfFileExists{\the\Dipl@ThesisAssignmentImagePath\theDipl@ThesisAssignmentImageCounter.jpg}
|
||||
{
|
||||
\Dipl@InsertFullPageImage{\the\Dipl@ThesisAssignmentImagePath\theDipl@ThesisAssignmentImageCounter.jpg}
|
||||
\addtocounter{Dipl@ThesisAssignmentImageCounter}{1}
|
||||
}
|
||||
{
|
||||
\setcounter{Dipl@ThesisAssignmentImageCounter}{-1}
|
||||
}
|
||||
}
|
||||
% EDIT START
|
||||
\cleardoublepage
|
||||
}
|
||||
% EDIT END
|
||||
}
|
||||
\newcommand{\Dipl@AuthorDeclarationPage}
|
||||
{
|
||||
\ifthenelse{\equal{\the\Dipl@AuthorDeclarationImageFile}{\empty}}
|
||||
{
|
||||
% EDIT START
|
||||
%\mbox{}
|
||||
%\vfill
|
||||
%\noindent
|
||||
%\the\Dipl@AuthorDeclaration
|
||||
%\par
|
||||
%\vspace{15mm}
|
||||
%\noindent\Dipl@LanguageDependentText{V Ostravě}{V Ostrave}{Ostrava,}~\the\Dipl@SubmissionDate\hfill\hbox to50mm{\dotfill}
|
||||
% EDIT END
|
||||
}
|
||||
{
|
||||
\Dipl@InsertFullPageImage{\the\Dipl@AuthorDeclarationImageFile}
|
||||
% EDIT START
|
||||
\cleardoublepage
|
||||
}
|
||||
% EDIT END
|
||||
}
|
||||
\newcommand{\Dipl@CooperatingPersonsDeclarationPage}
|
||||
{
|
||||
\ifthenelse{\boolean{Dipl@PrintCooperatingPersonsDeclaration}}
|
||||
{
|
||||
\ifthenelse{\equal{\the\Dipl@CooperatingPersonsDeclarationImageFile}{\empty}}
|
||||
{
|
||||
\mbox{}
|
||||
\vfill
|
||||
\noindent
|
||||
\the\Dipl@CooperatingPersonsDeclaration
|
||||
\par
|
||||
\vspace{15mm}
|
||||
\noindent\Dipl@LanguageDependentText{V Ostravě}{V Ostrave}{Ostrava,}~\the\Dipl@SubmissionDate\hfill\hbox to50mm{\dotfill}
|
||||
}
|
||||
{
|
||||
\Dipl@InsertFullPageImage{\the\Dipl@CooperatingPersonsDeclarationImageFile}
|
||||
}
|
||||
\cleardoublepage
|
||||
}
|
||||
{\relax}
|
||||
}
|
||||
\newcommand{\Dipl@WriteThanksPage}
|
||||
{
|
||||
\ifthenelse{\equal{\the\Dipl@Thanks}{\empty}}
|
||||
{\relax}
|
||||
{
|
||||
\mbox{}
|
||||
\vfill
|
||||
\noindent\the\Dipl@Thanks
|
||||
\cleardoublepage
|
||||
}
|
||||
}
|
||||
\newcommand{\Dipl@AbstractsKeywordsPage}
|
||||
{
|
||||
% EDIT START
|
||||
\ifthenelse{\equal{\the\Dipl@CzechAbstract}{\empty}}
|
||||
{
|
||||
\noindent\the\Dipl@Thanks
|
||||
}
|
||||
{
|
||||
\vspace*{20mm plus 0mm minus 25mm}
|
||||
% EDIT END
|
||||
\ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@SlovakLanguage}
|
||||
{
|
||||
\begin{otherlanguage}{slovak}
|
||||
\noindent\textbf{Abstrakt}
|
||||
\medbreak
|
||||
\noindent\the\Dipl@CzechAbstract
|
||||
\bigbreak
|
||||
\noindent\textbf{Kľúčové slová}:~\the\Dipl@CzechKeywords\par
|
||||
\end{otherlanguage}
|
||||
}
|
||||
{
|
||||
\begin{otherlanguage}{czech}
|
||||
\noindent\textbf{Abstrakt}
|
||||
\medbreak
|
||||
\noindent\the\Dipl@CzechAbstract
|
||||
\bigbreak
|
||||
\noindent\textbf{Klíčová slova}:~\the\Dipl@CzechKeywords\par
|
||||
\end{otherlanguage}
|
||||
}
|
||||
\vspace{30mm plus 0mm minus 30mm}
|
||||
% EDIT START
|
||||
}
|
||||
% EDIT END
|
||||
\begin{otherlanguage}{english}
|
||||
\noindent\textbf{Abstract}
|
||||
\medbreak
|
||||
\noindent\the\Dipl@EnglishAbstract
|
||||
\bigbreak
|
||||
\noindent\textbf{Keywords}:~\the\Dipl@EnglishKeywords\par
|
||||
\end{otherlanguage}
|
||||
\cleardoublepage
|
||||
}
|
||||
\newcommand{\Dipl@WriteAcronymsPage}
|
||||
{
|
||||
\ifthenelse{\equal{\the\Dipl@Acronyms}{\empty}}
|
||||
{\relax}
|
||||
{
|
||||
\Dipl@LanguageDependentText
|
||||
{
|
||||
\section*{Seznam použitých zkratek a symbolů}
|
||||
\addcontentsline{toc}{section}{Seznam použitých zkratek a symbolů}
|
||||
}
|
||||
{
|
||||
\section*{Zoznam použitých skratiek a symbolov}
|
||||
\addcontentsline{toc}{section}{Zoznam použitých skratiek a symbolov}
|
||||
}
|
||||
% EDIT START
|
||||
{
|
||||
\section*{List of Symbols and Abbreviations}
|
||||
\addcontentsline{toc}{section}{List of Symbols and Abbreviations}
|
||||
}
|
||||
\begin{longtable*}[l]{p{0.1\textwidth}cp{0.8\textwidth}}
|
||||
\the\Dipl@Acronyms
|
||||
\end{longtable*}
|
||||
% EDIT END
|
||||
\cleardoublepage
|
||||
}
|
||||
}
|
||||
\newcommand{\sectionbreak}
|
||||
{
|
||||
\cleardoublepage
|
||||
\ifthenelse{\boolean{Dipl@IsAppendix}}{\relax}{\suppressfloats}
|
||||
}
|
||||
\let\Dipl@OldAppendix\appendix
|
||||
\renewcommand{\appendix}
|
||||
{
|
||||
\Dipl@OldAppendix
|
||||
\addcontentsline{toc}{section}{\appendixname}%
|
||||
}
|
||||
\newcommand{\Dipl@LanguageDependentText}[3]{\ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@CzechLanguage}{#1}{\ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@SlovakLanguage}{#2}{#3}}}
|
||||
\newcommand{\Dipl@AddTokens}[2]{\expandafter \global#1\expandafter{\the#1#2}}
|
||||
\newcommand{\Dipl@InsertFullPageImage}[1]
|
||||
{
|
||||
\newgeometry{margin=1pt,nohead,nofoot,nomarginpar,centering}
|
||||
\thispagestyle{empty}
|
||||
\begin{center}
|
||||
\includegraphics[width=0.99\textwidth,height=0.99\textheight]{#1}
|
||||
\end{center}
|
||||
\cleardoublepage
|
||||
\restoregeometry
|
||||
}
|
||||
\newcommand{\Dipl@SetDefaultLanguage}
|
||||
{
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{ansic}}{\lstset{language=[ANSI]C}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{bash}}{\lstset{language=bash}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{cil}}{\lstset{language=CIL}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{cpp}}{\lstset{language=C++}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{csharp}}{\lstset{language=[Sharp]C}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{delphi}}{\lstset{language=Delphi}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{gnuplot}}{\lstset{language=Gnuplot}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{html}}{\lstset{language=HTML}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{java}}{\lstset{language=Java}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{latex}}{\lstset{language=[LaTeX]TeX}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{lisp}}{\lstset{language=Lisp}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{lua}}{\lstset{language=Lua}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{make}}{\lstset{language=make}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{mathematica}}{\lstset{language=Mathematica}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{matlab}}{\lstset{language=Matlab}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{octave}}{\lstset{language=Octave}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{pascal}}{\lstset{language=Pascal}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{perl}}{\lstset{language=Perl}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{php}}{\lstset{language=PHP}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{pov}}{\lstset{language=POV}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{prolog}}{\lstset{language=Prolog}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{python}}{\lstset{language=Python}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{ruby}}{\lstset{language=Ruby}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{r}}{\lstset{language=R}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{sh}}{\lstset{language=sh}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{sql}}{\lstset{language=SQL}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{tcltk}}{\lstset{language=[tk]tcl}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{vb}}{\lstset{language=[Visual]Basic}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{vhdl}}{\lstset{language=VHDL}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{xml}}{\lstset{language=XML}}{}
|
||||
\ifthenelse{\equal{\the\Dipl@DefaultSourceCodeLanguage}{xslt}}{\lstset{language=XSLT}}{}
|
||||
}
|
||||
\lstset
|
||||
{
|
||||
breaklines=true,
|
||||
tabsize=3,
|
||||
columns=flexible,
|
||||
showstringspaces=false,
|
||||
basicstyle=\ttfamily,
|
||||
keywordstyle=\color{blue},
|
||||
identifierstyle=\color[RGB]{43,145,175},
|
||||
commentstyle=\slshape\color[RGB]{0,128,0},
|
||||
stringstyle=\color[RGB]{163,21,21},
|
||||
frame=lines,
|
||||
captionpos=b,
|
||||
inputencoding=utf8,
|
||||
extendedchars=true,
|
||||
literate={á}{{\'{a}}}1 {Á}{{\'{A}}}1 {ä}{{\"{a}}}1 {Ä}{{\"{A}}}1 {č}{{\v{c}}}1 {Č}{{\v{C}}}1 {ď}{{\v{d}}}1 {Ď}{{\v{D}}}1 {ě}{{\v{e}}}1 {Ě}{{\v{E}}}1 {é}{{\'{e}}}1 {É}{{\'{E}}}1 {í}{{\'{i}}}1 {Í}{{\'{I}}}1 {ĺ}{{\'{l}}}1 {Ĺ}{{\'{L}}}1 {ľ}{{\v{l}}}1 {Ľ}{{\v{L}}}1 {ň}{{\v{n}}}1 {Ň}{{\v{N}}}1 {ó}{{\'{o}}}1 {Ó}{{\'{O}}}1 {ô}{{\^{o}}}1 {Ô}{{\^{O}}}1 {ř}{{\v{r}}}1 {Ř}{{\v{R}}}1 {ŕ}{{\'{r}}}1 {Ŕ}{{\'{R}}}1 {š}{{\v{s}}}1 {Š}{{\v{S}}}1 {ť}{{\v{t}}}1 {Ť}{{\v{T}}}1 {ú}{{\'{u}}}1 {Ú}{{\'{U}}}1 {ů}{{\r{u}}}1 {Ů}{{\r{U}}}1 {ý}{{\'{y}}}1 {Ý}{{\'{Y}}}1 {ž}{{\v{z}}}1 {Ž}{{\v{Z}}}1
|
||||
}
|
||||
\onehalfspacing
|
||||
\setcounter{tocdepth}{2}
|
||||
\setcounter{secnumdepth}{5}
|
||||
\widowpenalty=9000
|
||||
\clubpenalty=9000
|
||||
\hypersetup{unicode=true, colorlinks=true, linkcolor=black, urlcolor=black, citecolor=black}
|
||||
\regtotcounter{figure}
|
||||
\regtotcounter{table}
|
||||
\regtotcounter{lstlisting}
|
||||
\addto{\captionsczech}{\renewcommand{\refname}{Literatura}}
|
||||
\addto{\captionsslovak}{\renewcommand{\refname}{Literatúra}}
|
||||
\addto{\captionsczech}{\renewcommand{\appendixname}{Přílohy}}
|
||||
\addto{\captionsslovak}{\renewcommand{\appendixname}{Prílohy}}
|
||||
\AtBeginDocument%
|
||||
{
|
||||
\shorthandoff{-}
|
||||
\ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@CzechLanguage}
|
||||
{
|
||||
\selectlanguage{czech}
|
||||
\def\lstlistlistingname{Seznam výpisů zdrojového kódu}
|
||||
\def\lstlistingname{Výpis}
|
||||
}{}
|
||||
\ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@EnglishLanguage}
|
||||
{
|
||||
\selectlanguage{english}
|
||||
}{}
|
||||
\ifthenelse{\value{Dipl@CurrentThesisLanguage}=\Dipl@SlovakLanguage}
|
||||
{
|
||||
\selectlanguage{slovak}
|
||||
\def\lstlistlistingname{Zoznam výpisov zdrojového kódu}
|
||||
\def\lstlistingname{Výpis}
|
||||
}{}
|
||||
\renewcommand{\lstlistoflistings}{\begingroup\tocfile{\lstlistlistingname}{lol}\endgroup}
|
||||
\Dipl@SetDefaultLanguage
|
||||
}
|
||||
\endinput
|
||||
%%
|
||||
%% End of file `diploma.cls'.
|
92
Paper/Source/pdfa.xmpi
Normal file
92
Paper/Source/pdfa.xmpi
Normal file
@ -0,0 +1,92 @@
|
||||
<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d' ?>
|
||||
|
||||
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.0-c316 44.253921, Sun Oct 01 2006 17:14:39">
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<rdf:Description rdf:about=""
|
||||
xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/"
|
||||
xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#"
|
||||
xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#"
|
||||
>
|
||||
<pdfaExtension:schemas>
|
||||
<rdf:Bag>
|
||||
<rdf:li rdf:parseType="Resource">
|
||||
<pdfaSchema:namespaceURI>http://ns.adobe.com/pdfx/1.3/</pdfaSchema:namespaceURI>
|
||||
<pdfaSchema:prefix>pdfx</pdfaSchema:prefix>
|
||||
<pdfaSchema:schema>PDF/X Schema</pdfaSchema:schema>
|
||||
<pdfaSchema:property><rdf:Seq>
|
||||
<rdf:li rdf:parseType="Resource">
|
||||
<pdfaProperty:category>external</pdfaProperty:category>
|
||||
<pdfaProperty:description>URL to an online version or preprint</pdfaProperty:description>
|
||||
<pdfaProperty:name>AuthoritativeDomain</pdfaProperty:name>
|
||||
<pdfaProperty:valueType>Text</pdfaProperty:valueType>
|
||||
</rdf:li></rdf:Seq>
|
||||
</pdfaSchema:property>
|
||||
</rdf:li>
|
||||
<rdf:li rdf:parseType="Resource">
|
||||
<pdfaSchema:namespaceURI>http://www.aiim.org/pdfua/ns/id/</pdfaSchema:namespaceURI>
|
||||
<pdfaSchema:prefix>pdfuaid</pdfaSchema:prefix>
|
||||
<pdfaSchema:schema>PDF/UA ID Schema</pdfaSchema:schema>
|
||||
<pdfaSchema:property><rdf:Seq>
|
||||
<rdf:li rdf:parseType="Resource">
|
||||
<pdfaProperty:category>internal</pdfaProperty:category>
|
||||
<pdfaProperty:description>Part of PDF/UA standard</pdfaProperty:description>
|
||||
<pdfaProperty:name>part</pdfaProperty:name>
|
||||
<pdfaProperty:valueType>Integer</pdfaProperty:valueType>
|
||||
</rdf:li></rdf:Seq>
|
||||
</pdfaSchema:property>
|
||||
</rdf:li>
|
||||
<rdf:li rdf:parseType="Resource">
|
||||
<pdfaSchema:schema>PRISM metadata</pdfaSchema:schema>
|
||||
<pdfaSchema:namespaceURI>http://prismstandard.org/namespaces/basic/2.2/</pdfaSchema:namespaceURI>
|
||||
<pdfaSchema:prefix>prism</pdfaSchema:prefix>
|
||||
<pdfaSchema:property><rdf:Seq>
|
||||
<rdf:li rdf:parseType="Resource">
|
||||
<pdfaProperty:name>aggregationType</pdfaProperty:name>
|
||||
<pdfaProperty:valueType>Text</pdfaProperty:valueType>
|
||||
<pdfaProperty:category>external</pdfaProperty:category>
|
||||
<pdfaProperty:description>The type of publication. If defined, must be one of book, catalog, feed, journal, magazine, manual, newsletter, pamphlet.</pdfaProperty:description>
|
||||
</rdf:li>
|
||||
<rdf:li rdf:parseType="Resource">
|
||||
<pdfaProperty:name>url</pdfaProperty:name>
|
||||
<pdfaProperty:valueType>URL</pdfaProperty:valueType>
|
||||
<pdfaProperty:category>external</pdfaProperty:category>
|
||||
<pdfaProperty:description>URL for the article or unit of content</pdfaProperty:description>
|
||||
</rdf:li>
|
||||
</rdf:Seq></pdfaSchema:property>
|
||||
</rdf:li>
|
||||
</rdf:Bag>
|
||||
</pdfaExtension:schemas>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
|
||||
<pdf:Producer>pdfTeX</pdf:Producer>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<dc:format>application/pdf</dc:format>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="" xmlns:prism="http://prismstandard.org/namespaces/basic/2.2/">
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="" xmlns:pdfx="http://ns.adobe.com/pdfx/1.3/">
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="" xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/">
|
||||
<pdfaid:part>1</pdfaid:part>
|
||||
<pdfaid:conformance>B</pdfaid:conformance>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/">
|
||||
<xmp:CreatorTool>LaTeX with hyperref</xmp:CreatorTool>
|
||||
<xmp:ModifyDate>2020-05-11T17:18:09+02:00</xmp:ModifyDate>
|
||||
<xmp:CreateDate>2020-05-11T17:18:09+02:00</xmp:CreateDate>
|
||||
<xmp:MetadataDate>2020-05-11T17:18:09+02:00</xmp:MetadataDate>
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="" xmlns:xmpRights = "http://ns.adobe.com/xap/1.0/rights/">
|
||||
</rdf:Description>
|
||||
<rdf:Description rdf:about="" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">
|
||||
<xmpMM:DocumentID>uuid:013B98C1-626E-F468-7C97-89232CEA096B</xmpMM:DocumentID>
|
||||
<xmpMM:InstanceID>uuid:B6B96AF4-0976-FD86-D808-139E74DAED8C</xmpMM:InstanceID>
|
||||
</rdf:Description>
|
||||
</rdf:RDF>
|
||||
</x:xmpmeta>
|
||||
|
||||
|
||||
|
||||
|
||||
<?xpacket end='w'?>
|
BIN
Paper/Source/sRGBIEC1966-2.1.icm
Normal file
BIN
Paper/Source/sRGBIEC1966-2.1.icm
Normal file
Binary file not shown.
@ -1,6 +1,4 @@
|
||||
This is a WIP university project that implements libraries and applications that work with [Brotli](https://github.com/google/brotli) compression.
|
||||
|
||||
Do not consider all APIs to be stable yet. Before documentation and the APIs reach a more finished state, I would recommend **reading the rest of the README**, then exploring compressed files in BrotliBuilder, and understanding the example implementations in BrotliImpl.
|
||||
This is a university project with libraries and applications that work with [Brotli](https://github.com/google/brotli) compression.
|
||||
|
||||
| Project | Type | Framework | Description |
|
||||
| ------- | :--: | --------- | ----------- |
|
||||
@ -9,7 +7,9 @@ Do not consider all APIs to be stable yet. Before documentation and the APIs rea
|
||||
| BrotliBuilder | WinForms App | .NET Core 3.0 | GUI for analysis of Brotli-compressed files & static dictionary |
|
||||
| BrotliCalc | Console App | .NET Core 3.0 | CLI for batch file processing, analysis, and statistics |
|
||||
|
||||
A cursory glance at the [Brotli format specification](https://tools.ietf.org/html/rfc7932) is recommended before looking into this project. Classes in *BrotliLib* representing the object structure, as well as the labeled bit stream in *BrotliBuilder*, can greatly help understand the specification and the principles behind how Brotli and its decompression process works.
|
||||
A cursory glance at the [thesis](https://github.com/chylex/Brotli-Builder/blob/master/Paper/BrotliCompression.pdf) is recommended before looking into this project. Classes in *BrotliLib*, which represent the object structure, as well as the labeled bit stream in *BrotliBuilder*, can greatly help understand the specification and the principles behind how Brotli and its decompression process works.
|
||||
|
||||
The programming projects and the included [Brotli](https://github.com/google/brotli) executable are released under the [MIT license](https://github.com/chylex/Brotli-Builder/blob/master/LICENSE). The [thesis](https://github.com/chylex/Brotli-Builder/blob/master/Paper/BrotliCompression.pdf) and its source code are released under the [CC BY-SA 4.0 license](https://github.com/chylex/Brotli-Builder/tree/master/Paper/LICENSE.md).
|
||||
|
||||
# Guide to Brotli Builder
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user