Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Zipping (computer science)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Definition == Let Σ be an [[Alphabet (computer science)|alphabet]], # a symbol not in Σ. Let ''x''<sub>1</sub>''x''<sub>2</sub>... ''x''<sub>|''x''|</sub>, ''y''<sub>1</sub>''y''<sub>2</sub>... ''y''<sub>|''y''|</sub>, ''z''<sub>1</sub>''z''<sub>2</sub>... ''z''<sub>|''z''|</sub>, ... be ''n'' [[word (formal language theory)|words]] (i.e. finite [[sequence]]s) of elements of Σ. Let <math>\ell</math> denote the length of the longest word, i.e. the maximum of |''x''|, |''y''|, |''z''|, ... . The zip of these words is a finite sequence of ''n''-tuples of elements of {{math|(Σ βͺ {#})}}, i.e. an element of <math>((\Sigma\cup\{\# \})^n)^*</math>: :<math> (x_1,y_1,\ldots)(x_2,y_2,\ldots)\ldots(x_\ell,y_\ell,\ldots)</math>, where for any index {{math|''i'' > {{abs|''w''}}}}, the ''w<sub>i</sub>'' is #. The zip of ''x, y, z, ...'' is denoted zip(''x, y, z, ...'') or ''x'' β ''y'' β ''z'' β ... The inverse to zip is sometimes denoted unzip. A variation of the zip operation is defined by: :<math> (x_1,y_1,\ldots)(x_2,y_2,\ldots)\ldots(x_{\underline{\ell}},y_{\underline{\ell}},\ldots)</math> where <math>\underline{\ell}</math> is the ''minimum'' length of the input words. It avoids the use of an adjoined element <math>\#</math>, but destroys information about elements of the input sequences beyond <math>\underline{\ell}</math>.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)