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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:55:46+00:00 2026-06-13T07:55:46+00:00

I’m using hierarchical clustering to try to visualize a large set of data that

  • 0

I’m using hierarchical clustering to try to visualize a large set of data that has been flattened to two dimensions. What I want to do is create a visualization that allows me to look at the data from different heights in the hierarchy, by rendering clusters as the convex hulls of their constituent points. The toughest part of this problem is that I need an algorithm that can efficiently merge the convex hulls of pairs clusters as I move up the hierarchy. I’ve seen a lot of algorithms for calculating the convex hulls of points in O(n log n) time, but it seems as though it would be much more efficient in this case to exploit the substructure of the problem, but I’m not exactly sure how.

Edit:

For more information, the data structure is an array that begins with the original points of the clustering, and then says which points/clusters are combined to form the next cluster. So it’s kind of like a tree/pointer structure, but contained in one big array. The important part is that it’s efficient to see what the two constituent clusters are of any super cluster, but it’s not efficient to get the set of all points belonging to a cluster. So any reasonable algorithm has to work from the bottom up.

So let’s say we’re in the middle of the hierarchy someplace, and the precomputed hierarchy says that clusters A and B are merged to produce cluster C. We’re going from the bottom up, so we already have computed the convex hulls of the points in clusters A and B, so we simply need to combine them to produce the convex hull of cluster C. Cluster A’s convex hull could actually be a single point, a pair, or a full polygon. Same goes for cluster B. So there are several cases for how these should be merged to form the convex hull of cluster C, but I’d bet there’s a clever solution that would probably treat singletons and pairs the same way as polygons.

The most obvious solution would be to calculate the convex hull with the combined set of points from the convex hulls of clusters A and B. But I need to do this on a hierarchy of 100k points, so I’m wondering if there’s a more efficient way to combine the convex hulls of A and B.

Edit 2:

         /----5
    1---/    / \
   / \      / B 8
  2 A 3  C 6   /
   \ /      \ /
    4--------7

Okay, so I attempted to ASCII out an illustration of what I mean. The convex hull of cluster A is 1-2-3-4, the convex hull of B is 5-6-7-8, and the convex hull of C is 1-2-4-7-8-5. Presumably, clusters A and B contain additional points inside of their hulls, but these clearly cannot possible become part of the hull of C, so the problem is an algorithm that determines where to “splice” the hulls of clusters A and B to form the hull of C, based on the coordinates of the points. This is the inductive step of the whole process. (Eventually C will be combined with cluster D and so on, until the algorithm ends with the topmost cluster, which will have as its convex hull the convex hull of all points).

  • 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-13T07:55:47+00:00Added an answer on June 13, 2026 at 7:55 am

    There are at least two convex hull merge algorithms that I’m aware of — rotating calipers of Toussaint (section 5 of the paper) and the bridging algorithm of Preparata and Hong (see section 3 of the paper). Both of these algorithms take time linear in h = h1 + h2, where h1 and h2 are the number of hull vertices in the first and second convex hulls respectively.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I've got a string that has curly quotes in it. I'd like to replace
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a jquery bug and I've been looking for hours now, I can't
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.