With the development of distributed power sources in the distribution network, the algorithm of distribution network reconfiguration is gaining attention from experts and scholars. Its goal is to reduce the power loss during power transmission, so as to reduce the power grid loss during power transmission. And weaken the electric heating effect in the process of electric energy transmission, thus maintaining the safety of the surrounding residents. Due to the wire impedance effect, a lot of electric energy of the circuit is lost to electric heating, which is easy to cause local overheating and lead to fire. This will not only cause power loss, but also endanger the safety of surrounding residents. To address the issue, experiments on distribution grid reconstruction are performed using the enhanced particle swarm-fish swarm algorithm with the Elecgrid self-constructed dataset. Initially, low-voltage distributed power sources in parallel are connected to the circuit, thereby decreasing internal resistance and electrical heat. Then, by controlling the circuit in the system, the double separation relay adjusts the inductance and capacitance of the conductor, thus reducing the reactance length. Additionally, particle swarm particles are mutated to enable them to jump out of the local optimum, and elite fish approach is used to expand the search area. Finally, the proposed fusion algorithm is applied to the self-built data set of Elecgrid and compared with the other three algorithms. The fusion algorithm serves as the standard test system for this comparison. The active power loss of the hybrid algorithm is 63 kW at an operating voltage of 0.74 V. The loss work of the other three algorithms is 74 kW, 97 kW and 109 kW respectively. The mixed algorithm has the lowest loss among the four algorithms. The experiments are repeated for six times, and the linear fitting degrees of the four algorithms are 0.9804, 0.9527, 0.9612 and 0.9503, respectively. The experimental results show that the application of this algorithm can effectively reduce the active loss in the process of distribution network reconfiguration, thus reducing energy consumption; At the same time, it can reduce the electric heating in the process of electric energy transmission, and then prevent the occurrence of fire. There are three main contributions of this study. Firstly, the resistance in the transmission path is reduced by using this algorithm, so that the power transmission efficiency can be analyzed more accurately. Secondly, the new algorithm enriches the power safety maintenance method; Finally, the fire caused by local overheating of the line is reduced by fusion algorithm.