Understanding Ecube Routing: XOR Logic Explained | 001 & 010 Destination

  • Thread starter Thread starter zak100
  • Start date Start date
  • Tags Tags
    Works
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
zak100
Messages
462
Reaction score
11
Homework Statement
Can't Understand Ecube Routing
Relevant Equations
It works using XOR principle
Hi,
I can’t understand the concept of Ecube routing. Our src = 001 & dest = 010. XOR of 001 and 010 = 011. So why are we going to 000 instead of 011.

Zulfi.
Ecube eg.jpg
 
Physics news on Phys.org
There is an explanation of E-cube routing and a similar figure here: http://parallelcomp.uw.hu/ch02lev1sec6.html
To get from a source vertex to a destination vertex involves two operations: finding the distance between the two vertices, and then determining a path.

In your example, the source point, ##P_s## is at 001. The destination point, ##P_d## is at 010.
001 XOR 010 = 011, which you show. Count the number of 1 bits to get the distance, which is 2. This means that to get from one point to the other, a path of two edges has to be found.

To determine the path, the first leg will be in the direction of the least significant nonzero bit in the XOR result, 011. If you think about this bit pattern as x, y, z coordinates, in that order, the least significant bit is a 1 in the z-coordinate position, so the first leg of the path goes from 000 to 001.

The next leg of the path is determined by the 1 in the middle position of 011, which is the y-coordinate, so that leg goes from 000 to 010.

Here's a drawing of the coordinate system I'm using, based on your attached image. Your starting point is below the origin, on the z-axis. To get to the destination point, you first go to the origin, and then to the point to the right of the origin, on the y-axis.
xyz.png
 
Hi Mark44, Very Good Answer. Thanks for solving my problem.

God bless you.

Zulfi.