N-th permutation algorithm for use in brute force bin packaging parallelization (containing the same item more than once)
问题 I've written a small open-source 3D bin packaging library with a brute-force packager for use in real-time calculation of web shop order shipping cost. Many orders contain a small number of items, making brute-force a fair supplement to other algorithms. As orders can contain the same item more than once (i.e. repeated / duplicate / identical elements), I've gone with the lexographical permutations algorithm. Now I'm attempting to add some paralellization / multi-threading and have found a