Abstract:Wireless Sensor Network (WSN) brings together many cutting-edge technologies that have become more and more concerned by the academic community. In the study of DV-Hop localization algorithm,the localization algorithm has the advantages of the precisions for the estimation of the average jump distance. In general, the DV-Hop localization algorithm only considers the average jump distance estimated by several anchor nodes which leads to the increase of the positioning errors. In order to increase the accuracy of node location a weighted algorithm is proposed on the basis of DV-Hop localization algorithm. Firstly the average spacing of the whole network is obtained and then the weighted average method is used to replace the average processing method of the general algorithm. Finally, the MATLAB simulation experiment shows that in the same environment, the weighted average method can effectively reduce the positioning error caused by the averaging method, and increase the accuracy of localization