Optimizing 2D Area with Objects - CS Graduate Student Seeking Advice

  • Thread starter Thread starter nerdjock
  • Start date Start date
  • Tags Tags
    Area Optimization
AI Thread Summary
A CS graduate student is seeking advice on optimizing a 2D grid partitioning problem where objects are unevenly distributed across cells. The goal is to create P contiguous partitions, each containing roughly the same number of objects. Suggestions include using an algorithm to recursively partition the grid into halves and adjusting until the object counts are balanced. Additionally, graph-based approaches were proposed, where connections between objects are trimmed to find optimal partitions. The discussion emphasizes the need for clarity on constraints and optimization criteria to determine the best method for solving the problem.
nerdjock
Messages
3
Reaction score
0
Hello,

I am a CS graduate student, and I have a curious optimization problem which i need to solve, and have no idea where I should be looking for techniques for solving it. I have searched much material on optimization techniques, but still am not sure which subject this falls under. I would really appreciate if someone could even point me in the right direction as to what material I should be looking at to solve this.

Allow me to explain the problem. I have a regular 2D grid of cells. Each of these cells can contain "objects" of interest. The objects are not necessarily distributed evenly throughout the grid, and often are not. I need to partition the grid into P partitions, such that each partition will contain roughly the same number of "objects". Each partition can contain a different number of grid cells, with the constraint that each partition is made up of a contiguous region of cells (i.e. the paritions cannot be a disjoint collections of grid cells).

Forgive me if I am posting in the wrong forum, as I was not sure where to post this at all! :P

Any help is much appreciated.
Thanks!
 
Mathematics news on Phys.org
Do you know the distribution of the objects over the grid, in an expectational sense?
 
Yes, I know the exact location of all of the objects before I start.

Thanks,
Mike
 
If it were me I would start with an algorithm which partitions the grid into two halves, then counts objects in each half and varies the partition until both halve have roughly equal numbers. Then apply recursively with each half grid.

I'm not clear on exactly what it is you want to optimize?
Questions I would ask:
Is there a range in the number of objects allowed in each partition?
Are there constraints on the number of partitions?
Is there a secondary quantity to be optimized, e.g. do you want partition sizes in terms of cell counts to be roughly equal or as equal as possible?
Are there a very large number of either cells or of objects which would affect which approach is computationally quicker?Another approach which comes to mind is to work with an initial network (graph) connecting all the objects (using cell positions as coordinates?) Then trim connections starting from longest to shortest which cross other connections. Also treat multiple objects in a single cell as a single node on the graph. Then the dual of this graph should be close to the partition you are trying to find.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top