I have 17 elements, and I want to put them in 3 sets. This makes 2 sets with 6 elements, and 1 set with 5 elements. Now I want to find an algorithm to partition n elements in k sets.(adsbygoogle = window.adsbygoogle || []).push({});

Can anyone give me an algorithm, or a math expression for me to implement in a algorithm?

Thanks

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Algorithm or expression to put n elements in k sets

Loading...

Similar Threads - Algorithm expression elements | Date |
---|---|

B Non-algorithmic math | Oct 13, 2017 |

I Algorithm to create a composite score | Sep 12, 2017 |

I Arm reaching algorithm determine angles | Aug 14, 2017 |

A Optimization constraints formulation for GA | Jun 28, 2017 |

Simplest algorithm for computing the resultant of a boolean expression? | Nov 21, 2011 |

**Physics Forums - The Fusion of Science and Community**