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 8035951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:27:47+00:00 2026-06-05T02:27:47+00:00

Related questions: Algorithm to Divide a list of numbers into 2 equal sum lists

  • 0

Related questions:

  • Algorithm to Divide a list of numbers into 2 equal sum lists
  • divide list in two parts that their sum closest to each other

Let’s assume I have a list, which contains exactly 2k elements. Now, I’m willing to split it into two parts, where each part has a length of k while trying to make the sum of the parts as equal as possible.

Quick example:
[3, 4, 4, 1, 2, 1] might be splitted to [1, 4, 3] and [1, 2, 4] and the sum difference will be 1

Now – if the parts can have arbitrary lengths, this is a variation of the Partition problem and we know that’s it’s weakly NP-Complete.

But does the restriction about splitting the list into equal parts (let’s say it’s always k and 2k) make this problem solvable in polynomial time? Any proofs to that (or a proof scheme for the fact that it’s still NP)?

  • 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-05T02:27:48+00:00Added an answer on June 5, 2026 at 2:27 am

    It is still NP complete. Proof by reduction of PP (your full variation of the Partition problem) to QPP (equal parts partition problem):

    Take an arbitrary list of length k plus additional k elements all valued as zero.

    We need to find the best performing partition in terms of PP. Let us find one using an algorithm for QPP and forget about all the additional k zero elements. Shifting zeroes around cannot affect this or any competing partition, so this is still one of the best performing unrestricted partitions of the arbitrary list of length k.

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

Sidebar

Related Questions

I've read the related questions but I cannot find one that suits my problem(or
Two UITableViewCell related questions: In my custom UITableViewCell I loop through an array (of
I've just read some related questions that came up when I typed the subject,
I often see people asking XML/XSLT related questions here that root in the inability
I've looked at several other SGen-related questions on here and either their answers don't
I have two questions related to function objects and function pointers, Question : 1
I need to find the smallest power of two that's greater or equal to
The related questions that appear after entering the title, and those that are in
SOF Related Questions Algorithm is a very good. Can anyone tell me the algorithm
I tried reading all related questions and man page too. But no luck. I

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.