Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8217569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:30:07+00:00 2026-06-07T12:30:07+00:00

Suppose that there are n objects with different weights. We need to divide all

  • 0

Suppose that there are n objects with different weights. We need to divide all objects in m sets. Let Si be sum of ith set, 1<= i <=m. Smax be maximum of all Si‘s. What can be the algorithm to minimize Smax over all possible divisions of n objects in m sets.

I have seen some algo which used Hungarian algorithm and bipartite graphs but could not understand that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:30:08+00:00Added an answer on June 7, 2026 at 12:30 pm

    The problem you’re asking about is NP-Complete, as it can be reduced to the Partition Problem (and the 3-parition problem). To see why, suppose m = 2 and that the sum of weights of all objects is S. If the first set’s sum is S1, then obviously the the other set’s sum S2 = S – S1. Let’s prove that if we can make S1 and S2 equal (the solution to partition problem), then this is the optimal solution for your problem.

    If S1 = S2 wasn’t optimal, that means that there exists some way of partitioning such that the first set has a sum S1‘ that would yield a better solution (a smaller maximum number). Let’s consider two cases:

    • S1‘ < S1. In that case, –S1‘ > –S1 and thus S – S1‘ > S – S1. Therfore the new maximum is larger (worse) than in the case of equal sums.
    • S1‘ > S1. In this case, it immediately follows that the maximum in the case of the new partition is larger (worse) than in the case of equal sums.

    Similarly, you can show how you can reduce you problem to the 3-paritition problem. However, there are some heuristics that can help in solving the partition problem, you can read about them in the Wikipedia pages I linked to earlier; I doubt there’s anything better than brute force for your more-generic version (unless there’s some kind of restriction you didn’t mention).

    Hope that helped you in any manner!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose that we have previously instantiated three objects A, B, C from class D
Suppose that there're two types of packet in the chatting server. Those two packets
Suppose there's a top-secret list (inherits its permissions from its parent) that contains records
Suppose i have one folder and inside that another two files are there .
Suppose that I have those three files: a.h //a.h header #include <stdio.h> int int_variable;
Suppose that I have n points (x,y1),(x2,y2),.....(xn,yn) my aim is to connect these points
There is a following function that is supposed to make a comparison between 2
I have a script that is supposed to sit there, happily running in a
Suppose that I have a database with student information: {'student_name' : 'Alen', 'subjects' :
To be specific let me illustrate the question with Spring http-remoting example. Suppose we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.