Function Topic Propagation{
Initialize
.
.
.
While
.
 if (the new sub-event occurs){
 if (rand() 0.5){
.}
 }
.
While
   .
  if (rand() & ){
   .
   .}
   .
 }
.
.
}
.
Return
.
}
Algorithm 1: Topic Propagation.