Timeline for Cartesian product of a list with itself n times
Current License: CC BY-SA 4.0
19 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
May 30, 2018 at 14:57 | history | edited | Adalynn | CC BY-SA 4.0 |
added 178 characters in body
|
May 29, 2018 at 19:51 | comment | added | Adalynn | Let us continue this discussion in chat. | |
May 29, 2018 at 19:47 | comment | added | dylnan | I don't know, two nested for loops like that is basically the definition of a cartesian product. I'm not saying you should change it though, I just think banning the built-in in this challenge is kind of unclear. | |
May 29, 2018 at 19:43 | comment | added | Adalynn |
[[dyadic_link(link, (u, v)) for u in iterable(x, make_range = True)] for v in iterable(y, make_range = True)] , that code is the relevant Jelly code. Nowhere does it calculate the cartesian product
|
|
May 29, 2018 at 19:42 | comment | added | Adalynn |
It's called table . And it can be done without generating the cartesian product.
|
|
May 29, 2018 at 19:39 | comment | added | dylnan |
Technically ×þ is an outer product. The outer product is just the cartesian product with the resulting pairs multiplied, so þ is better described as a cartesian product imo.
|
|
May 29, 2018 at 19:36 | comment | added | Adalynn |
The portion that's doing the work is ;þ .
|
|
May 29, 2018 at 19:35 | comment | added | Adalynn | Outer product | |
May 29, 2018 at 19:35 | comment | added | dylnan |
Is þ allowed if it is a cartesian product quick? If it's not €Ɱ works
|
|
May 29, 2018 at 19:32 | history | edited | Adalynn | CC BY-SA 4.0 |
Fixed
|
May 29, 2018 at 19:10 | history | edited | Adalynn | CC BY-SA 4.0 |
deleted 6 characters in body
|
May 29, 2018 at 19:04 | comment | added | Adalynn | There, I fixed it to not use the cartesian power built-in | |
May 29, 2018 at 19:03 | history | edited | Adalynn | CC BY-SA 4.0 |
deleted 12 characters in body
|
May 29, 2018 at 19:03 | comment | added | JoshM | @Zacharý sorry, the cartesian power function isn't allowed | |
May 29, 2018 at 18:49 | comment | added | Adalynn | Well, let's wait for OP then | |
May 29, 2018 at 18:45 | comment | added | Adalynn | My comment to which I brought it up is: "I'm also assuming builtins for the entire challenge are also disalowed," so I just assumed this is okay. | |
May 29, 2018 at 18:43 | comment | added | Adalynn | Look at OP's comment :p | |
May 29, 2018 at 18:40 | history | answered | Adalynn | CC BY-SA 4.0 |