114 Chapter 7 Association Analysis: Advanced Concepts
–w=<{1,2}{3,4}{5,6}>
12. For each of the sequence w=e1,…,e
lastbelow, determine whether they
are subsequences of the following data sequence:
{A, B}{C, D}{A, B}{C, D}{A, B}{C, D}
subjected to the following timing constraints:
mingap = 0 (interval between last event in eiand first event
in ei+1 is >0)
maxgap = 2 (interval between first event in eiand last event
in ei+1 is ≤2)
maxspan = 6 (interval between first event in e1and last event
in elast is ≤6)
ws = 1 (time between first and last events in eiis ≤1)
(a) w={A}{B}{C}{D}
(b) w={A}{B,C,D}{A}
(c) w={A}{B,C,D}{A}
(d) w={B,C}{A, D}{B, C}
(e) w={A, B, C, D}{A, B, C, D}
13. Consider the following frequent 3-sequences:
<{1,2,3}>,<{1,2}{3}>,<{1}{2,3}>,<{1,2}{4}>,
<{1,3}{4}>,<{1,2,4}>,<{2,3}{3}>,<{2,3}{4}>,
<{2}{3}{3}>,and<{2}{3}{4}>.
(a) List all the candidate 4-sequences produced by the candidate generation
step of the GSP algorithm.
Answer:
(b) List all the candidate 4-sequences pruned during the candidate pruning
step of the GSP algorithm (assuming no timing constraints).
Answer: