mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-12-25 22:46:20 +08:00
Add cartesian product algorithm.
This commit is contained in:
parent
2f329b012a
commit
02806f7efa
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)
|
||||
where a ∈ A and b ∈ B.
|
||||
|
||||
![Cartesian Product of Two Sets](https://en.wikipedia.org/wiki/Cartesian_product#/media/File:Cartesian_Product_qtl1.svg)
|
||||
![Cartesian Product of Two Sets](https://github.com/trekhleb/javascript-algorithms/blob/master/assets/cartesian-product.png)
|
||||
|
||||
Image from [Wikipedia](https://en.wikipedia.org/wiki/Cartesian_product)
|
||||
|
Loading…
Reference in New Issue
Block a user