Calculate item from n-size cross product without creating product?

SophieP
Messages
8
Reaction score
0
Hi all,

I'm trying to work out how I can get the set at specific index in a cross product without creating the whole product.

For instance:

I have array A of length 512

I also have a number that specifies how many times that array needs to be 'cross-producted' against itself.

This gives me a potentially huge set of sets. I need to be able to work out what the set is at a particular point, without iterating through the entire cross product creation procedure.

Anyone have any advice?
 
Physics news on Phys.org
What doew "cross product" mean in this context?
 
Hi Mathman,

As an example:

A = [1, 2, 3, 4]

gives:
1,1
1,2
1,3
1,4
2,1
2,2
2,3
2,4
3,1
3,2
3,3
3,4
4,1
4,2
4,3
4,4

I've just noticed that I meant to say Cartesian product, sorry!
 
Last edited:
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Back
Top