Table of Contents

Cartesian product

Return to Math, Math topics

Definition

Cartesian product

Definition and Notation

In set theory, the Cartesian product of two sets A and B, denoted A × B, is the set of all ordered pairs (a, b) where a is an element of A and b is an element of B. In other words, it's a way to combine the elements of two sets to create pairs where the order of the elements matters. For example, if A = {1, 2} and B = {x, y}, then A × B = {(1, x), (1, y), (2, x), (2, y)}.

Applications and Generalizations

The Cartesian product is a fundamental concept in mathematics with applications in various fields. It's used in relational databases to represent relationships between entities, in computer science for defining data structures, and in geometry for describing coordinates in multi-dimensional spaces. The concept can be generalized to the Cartesian product of more than two sets, where the result is a set of ordered tuples. For instance, the Cartesian product of three sets A, B, and C would be A × B × C, containing all ordered triples (a, b, c) where a is in A, b is in B, and c is in C.


Snippet from Wikipedia: Cartesian product

In mathematics, specifically set theory, the Cartesian product of two sets A and B, denoted A × B, is the set of all ordered pairs (a, b) where a is in A and b is in B. In terms of set-builder notation, that is A × B = { ( a , b ) a A    and    b B } . {\displaystyle A\times B=\{(a,b)\mid a\in A\ {\mbox{ and }}\ b\in B\}.}

A table can be created by taking the Cartesian product of a set of rows and a set of columns. If the Cartesian product rows × columns is taken, the cells of the table contain ordered pairs of the form (row value, column value).

One can similarly define the Cartesian product of n sets, also known as an n-fold Cartesian product, which can be represented by an n-dimensional array, where each element is an n-tuple. An ordered pair is a 2-tuple or couple. More generally still, one can define the Cartesian product of an indexed family of sets.

The Cartesian product is named after René Descartes, whose formulation of analytic geometry gave rise to the concept, which is further generalized in terms of direct product.


Detailed Summary

Cartesian product

Definition and Notation

In set theory, the Cartesian product of two sets A and B, denoted A × B, is the set of all ordered pairs (a, b) where a is an element of A and b is an element of B. In simpler terms, it combines every element from one set with every element from the other, forming unique pairs.

Historical Origin

The concept of the Cartesian product is named after René Descartes, a French philosopher and mathematician of the 17th-century. His work in analytic geometry laid the foundation for the development of the Cartesian coordinate system and, by extension, the notion of the Cartesian product.

Formal Representation

Formally, the Cartesian product of two sets A and B is defined as:

A × B = {(a, b) | a ∈ A and b ∈ B}

where:

Python Implementation

In Python, the Itertools module provides the `product` function for generating Cartesian products:

```python from itertools import product

A = [1, 2] B = ['x', 'y']

cartesian_product = list(product(A, B)) print(cartesian_product) # Output: [(1, 'x'), (1, 'y'), (2, 'x'), (2, 'y')] ```

Cardinality

The cardinality (number of elements) of the Cartesian product of two finite sets is the product of their individual cardinalities. If A has m elements and B has n elements, then A × B has m * n elements.

Generalization to Multiple Sets

The Cartesian product can be extended to more than two sets. The Cartesian product of n sets A1, A2, …, An is denoted as A1 × A2 × … × An and consists of all ordered n-tuples (a1, a2, …, an) where ai ∈ Ai for each i.

Applications in Mathematics

The Cartesian product is fundamental in various mathematical fields. It is used to define:

Applications in Computer Science

In computer science, the Cartesian product is used in:

Applications in Other Fields

The concept of Cartesian product also finds applications in:

Conclusion

The Cartesian product is a powerful and versatile concept with widespread applications in various fields. It provides a systematic way to combine elements from different sets, enabling the exploration of relationships, structures, and possibilities in a wide range of contexts. (GgGm)

Cartesian product Glossary

Return to Cartesian product, Cartesian product Glossary

Cartesian product Glossary:

Ordered Pair (Couple Ordonné) A pair of elements (a, b) where the order in which the elements appear is significant.

Set (Ensemble) A well-defined collection of distinct objects, considered as an object in its own right.

Element (Élément) An object that is a member of a set.

Cartesian Product (Produit Cartésien) The set of all ordered pairs (a, b), where a is in A and b is in B, given two sets A and B.

Tuple A finite ordered list (sequence) of elements.

Cardinality The number of elements in a finite set.

Relation A subset of the Cartesian product of two sets. It defines a relationship between elements of the sets.

Function A specific type of relation where each element in the domain is associated with exactly one element in the codomain.

Domain (Domaine) The set of all possible input values (first coordinates) of a function.

Codomain The set of all possible output values (second coordinates) of a function.

Binary Relation (Relation binaire) A relation that associates elements from one set to elements in another set.

Arity (Arité) The number of arguments or operands taken by a function or operation.

Ordered n-tuple (n-uplet ordonné) A generalization of an ordered pair to an ordered list of n elements.

Power Set (Ensemble des parties) The set of all subsets of a given set.

Projection An operation that creates a new set by selecting specific components from the elements of an existing set.

Mapping (Application) A synonym for “function,” emphasizing the idea of associating elements between sets.

Cross Product (Produit vectoriel) In linear algebra, the cross product is a binary operation on two vectors in three-dimensional space that results in another vector perpendicular to both.

Direct Product (Produit direct) A generalization of the Cartesian product to algebraic structures like groups or vector spaces.

Disjoint Sets (Ensembles disjoints) Sets that have no elements in common.

Intersection (Intersection ensembliste) The set of elements that are common to two or more sets.

Empty Set (Ensemble vide) A set that contains no elements.

Finite Set (Ensemble fini) A set that has a finite number of elements.

Infinite Set (Ensemble infini) A set that has an infinite number of elements.

Subset (Sous-ensemble) A set A is a subset of set B if all elements of A are also elements of B.

Superset (Sur-ensemble) A set B is a superset of set A if all elements of A are also elements of B.

Union (Union) The set of all elements that are in either of two or more sets.

Relative Complement (Complémentaire) The set of elements in one set that are not in another set.

Symmetric Difference (Différence symétrique) The set of elements that are in either of two sets, but not in both.

Ordered Pair Notation The standard way of writing ordered pairs using parentheses and commas, e.g., (a, b).

Venn Diagram (Diagramme de Venn) A graphical representation of sets and their relationships, using overlapping circles or other shapes.

Equality of sets Two sets are equal if and only if they have exactly the same elements.

Set-builder notation (compréhension) A notation for defining a set by describing the properties that its elements must satisfy.

Family of sets (Famille d'ensembles) A collection of sets, often indexed by another set.

Partition of a set (Partition d'un ensemble) A division of a set into non-empty subsets such that each element belongs to exactly one subset.

Cartesian Square (Carré cartésien) The Cartesian product of a set with itself (A × A).

n-ary Cartesian Product (Produit cartésien n-aire) The Cartesian product of n sets.

Countable set (Ensemble dénombrable) A set that can be put into a one-to-one correspondence with the set of natural numbers.

Uncountable set (Ensemble non dénombrable) A set that is not countable.

Axiom of Choice (Axiome du choix) An axiom of set theory that allows for the selection of one element from each set in a collection of non-empty sets.

Continuum Hypothesis (Hypothèse du continu) A hypothesis in set theory that states there is no set whose cardinality is strictly between that of the integers and the real numbers.


Research It More

Research:

Fair Use Sources

Fair Use Sources:

Math: Outline of mathematics, Mathematics research, Mathematical anxiety, Pythagorean Theorem, Scientific Notation, Algebra (Pre-algebra, Elementary algebra, Abstract algebra, Linear algebra, Universal algebra), Arithmetic (Essence of arithmetic, Elementary arithmetic, Decimal arithmetic, Decimal point, numeral system, Place value, Face value), Applied mathematics, Binary operation, Classical mathematics, Control theory, Cryptography, Definitions of mathematics, Discrete mathematics (Outline of discrete mathematics, Combinatorics), Dynamical systems, Engineering mathematics, Financial mathematics, Fluid mechanics (Mathematical fluid dynamics), Foundations of mathematics, Fudge (Mathematical fudge, Renormalization), Game theory, Glossary of areas of mathematics, Graph theory, Graph operations, Information theory, Language of mathematics, Mathematical economics, Mathematical logic (Model theory, Proof theory, Set theory, Type theory, Recursion theory, Theory of Computation, List of logic symbols), Mathematical optimization, Mathematician, Modulo, Mathematical notation (List of logic symbols, Notation in probability and statistics, Physical constants, Mathematical alphanumeric symbols, ISO 31-11), Numerical analysis, Operations research, Philosophy of mathematics, Probability (Outline of probability), Statistics, Mathematical structure, Ternary operation, Unary operation, Variable (mathematics), Glossary, Bibliography (Math for Data Science and DataOps, Math for Machine Learning and MLOps, Math for Programmers and Software Engineering), Courses, Mathematics GitHub. (navbar_math - see also navbar_variables)


© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.