Deduce the average distance of the nearest neighbor connected network

Source: Internet
Author: User

When the number of nodes tends to infinity, the average distance of the nearest neighbor connected network with an average of 4 is deduced.
Solution: Set the number of nodes to N, define% as the take-up operator, set r:= (N-1)%4 to represent (N-1)/4 remainder.
According to the nature of the nearest neighbor connection network, each node has homogeneity, so we just work out one of the nodes (set to I) and the other nodes of the sum of the distance, and then multiplied by N/2 (divided by 2 because each point pair of distance is repeated added), you can get the sum of the distance of each point pair, The average distance can be calculated by dividing the sum by the total number of point pairs.

Because the topic stipulates that the average degree of the network is 4, referring to the above figure, so the distance node I distance 1 node has 4, the distance is 2 node is 4; and so on, the furthest distance in the former N-1-r node is (n-1-r)/4; The remaining R nodes are less than 4, so the distance is calculated separately, The distance between them and node I is (N+3-R)/4
Then the sum of the distance between node I and other nodes si can be calculated by the following formula:
S_i=4x ((1+ (N-1-R)/4) x (N-1-R)/4)/2+ (n+3-r)/4XR
And the sum of the distances of all the pairs of points is equal to:
s= (ns_i)/2
And then the total number of points to T:
T=n (N-1)/2
Then the average distance d̅ is:
d̅=s/t
D̅= ((N+3-R)/8) (1-r/(N-1)) + (n (4-r)/(N-1)) R/4
Since the value range of R is [0, 3], when n tends to infinity, the upper formula can be simplified to:
Lim┬ (n→∞) d̅= (n+3+r)/8≈N/8

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.