ArticleslgStudy

mathematics

Multiway number partitioning

Multiway number partitioning is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Multiway number partitioning rather than just read about it. In short: In computer science, multiway number partitioning is the problem of partitioning a multiset of numbers into a fixed number of subsets, such that the sums of the subsets are as similar as possible. It was first presented by Ronald Graham in 1969 in the context of the identical-machines scheduling problem.

Key takeaways

  • Multiway number partitioning belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Multiway number partitioning to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Multiway number partitioning from memory before moving on to harder problems.

Reference excerpt

In computer science, multiway number partitioning is the problem of partitioning a multiset of numbers into a fixed number of subsets, such that the sums of the subsets are as similar as possible. It was first presented by Ronald Graham in 1969 in the context of the identical-machines scheduling problem. The problem is parametrized by a positive integer k, and called k-way number partitioning. The input to the problem is a multiset S of numbers (usually integers), whose sum is k*T. The associated decision problem is to decide whether S can be partitioned into k subsets such that the sum of each subset is exactly T. There is also an optimization problem: find a partition of S into k subsets, such that the k sums are "as near as possible". The exact optimization objective can be defined in several ways:

Minimize the difference between the largest sum and the smallest sum. This objective is common in papers about multiway number partitioning, as well as papers originating from physics applications. Minimize the largest sum. This objective is equivalent to one objective for Identical-machines scheduling. There are k identical processors, and each number in S represents the time required to complete a single-processor job. The goal is to partition the jobs among the processors such that the makespan (the finish time of the last job) is minimized. Maximize the smallest sum. This objective corresponds to the application of fair item allocation, particularly the maximin share. It also appears in voting manipulation problems, and in sequencing of maintenance actions for modular gas turbine aircraft engines. Suppose there are some k engines, which must be kept working for as long as possible. An engine needs a certain critical part in order to operate. There is a set S of parts, each of which has a different lifetime. The goal is to assign the parts to the engines, such that the shortest engine lifetime is as large as possible. These three objective functions are equivalent when k=2, but they are all different when k≥3. All these problems are NP-hard, but there are various algorithms that solve it efficiently in many cases. Some closely-related problems are:

The partition problem - a special case of multiway number partitioning in which the number of subsets is 2. The 3-partition problem - a different and harder problem, in which the number of subsets is not considered a fixed parameter, but is determined by the input (the number of sets is the number of integers divided by 3). The bin packing problem - a dual problem in which the total sum in each subset is bounded, but k is flexible; the goal is to find a partition with the smallest possible k. The optimization objectives are closely related: the optimal number of d-sized bins is at most k, iff the optimal size of a largest subset in a k-partition is at most d. The uniform-machines scheduling problem - a more general problem in which different processors may have different speeds.

Approximation algorithms There are various algorithms that obtain a guaranteed approximation of the optimal solution in polynomial time. There are different approximation algorithms for different objectives.

Minimizing the largest sum The approximation ratio in this context is the largest sum in the solution returned by the algorithm, divided by the largest sum in the optimal solution (the ratio is larger than 1). Most algorithms below were developed for identical-machines scheduling.

Greedy number partitioning (also called the Largest Processing Time in the scheduling literature) loops over the numbers, and puts each number in the set whose current sum is smallest. If the numbers are not sorted, then the runtime is O(n) and the approximation ratio is at most 2−1/k. Sorting the numbers increases the runtime to O(nlog⁡n) and improves the approximation ratio to 7/6 when k=2, and 43−13k=4k−13k in general. If the numbers are distributed uniformly in [0,1], then the approximation ratio is at most 1+O(log⁡log⁡n/n) almost surely, and 1+O(1/n) in expectation. Largest Differencing Method (also called the Karmarkar-Karp algorithm ) sorts the numbers in descending order and repeatedly replaces numbers by their differences. The runtime complexity is O(nlog⁡n). In the worst case, its approximation ratio is similar – at most 7/6 for k =2, and at most 4/3−1/3k in general. However, in the average case it performs much better than the greedy algorithm: for k =2, when numbers are distributed uniformly in [0,1], its approximation ratio is at most 1+1/nΘ(log⁡n) in expectation. It also performs better in simulation experiments. The Multifit algorithm uses binary search combined with an algorithm for bin packing . In the worst case, its makespan is at most 8/7 for k =2, and at most 13/11 in general. Several polynomial-time approximation schemes (PTAS) have been developed:

Graham presented the following algorithm. For any integer r>0, choose the r largest numbers in S and partition them optimally. Then allocate the remaining numbers arbitrarily. This algorithm has approximation ratio 1+1−1/k1+⌊r/k⌋ and it runs in time O(2rnlog⁡n). Sahni presented a PTAS that attains (1+ε)OPT in time O(n⋅(n2/ϵ)k−1). It is an FPTAS if k is fixed. For k=2, the run-time improves to O(n2/ϵ). The algorithm uses a technique called interval partitioning. Hochbaum and Shmoys presented the following algorithms, which work even when k is part of the input. For any r >0, an algorithm with approximation ratio at most (6/5+2−r ) in time O(n(r+log⁡n)). For any r >0, an algorithm with approximation ratio at most (7/6+2−r ) in time O(n(rk4+log⁡n)). For any ε>0, an algorithm with approximation ratio at most (1+ε) in time O((n/ε)(1/ε2)) . This is a PTAS.

Maximizing the smallest sum The approximation ratio in this context is the smallest sum in the solution returned by the algorithm, divided by the smallest sum in the optimal solution (the ratio is less than 1).

For greedy number partitioning, if the numbers are not sorted then the worst-case approximation ratio is 1/k. Sorting the numbers increases the approximation ratio to 5/6 when k=2, and 3k−14k−2 in general, and it is tight. Woeginger presented a PTAS that attains an approximation factor of 1−ε in time O(cεnlog⁡k), where cε a huge constant that is exponential in the required approximation factor ε. The algorithm uses Lenstra's algorithm for integer linear programming. The FPTAS of Sahni works for this objective too.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Multiway number partitioning

Start with the simplest possible case. Write down what Multiway number partitioning claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Multiway number partitioning before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Multiway number partitioning ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Multiway number partitioning

In research
Multiway number partitioning appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Multiway number partitioning in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Multiway number partitioning is common in secondary-school and first-year university syllabi. It links to neighbouring topics Number partitioning, so understanding it makes those chapters shorter.
In everyday life
Look for Multiway number partitioning outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Multiway number partitioning” →

How to study Multiway number partitioning in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Multiway number partitioning means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Multiway number partitioning out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Multiway number partitioning in simple terms?

In computer science, multiway number partitioning is the problem of partitioning a multiset of numbers into a fixed number of subsets, such that the sums of the subsets are as similar as possible. It was first presented by Ronald Graham in 1969 in the context of the identical-machines scheduling pr…

Why does Multiway number partitioning matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Multiway number partitioning?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Multiway number partitioning.

Tags

  • Number partitioning

Keep exploring