Research Article

A Novel Attack-and-Defense Signaling Game for Optimal Deceptive Defense Strategy Choice

Algorithm 1: Optimal strategy choice algorithm description based on a two-way signaling game model.

Input: Model, Signal direction parameter w
Output: Optimal strategy for the defender
BEGIN
if (w =1)//forward-direction signalling game
{Initialize ();
//Initialize the type of the defender
 Initialize (,);
//Initialize the signal of the defender and the belief of the defender regarding the attacker
}
If (w =0)//reverse-direction signalling game
{Initialize ();
//Initialize the type of the attacker
 Initialize (
);
//Initialize the signal of the attacker and the belief of the attacker regarding the defender
}
Initialize (,,);
//Initialize the strategies for both players
while (&&&&)//Calculate the utility
{;
;
}
//Obtain the refined Bayesian Equilibrium
;
;
//Calculate the optimal strategy for attack and defence
Bayesian ();
//Calculate the posterior probability and apply the Bayesian rule
for the defender
Create ; //Construct the refined Bayesian equilibrium
Sort ();//descending
Output ();//output the optimal strategy for the defender
End
Algorithm 1: Optimal strategy choice algorithm description based on a two-way signaling game model.