The reputation score of a node ni can be updated based on its performance in completing tasks, denoted as Pi, and its historical reliability, denoted as Hi:
Ri(new)=γ⋅Pi+δ⋅Hi
Where γ and δ are weight factors for current performance and historical reliability, respectively, and Ri(new) is the updated reputation score of node ni.