Research Article
Confusion Analysis and Detection for Workflow Nets
Algorithm 1
Detection of confusion subnets in WF-net 
.
| (1)  Input: WF-net . |  | (2)  Output: The set  of CIC subnets and the set  of CDC subnets. |  | (3)  , , . |  | (4)  for each ,   do |  | (5)  if    then |  | (6)   Capture a CIC subnet , where |  |    (1)  ,  |  |    (2)  , and  |  |    (3)  . |  | (7)   if    then |  | (8)     , . |  | (9)   else |  | (10)     . |  | (11)   end if |  | (12)  end if |  | (13)  end for |  | (14)  for each ,   do |  | (15)  If    |  |    then |  | (16)   Capture a CDC subnet , where   |  |    (1)   , |  |    (2)   , and  |  |    (3)   .  |  | (17)   if    then |  | (18)     , . |  | (19)   else |  | (20)     . |  | (21)   end if |  | (22)  end if |  | (23)  end for |  | (24)  Output:  and . |  
  |