What Is the Maximum Possible Hamming Distance Between Two Nodes in an n-Cube?

  • Thread starter koko20
  • Start date
  • Tags
    Formula
In summary, the Hamming distance is the maximum distance between two strings at the same level in a 3-cube.
  • #1
koko20
1
0
Hey

Homework Statement



can someone please help me with this question as i have no idea how to go about it to make a formula for this question.

What is the maximum possible Hamming distance between
two nodes from level i in an n-cube?

If a node in an n-cube has i 1s and n-i 0s in its coordinate, we say that
it is from level i.

Homework Equations


i don't know what the equation is as the question is asking to come up with the equation as an answer.

The Attempt at a Solution


this is what i know:
Hamming distance = (100,011)=3
but i don't know how to make a formula for this

many thankx for your help.
koko20
 
Physics news on Phys.org
  • #2
I'm no expert on Hamming distances, but I would play around with n = 5 and n = 6 and try various values for i to see how large you can make the Hamming distance. I think the answer and how to prove it will become clear.
 
  • #3
koko20 said:
Hey

Homework Statement



can someone please help me with this question as i have no idea how to go about it to make a formula for this question.

What is the maximum possible Hamming distance between
two nodes from level i in an n-cube?

If a node in an n-cube has i 1s and n-i 0s in its coordinate, we say that
it is from level i.

Homework Equations


i don't know what the equation is as the question is asking to come up with the equation as an answer.

The Attempt at a Solution


this is what i know:
Hamming distance = (100,011)=3
but i don't know how to make a formula for this

many thankx for your help.
koko20

You have given the Hamming distance for the strings 100 and 011. These are strings in a 3-cube, but from your description, they are from different nodes, and are at different levels.

Two strings at the same level would be 101 and 011. They both have two 1's and one 0.

How does your book define Hamming distance? (You can also do a search on wikipedia for this term.)

I don't think you'll need a formula for the maximum possible Hamming distance. If you understand what this term means, you'll be able to come up with the answer.
 

FAQ: What Is the Maximum Possible Hamming Distance Between Two Nodes in an n-Cube?

How do I determine the variables to use in my formula?

The variables used in a formula should be relevant to the problem or question being addressed. They should represent the different factors that can affect the outcome of the formula.

Is there a specific order in which the variables should be arranged in the formula?

The order of the variables in a formula is usually not significant as long as they are clearly defined and consistently used throughout the formula.

How do I ensure accuracy and validity in my formula?

To ensure accuracy and validity, it is important to carefully select and define the variables used in the formula, and to test the formula with different values to see if it produces the expected results. It is also helpful to have others review and provide feedback on the formula.

Should I include units in my formula?

Yes, it is important to include units in your formula to provide context and ensure consistency in calculations. Make sure to use the appropriate units for each variable and to use consistent units throughout the formula.

Can I use existing formulas to come up with my own formula?

Yes, you can use existing formulas as a guide or starting point for creating your own formula. However, it is important to understand the underlying principles and assumptions of the existing formulas and to modify them as needed to fit your specific problem or question.

Back
Top