mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-06 17:44:08 +08:00
Add cartesian product algorithm.
This commit is contained in:
BIN
assets/cartesian-product.png
Normal file
BIN
assets/cartesian-product.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
@ -5,4 +5,6 @@ In set theory a Cartesian product is a mathematical operation that returns a set
|
|||||||
the Cartesian product A × B is the set of all ordered pairs (a, b)
|
the Cartesian product A × B is the set of all ordered pairs (a, b)
|
||||||
where a ∈ A and b ∈ B.
|
where a ∈ A and b ∈ B.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
Image from [Wikipedia](https://en.wikipedia.org/wiki/Cartesian_product)
|
||||||
|
Reference in New Issue
Block a user