Path: utzoo!utgpu!water!watmath!clyde!bellcore!decvax!ucbvax!agate!ig!uwmcsd1!bbn!husc6!linus!philabs!pwa-b!mmintl!franka From: franka@mmintl.UUCP (Frank Adams) Newsgroups: comp.lang.c Subject: Re: (really about xor) Message-ID: <2712@mmintl.UUCP> Date: 9 Feb 88 23:22:01 GMT References: <3819@sigi.Colorado.EDU> <5080013@hpfcdc.HP.COM> <7120@brl-smoke.ARPA> <3476@ihlpf.ATT.COM> <564@cresswell.quintus.UUCP> <131@puivax.UUCP> <2701@mmintl.UUCP> <7220@brl-smoke.ARPA> Reply-To: franka@mmintl.UUCP (Frank Adams) Organization: Multimate International, E. Hartford, CT. Lines: 27 In article <7220@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: |In article <2701@mmintl.UUCP> franka@mmintl.UUCP (Frank Adams) writes: |>In article <131@puivax.UUCP> ian@puivax.UUCP (Ian Wilson) writes: |>>exclusive or being the only information-preserving logical operation. |>Equivalence also has this property. | |What in the world are you two talking about?? ... As I think I |pointed out, you could also use |differencing in a similar fashion, and I'm sure there are other |operators that would serve. The important thing is not to lose |dimensionality of the combined set of data (such as would happen |if one variable were copied onto the other). This is another way of saying what we were saying. The pairs A^B,A and A^B,B must each contain the same information as the pair A,B. Exclusive or and its complement, equivalence, are the only *logical* (i.e., Boolean) operations with this property. There are, of course, many other operations on words of more than one bit which would serve. Strictly speaking, of course, the information preserving operation is not A,B -> A^B, but A,B -> A^B,B. Another way of looking at it is to note that A -> A^K and B -> K^B are both information preserving operations for any constant K. -- Frank Adams ihnp4!philabs!pwa-b!mmintl!franka Ashton-Tate 52 Oakland Ave North E. Hartford, CT 06108