Pair and Tuple
A binary operation, ab, depends on the ordered pair (a, b) and so (ab)c (where the parentheses here mean first operate on the ordered pair (a, b) and then operate on the result of that using the ordered pair ((ab), c)) depends in general on the ordered pair ((a, b), c). Thus, for the general, non-associative case, binary operations can be represented with binary trees.
However:
- If the operation is associative, (ab)c = a(bc), then the value depends only on the tuple (a, b, c).
- If the operation is commutative, ab = ba, then the value depends only on { {a, b}, c}, where braces indicate multisets.
- If the operation is both associative and commutative then the value depends only on the multiset {a, b, c}.
- If the operation is both associative and commutative and idempotent, aa = a, then the value depends only on the set {a, b, c}.
Read more about this topic: Binary Operation
Famous quotes containing the word pair:
“Firm-style bean curd insoles cushion feet, absorb perspiration and provide more protein than meat or fish innersoles of twice the weight. Tofu compresses with use, becoming more pungent and flavorful. May be removed when not in use to dry or marinate. Innersoles are ready to eat after 1,200 miles of wear. Each pair provides adult protein requirement for 2 meals. Insoles are sized large to allow for snacks. Recipe booklet included.”
—Alfred Gingold, U.S. humorist. Items From Our Catalogue, Tofu Innersoles, Avon Books (1982)