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
Involution (mathematics)
(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!
=== Computer science === The [[XOR]] [[bitwise operation]] with a given value for one parameter is an involution on the other parameter. XOR [[Mask (computing)|masks]] in some instances were used to draw graphics on images in such a way that drawing them twice on the background reverts the background to its original state. Two special cases of this, which are also involutions, are the [[bitwise NOT]] operation which is XOR with an all-ones value, and [[stream cipher]] [[encryption]], which is an XOR with a secret [[keystream]]. This predates binary computers; practically all mechanical cipher machines implement a [[reciprocal cipher]], an involution on each typed-in letter. Instead of designing two kinds of machines, one for encrypting and one for decrypting, all the machines can be identical and can be set up (keyed) the same way.<ref>{{cite book |title=Classical Cryptology |first=Greg |last=Goebel |chapter-url=http://vc.airvectors.net/ttcode_05.html |chapter=The Mechanization of Ciphers |year=2018 }}</ref> Another involution used in computers is an order-2 bitwise permutation. For example. a color value stored as integers in the form {{math|(''R'', ''G'', ''B'')}}, could exchange {{math|''R''}} and {{math|''B''}}, resulting in the form {{math|(''B'', ''G'', ''R'')}}: {{math|1=''f''(''f''(RGB)) = RGB, ''f''(''f''(BGR)) = BGR}}.
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)