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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:51:44+00:00 2026-06-09T08:51:44+00:00

I am trying to take sets of points and split them up into smaller

  • 0

I am trying to take sets of points and split them up into smaller sets. The constraint is that each set has some minimum and some maximum for each of their dimensions. I want to generate all possible combinations of these sets (let’s call this a set of sets.) When I am done, each point appears in exactly one set in each set o’ sets.

As an example, let’s say I just have data points that have two independent variables, i and j. They are:

(1,1) (1,2) (2,2) (3,1),(2,1),(2,3)

Any of these splits are fine:

(1,1)(1,2) and (2,2)(3,2)(2,1)(2,3)
First set has i < 2, second set has i >= 2.

(1,1)(3,1)(2,1) and (1,2)(2,2)(2,3)
First set has j < 2, second set has j >= 2.

(1,1)(1,2) and (2,2)(3,1)(2,1) and empty and (2,3)
First set has (i < 2, j < 3), second set has (i >= 2, j < 3)
Third set has (i < 2, j >= 3), fourth set has (i >= 2, j >= 3)

How can I generate the entire set of splits without manually iterating through every point (distinct numbers)! times?

This isn’t homework, just a program I am trying to write as part of a data-fitter.

  • 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-09T08:51:45+00:00Added an answer on June 9, 2026 at 8:51 am

    Assuming the intent is to have at most one dividing point in each dimension (thus partitioning the points into at most two sets with respect to that dimension), then:

    For each dimension, let V be the set of coordinates in that dimension. E.g., given the points (4, 10), (4, 20), (6, 10), (6, 18), (7, 3), then, for the first dimension, V is {4, 6, 7}. Iterate v through each value in the set.

    Nest those iterations, one for each dimension, so that, in the body of the innermost loop, you have a v for each dimension. We will number them, v0, v1, v2,…

    Each v forms a criterion: Either x < v or v <= x. For n dimensions, there are 2n combinations of these criteria. Each combination specifies a subset of the original points. E.g., one such subset is { p | x0 < v0 and v1 <= x1 and v2 <= x2 and… }, where the point p has coordinates (x0, x1, x2,…). So, iterate through the 2n potential subsets (some identical since they are empty), and collect them into a set. That is a partition of the original set of points.

    When you are done iterating the v’s through their values, you will have constructed each partition matching your criteria.

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

Sidebar

Related Questions

While trying to take some arguments for C. I found it really difficult to
I have a hypothetical set of data with 3 columns that has monthly profit
Trying to take a string of tags and only save the first 10 that
Ok I am trying to take a string and put it into the intent
trying to take a line of text and tokenize it into a filename and
I am trying to take a rather large CSV file and insert it into
I'm trying to take my result set and send it to the view so
I have a datagridview with 9 columns. I am simply trying take the value
trying to take this content: <div class=content>one,two,three</div> <div class=content>four,five,six</div> <div class=content>seven,eight,nine</div> and .split and
Im trying to take a link either when clicked or hover over be able

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.