In view of the problem that existing ship formations often allocate collaborative detection tasks according to detection plans and lack an effective autonomous allocation mechanism,a priority task node allocation method is proposed based on network topology and preference ranking.First,the task node allocation problem is transformed into an optimization problem that maximizes the task execution benefits and minimizes the total number of participating nodes.Then,a heuristic method is used to solve the optimization problem.Finally,the method is verified through reasona-ble scenario modeling and simulation.The verification results show that this method achieves the maximum task execution benefits and the minimum number of participating nodes.The obtained real-time solution can meet the actual formation node allocation needs and has important reference value for formation task node allocation.