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

  • Home
  • SEARCH
  • 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 8812679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:39:31+00:00 2026-06-14T03:39:31+00:00

Below is a dataset I have ID | Dept | Value 1 | 0

  • 0

Below is a dataset I have

ID | Dept | Value

1  | 0    | 50.58

2  | 0    | 75.64

3  | 0    | 32.57

4  | 0    | 187.57

5  | 0    | 354.54

How would I go about splitting this down into 2 groups of Dept 1 and Dept 2 where the break down would be based on value. i.e. where value is as close as to exactly half of the total value.

In the above example IDs 1-4 would be in group 1 with a total of 346.36 and ID 5 would be in group 2 with a total of 354.54.

  • 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-14T03:39:32+00:00Added an answer on June 14, 2026 at 3:39 am

    This is a very difficult question. There are lots of algorithms to do this “bin packing” solution (ie trying to equally split various sizes across various containers). This is essentially the same. Have a look at Fill volume algorithm for more information on it.

    The short answer, it’s not easy, and at best you can only get an approximation to the best solution.

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

Sidebar

Related Questions

I have a dataset about maximum wind speed(cm) as below: Year Jan Feb Mar
If I have a dataset in R which looks like this below: ProjName,ProjLevel,Budget Proj1,Hardware,$100
I have a dataset that looks like the one below, and I would like
I have the following sample dataset (below and/or as CSVs here: http://goo.gl/wK57T ) which
I have a dataset (called dataSet below) with a single table and some records
I have a dataset that consists of 6 tables. When I place them into
I have a dataset whose columns look like this: Consumer ID | Product ID
I have a sequential dataset which has some data formatted in columns. suppose below
I have a dataset with about 3 million rows and the following structure: PatientID|
I have some data in a dataset and I would normally select a record

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.