Code snippet
SQL ServerThe Challenge Is on: Multi-Way Number Partitioning with T-SQL and SQL CLRThe Challenge Is on: Multi-Way Number Partitioning with T-SQL and SQL CLR
The challenge is known as multi-way number partitioning. Given a set of numbers S, representing quantities or weights, and a number of desired partitions, k, divide the quantities into k partitions such that the quantities are as evenly distributed among the partitions as possible.
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.