Binary operation

Binary operation

In mathematics, a binary operation is a calculation involving two operands, in other words, an operation whose arity is two. Examples include the familiar arithmetic operations of addition, subtraction, multiplication and division. Let A, B and C be three sets. Then a relation * from A X B --> C is a binary relation.This is a general binary relation. Usually binary relations defined on a single set is of interest.

More precisely, a binary operation on a set S is a binary relation that maps elements of the Cartesian product S×S to S: Such a binary operation from SxS-->S is called a CLOSED binary operation on S

\,f \colon S \times S \rightarrow S.

If f is not a function, but is instead a partial function, it is called a partial operation. For instance, division of real numbers is a partial function, because one can't divide by zero: a / 0 is not defined for any real a. Note however that both in algebra and model theory the binary operations considered are defined on the whole of S \times S .

Sometimes, especially in computer science, the term is used for any binary function. That f takes values in the same set S that provides its arguments is the property of closure.

Binary operations are the keystone of algebraic structures studied in abstract algebra: they form part of groups, monoids, semigroups, rings, and more. Most generally, a magma is a set together with any binary operation defined on it.

Many binary operations of interest in both algebra and formal logic are commutative or associative. Many also have identity elements and inverse elements. Typical examples of binary operations are the addition (+) and multiplication (×) of numbers and matrices as well as composition of functions on a single set.

An example of an operation that is not commutative is subtraction (−). Examples of partial operations that are not commutative include division (/), exponentiation(^), and tetration(↑↑).

Binary operations are often written using infix notation such as a * b, a + b, a \cdot b or (by juxtaposition with no symbol) ab rather than by functional notation of the form f(a,b). Powers are usually also written without operator, but with the second argument as superscript.

Binary operations sometimes use prefix or postfix notation; this dispenses with parentheses. Prefix notation is also called Polish notation; postfix notation, also called reverse Polish notation, is probably more often encountered.

Contents

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}. but it is not in use in our daily life.

External binary operations

An external binary operation is a binary function from K × S to S. This differs from a binary operation in the strict sense in that K need not be S; its elements come from outside.

An example of an external binary operation is scalar multiplication in linear algebra. Here K is a field and S is a vector space over that field.

An external binary operation may alternatively be viewed as a action; K is acting on S.

Note that the dot product of two vectors is not a binary operation, external or otherwise, as it maps from S× S to K, where K is a field and S is a vector space over K.

References

See also


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • binary operation — loginė operacija statusas T sritis informatika apibrėžtis ↑Operacija, atliekama su ↑loginėmis reikšmėmis, ir kurios rezultatas yra loginė reikšmė. Pagrindinės loginės operacijos: ↑inversija, ↑konjunkcija, ↑disjunkcija. Loginės operacijos yra… …   Enciklopedinis kompiuterijos žodynas

  • binary operation — dvejetainė operacija statusas T sritis automatika atitikmenys: angl. binary operation vok. Binäroperation, f rus. двоичная операция, f pranc. opération binaire, f …   Automatikos terminų žodynas

  • binary operation — A function of two arguments. Addition is a binary operation, i.e. x + y is a function from the two numbers x, y, to a third number, which is their sum …   Philosophy dictionary

  • binary operation — dvivietė operacija statusas T sritis informatika apibrėžtis ↑Operacija, turinti du ↑operandus. Operacijos ženklas paprastai rašomas tarp operandų, pavyzdžiui, a+b, a/a, a{{b. Dar vartojama binarinė operacija. atitikmenys: angl. binary operation… …   Enciklopedinis kompiuterijos žodynas

  • binary operation — noun an operation that follows the rules of Boolean algebra; each operand and the result take one of two values • Syn: ↑boolean operation, ↑binary arithmetic operation • Hypernyms: ↑operation …   Useful english dictionary

  • binary operation — a mathematical operation in which two elements are combined to yield a single result: Addition and multiplication are binary operations on the set of real numbers. Cf. ternary operation, unary operation. [1930 35] * * * …   Universalium

  • binary operation — noun An operation taking two operands. The four rules of addition, subtraction, multiplication and division are examples of binary operations. Syn: dyadic operation …   Wiktionary

  • binary operation — double operation …   English contemporary dictionary

  • Iterated binary operation — In mathematics, an iterated binary operation is an extension of a binary operation on a set S to a function on finite sequences of elements of S through repeated application. Common examples include the extension of the addition operation to the… …   Wikipedia

  • Operation — may refer to: Scientific operation Surgery, or operation An operation in mathematics: Unary operation Binary operation Arity In language, an operation is a word which represents a function (or instruction), rather than a term or name In computer… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”