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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:57:34+00:00 2026-05-27T00:57:34+00:00

This is a homework problem and I’m facing some difficulties to understand it. The

  • 0

This is a homework problem and I’m facing some difficulties to understand it. The home work question is

    Cluster the following bitsequences using hierarchical clustering. If d(:,:) defines the
distace between two bitsequences a and b, d(a,b) = Hamming-Distance(a,b) . If C1 and C2 are 
two clusters, the distance between C1 and C2 is d(C1,C2) = 1/|C1||C2| Summation(a belongs C1, b belongs C2) d(a,b). 
Show the cluster hierarchchy with all the intermediate steps.

1   10001011
2   11010111
3   00101010
4   00011110
5   10101110
6   11100001

I read in a book that initially I have to consider all of them as clusters and then start merging the closest ones. A new cluster will be formed. Now I have to find the closest cluster to this newly formed cluster by computing the distance between this new cluster and other clusters by averaging the distance between each element in both clusters as said in the question.

My solution:
I will find hamming distance between all the pairs and choose the one with least one which is C3 and C5 (hamming distance is 2). Now this can can be merged into a new cluster.

My concern is what is exactly meant by merging here? How do I do it?
Or simply I keep them as they are and name it a new cluster?

And how do I find the average distance between each element of the new cluster with other clusters?

Also to calculate average the formula given says to divide by |C1| and |C2|. So, does it mean I have to divide here by the number of elements (which is 8 per one group times the cluster it gets merged into?)

Any help is greatly appreciated.
Thank you.

  • 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-05-27T00:57:35+00:00Added an answer on May 27, 2026 at 12:57 am

    It sounds as though you want bottom-up clusters. The idea is, start with some singleton sets

    {1} {2} {3} {4} {5} {6}
    

    While there are two or more sets, select the closest pair and replace them by their union. I’ll do this somewhat arbitrarily.

    {1, 2} {3} {4} {5} {6}
    {1, 2} {3, 6} {4} {5}
    {1, 2} {3, 4, 6} {5}
    {1, 2, 5} {3, 4, 6}
    {1, 2, 3, 4, 5, 6}
    

    The hierarchical clustering consists of all of the sets that ever existed in the algorithm. They can be visualized as a tree where, if X is a descendant of Y, then X is a subset of Y.

               {1,2,3,4,5,6}
               /           \
              /             \
             /               \
         {1,2,5}           {3,4,6}
         /     \           /     \
      {1,2}     \       {3,6}     \
      /   \      \      /   \      \
    {1}   {2}    {5}  {3}   {6}    {4}
    

    The average distance is computed with the formula given; |C1| and |C2| are the number of sequences in clusters 1 and 2 respectively. The length of the sequences is relevant only in computing the Hamming distance for a single pair. The distance between clusters {1, 2} and {3, 4, 6}, for example, is (d(1,3)+d(1,4)+d(1,6)+d(2,3)+d(2,4)+d(2,6))/6.

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

Sidebar

Related Questions

I'm trying to solve this problem, its not a homework question, its just code
This is a question for a homework problem that I cant figure out: Question
This is a homework problem that I have. I have been doing some research
The answer to this sample homework problem is "1,000,000", but I do not understand
This is not a homework problem, though it is a work problem. Where months
(This is no homework and no work issue. It's just my personal interest/occupation and
I have this homework problem where I need to use regex to remove every
This is not a homework problem. I am only going over a freely available
I needed some help/pointers on a homework problem. I would really appreciate it if
I've been thinking about this homework question for a bit now. Given an number

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.