The statement is not entirely accurate, and I will provide a counterexample to disprove it. The statement can be broken down into two parts:
- To ensure all-to-all networking with each computer passing at most O(log n) messages, the number of hops must be at least Ω(log n).
- To ensure at most O(log n) hops, each computer must pass at least Ω(log n) messages.
I will disprove the second part of the statement. Consider a network topology called the "Butterfly Network" (also known as a "Balanced Incomplete Block Design" or "BIBD" with parameters (n, 2, 1)). In a butterfly network with n computers, where n is a power of 2 (n = 2^k), each computer is connected to two other computers in a specific pattern that allows for efficient routing. The network has k stages, and each stage has n/2 links. A computer in stage i is connected to computers in stage i-1 and i+1 (modulo k).
In this network, each computer can send a message to any other computer in at most O(log n) hops (specifically, k hops). However, each computer only needs to pass O(1) messages on average, not Ω(log n) messages. Here's why:
In a butterfly network, to send a message from computer A to computer B, you can use the following routing algorithm:
- Find the stage i where A and B differ in their binary representation for the first time.
- Route the message from A to the computer in stage i that shares the same prefix as B up to stage i-1.
- Route the message from the computer in stage i to B in the remaining stages.
This algorithm ensures that each message is routed through at most k stages, i.e., O(log n) hops. Moreover, since each computer in a stage is connected to two other computers in the adjacent stages, the total number of messages passed through a computer is at most 2 per stage. Since there are k stages, each computer passes at most 2k = O(log n) messages in total. However, on average, each computer only needs to pass O(1) messages since there are n/2 links in each stage, and each link is used by at most two messages (one in each direction).
Therefore, the statement "to ensure at most O(log n) hops, each computer must pass at least Ω(log n) messages" is disproved by the butterfly network topology, where each computer only needs to pass O(1) messages on average to ensure at most O(log n) hops.
As for the first part of the statement, it is true that to ensure all-to-all networking with each computer passing at most O(log n) messages, the number of hops must be at least Ω(log n). This is because, in the worst case, a message might need to travel from one end of the network to the other, passing through Ω(log n) computers, each of which can only pass O(log n) messages. Therefore, the number of hops must be at least Ω(log n) to ensure all-to-all networking with the given constraints.