-
Cartesian Products
Hello, I’m a professional furniture maker and hobbyist programmer. I’m looking to calculate some basic paths to victory analysis on a series of x games with n players, each placing 1-n in any given game, with the ultimate number of outcomes being n!^x. I’m evaluating the best tools to enumerate the outcomes and perform the desired calculations to determine the remaining winning outcomes for a given player’s series remainder for a given x > 1. I understand how large this number can be so I’m focused on only performing these calculations for {3<=n<=8} and x=2, tho larger values of x would be fantastic. I’ve created the dataset in sqlserver for n=8 and x=2 but am still fiddling with indexing as it’s vey slow at the moment. If there’s anyone with any pointers on how to perform cartesian operations efficiently in q I’d greatly appreciate it.
Log in to reply.