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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:38:54+00:00 2026-06-01T12:38:54+00:00

While most questions are about grouping nodes based on similarity (pidgeonholes), I would like

  • 0

While most questions are about grouping nodes based on similarity (pidgeonholes), I would like to group nodes based on simply their proximity.

I have a large, dense collection of nodes- Potentially millions. On-screen they take up some amount of space, so they can be thought of as having a size.

What I am trying to do is to group these nodes into single containing nodes efficiently, both in processing time and also in collecting more nodes per container.

My current attempts have either been too slow, or didn’t work, but are all based off of the same solution I have in mind: Calculate a lot of possible containers by taking a node and it’s surrounding nodes at random and grouping them, then picking the most effective container.

What are your ideas, not specifically in any language, but I will be using PHP or JavaScript for this.

Edit

I forgot to mention that the nodes will be streamed in, so it needs to accept unlimited nodes, putting them into containers as they come, creating new containers or even deleting them as necessary, for up to millions of containers. That would be the most ideal.

  • 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-01T12:38:56+00:00Added an answer on June 1, 2026 at 12:38 pm

    This problem is called clustering. You have a set of nodes and a function m that calculates the distance between any two nodes. You now search for clusters so that the sum of all the distances between all nodes inside each cluster is minimal.

    There are some easy algorithms to do this. Search for k-Means and k-Medoid for example. These two are very similar to your approach. A more efficient version is the CLARANS algorithm [NH94]. I didn’t find any good sources for you but here you go:

    (German) Script on clustering in general. Contains CLARANS in pseudo-code on page 45
    http://www.informatik.hu-berlin.de/forschung/gebiete/wbi/teaching/archive/ws1112/vl_datawarehousing/15_clustering_12.pdf

    English script that explains CLARANS
    http://bib.dbvis.de/uploadedFiles/232.pdf

    Paper about CLARANS
    http://www.comp.nus.edu.sg/~atung/publication/pakdd002.pdf

    The “k” in the names is the number of clusters. For those 3 algorithms you have to specify the number of clusters a priori.

    For a different approach, see the DBSCAN algorithm. You won’t need the number of clusters for this algorithm, but you have to provide some other knowledge of your nodes. The wikipedia article explains this very well. 🙂

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

Sidebar

Related Questions

I've seen a lot of questions and discussions about build vs. buy, but most
I don't think this question has asked yet (most similar questions are about extracting
Just a quick questions, since most blogs and tutorials I found are about the
While trying to answer this question I found without () (which invokes C++ most
While reset and checkout have different usages most of the time, I can't see
Most popular browsers, while rendering an image, they display it line-by-line top-to-bottom as it
While I understand the value of implementation/interface distinction, I fail to see why most
been working with symfony for a while. most tutorials describe having multiple actions in
While similiar questions have been asked, this one's focused on which is best/easiest to
While reading some papers about the Turing completeness of recurrent neural nets (for example:

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.