Hamming it up

The coordinates of the N = 2 d N=2^{d} vertices of an d d -dimensional cube can be written as the following strings of 0 0 's and 1 1 's: v 1 = ( 0 , 0 , , 0 , 0 ) , v 2 = ( 1 , 0 , , 0 , 0 ) , v d + 1 = ( 0 , 0 , , 0 , 1 ) , v N = ( 1 , 1 , , 1 , 1 ) . v_{1}=(0,0,\ldots,0,0), \ v_{2}=(1,0,\ldots,0,0),\\ v_{d+1}=\ldots (0,0,\ldots,0,1), v_{N}=\ldots (1,1,\ldots, 1,1). The Hamming distance between two strings of equal length is defined as the number of positions at which the corresponding bits ( 0 0 or 1 1 ) are different. For example, the Hamming distance between v 1 v_{1} and v 2 v_{2} is 1 while the Hamming distance between the vertices v 1 v_{1} and v N v_{N} is d d . The edges of hypercube connect the vertices which are one unit-distance apart (in the Hamming distance sense) are connected. For example, in two dimensions we have 4 vertices v 1 = ( 0 , 0 ) , v 2 = ( 1 , 0 ) , v 3 = ( 0 , 1 ) , and v 4 = ( 1 , 1 ) . v_{1}=(0,0),\ v_{2}=(1,0),\ v_{3}=(0,1),\quad \text{and}\quad v_{4}=(1,1). Then, as discussed above, you should connect v 1 v_{1} to v 2 v_{2} and v 3 v_{3} and v 4 v_{4} to v 2 v_{2} and v 3 v_{3} . If you view the bits 0 0 and 1 1 as the coordinates of the 4 vertices what you obtain is just a square. Clearly, in 3 dimensions, you will get a cube. If each edge of the hypercube is a wire with resistance R = 1 Ω R=1~\Omega , determine the equivalent resistance in Ohms between v 1 v_{1} and v N v_{N} in d = 7 d=7 dimensions?


The answer is 0.36.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Jatin Yadav
Oct 27, 2013

Let x x denote the no. of vertices from which current enters a junction and y y denote the no. of vertices to which current leaves from the junction.Let us consider the vertices:

V 0 : V_{0}: ( 0 , 0 , 0 , 0 , 0 , 0 , 0 ) (0,0,0,0,0,0,0) x = 0 , y = 7 \rightarrow x = 0 , y = 7

V 1 : V_{1}: 0 , 0 , 0 , 0 , 0 , 0 , 1 ) 0,0,0,0,0,0,1) x = 1 , y = 6 \rightarrow x = 1 , y = 6

V 2 : V_{2}: ( 0 , 0 , 0 , 0 , 0 , 1 , 1 ) (0,0,0,0,0,1,1) x = 2 , y = 5 \rightarrow x = 2 , y = 5

V 3 : V_{3}: ( 0 , 0 , 0 , 0 , 1 , 1 , 1 ) (0,0,0,0,1,1,1) x = 3 , y = 4 \rightarrow x = 3 , y = 4

V 4 : V_{4}: ( 0 , 0 , 0 , 1 , 1 , 1 , 1 ) (0,0,0,1,1,1,1) x = 4 , y = 3 \rightarrow x = 4 , y = 3

V 5 : V_{5}: ( 0 , 0 , 1 , 1 , 1 , 1 , 1 ) (0,0,1,1,1,1,1) x = 5 , y = 2 \rightarrow x = 5 , y = 2

V 6 : V_{6}: ( 0 , 1 , 1 , 1 , 1 , 1 , 1 ) (0,1,1,1,1,1,1) x = 6 , y = 1 \rightarrow x = 6 , y = 1

V 7 : V_{7}: 1 , 1 , 1 , 1 , 1 , 1 , 1 ) 1,1,1,1,1,1,1) x = 7 , y = 0 \rightarrow x = 7 , y = 0

Now , due to symmetry , the current coming to a junction from each wire would be same, and also the current going out to each wire would be same.

Let us introduce I 0 I_{0} current at V 0 V_{0} .

At V r V_{r} , x = r , y = 7 r x = r , y = 7-r .

Let I r I_{r} denote the current incoming from 1 wire at V r V_{r}

Clearly , using kirchoff's current law,

x I r = y I r + 1 xI_{r} = yI_{r + 1}

r I r = ( 7 r ) I r + 1 I r + 1 = r I r 7 r \Rightarrow rI_{r} = (7 - r)I_{r + 1} \Rightarrow \boxed{I_{r + 1} = \frac{rI_{r}}{7 - r}}

Now , I 1 = I 0 7 I_{1} = \frac{I_{0}}{7} , we can evaluate all of I 1 , I 2 , I_{1} , I_{2} , \dots ,and I 7 I_{7} .

Now, Δ V V 0 V 7 = I 1 R + I 2 R + + I 7 R = I 0 R e f f \Delta V_{V_{0} \rightarrow V_{7}} = I_{1}R + I_{2}R + \dots + I_{7}R = I_{0}R_{eff} .

Hence R e f f = I 1 + I 2 + + I 7 I 0 R = 0.36 Ω R_{eff} = \frac{I_{1} + I_{2} + \dots + I_{7}}{I_{0}} R = \boxed{0.36 \Omega}

nice approach.

Tejas Kasetty - 7 years, 7 months ago

beautifully done. Kudos

Nguyen Ly - 7 years, 7 months ago

Suppose when we put a voltage difference between v 1 v_1 and v N v_N , the vertices whose coordinates have the same number of bit 1s will have the same voltage.

Therefore, we can group points whose voltages are the same as one point, 2 d 2^d points will become d + 1 d+1 points. We can name these points by the number of bit 1s in their coordinates, so they are 0 , 1 , 2 , . . . , d 0,1,2,...,d .

It is obvious that point k k only connect directly with points k 1 k-1 and k + 1 k+1 but we need to find out how many wires with resistance are between them.

From the given condition, we know that there are ( d k ) d \choose k vertices which have k bit 1s in coordinate and each of these vertices will connect directly to ( d k ) (d-k) vertices which have k + 1 k+1 bit 1s in coordinate. Therefore, there are ( d k ) ( d k ) (d-k) {d \choose k} wires with resistance between point k k and k + 1 k+1 .

Therefore, the equivalent resistance between v 1 v_1 and v N v_N is r = k = 0 d 1 R ( d k ) ( d k ) r=\displaystyle \sum_{k=0}^{d-1} \frac{R}{(d-k) {d \choose k}} .

With d = 7 d=7 and R = 1 Ω R=1 \Omega , we obtain that r = 0.36 Ω r=0.36 \Omega

interesting

from: http://arxiv.org/pdf/0904.1757

"Reasoning as before, we observe that all the vertices at a given distance from one of the endpoints of the long diagonal are again at the same potential, so the network is equivalent to a series connection of parallel connections of resistors. Since there are n + 1 distances (0, 1, . . . , n) from one endpoint, there are n parallel connections. There are binom(n,k) vertices at distance k from the endpoint, and for 0 ≤ k ≤ n − 1, each of these vertices is connected by n − k resistors to vertices at distance k + 1."

Jindus Mayad - 7 years, 7 months ago

Log in to reply

it looks this solution is lifted from given pdf file

Jindus Mayad - 7 years, 7 months ago

Log in to reply

It might look similar but actually I have never read something like this. My approach is to group vertices which have the same voltage as a point and calculate the number of wires between 2 consecutive points.

Đinh Ngọc Hải - 7 years, 7 months ago
Mark Hennings
Oct 29, 2013

Work with the n n -dimensional hypercube, so that N = 2 n N = 2^n . By symmetry, all the vertices a given Hamming distance k k from v 1 v_1 are at the same potential V k V_k . A vertex at Hamming distance k k from v 1 v_1 is connected to k k vertices at Hamming distance k 1 k-1 from v 1 v_1 , and connected to n k n-k vertices at Hamming distance k + 1 k+1 from v 1 v_1 . Kirchoff's Law tells us that k ( V k 1 V k ) + ( n k ) ( V k + 1 V k ) = 0 1 k n 1 k\big(V_{k-1} - V_k\big) + (n-k)\big(V_{k+1} - V_k\big) \; = \; 0 \qquad 1 \le k \le n-1 from which we get ( n 1 k ) ( V k + 1 V k ) = ( n 1 k 1 ) ( V k V k 1 ) 1 k n 1 {n-1 \choose k}\big(V_{k+1} - V_k\big) \; = \; {n-1 \choose k-1}\big(V_k - V_{k-1}\big) \qquad 1 \le k \le n-1 Thus we deduce that there exists a constant α \alpha such that ( n 1 k ) ( V k + 1 V k ) = α 0 k n 1 {n-1 \choose k}\big(V_{k+1} - V_k\big) \; = \; \alpha \qquad 0 \le k \le n-1 The potential difference between v 1 v_1 and v N v_N is V = V n V 0 = α k = 0 n 1 ( n 1 k ) 1 V \; = \; V_n - V_0 \; = \; \alpha\sum_{k=0}^{n-1} {n-1 \choose k}^{-1} while the current in the circuit (considering Kirchoff's Law at v 1 v_1 ) is I = n ( V 1 V 0 ) = n α I \; = \; n(V_1 - V_0) \; = \; n\alpha and hence the effective resistance of the circuit is R = 1 n k = 0 n 1 ( n 1 k ) 1 R \; = \; \frac{1}{n}\sum_{k=0}^{n-1}{n-1 \choose k}^{-1} Putting n = 7 n=7 gives R = 0.3595 R = 0.3595 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...