Research Article
Picture Preview Generation for Interactive Educational Resources
Algorithm 2
Find relation for interact (e, DR, operateElement, dfsTimes).
| Input: | | element ; 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) | | (13) | fordo | (14) | if | (15) | | (16) | if answer ! = Null | (17) | | (18) | end if | (19) | end if | (20) | end for | (21) | if operateElement == Null | (22) | | (23) | end if | (24) | else | (25) | return | (26) | end if |
|