Research Article

Picture Preview Generation for Interactive Educational Resources

Algorithm 3

FindRelationForStatic (, DR, operateElement, dfsTimes).
Input:
elements set E; dependencies set DR; dependent interactive elements operateElement; time of iterations dfsTimes
Output:
operateElement
(1)if dfsTimes ≥ 20
(2)  return
(3)end if
(4)dfstimes = dfstimes + 1
(5)if e.type == invisible
(6)  return
(7)end if
(8)if e.type == visible&interactive&independent
(9)  return
(10)end if
(11)if e.type == visible&interactive&dependent
(12)if
(13)  return interactElementToDepElements []
(14)else
(15)  return
(16)end if
(17)end if
(18)if e.type = = visible&static
(19)
(20)fordo
(21)   
(22)   if answer ! = Null
(23)    
(24)   end if
(25)end for
(26)else
(27)return
(28)end if