SEG 4630 Tutorial 11 - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

SEG 4630 Tutorial 11

Description:

SEG 4630 Tutorial 11. Sequential Patterns With Time Constraints. Hints for assignment 2 ... Hints for ass2. Q1(a), Find all frequent itemsets (up to size 4) ... – PowerPoint PPT presentation

Number of Views:77
Avg rating:3.0/5.0
Slides: 12
Provided by: seem2
Category:
Tags: seg | hints | tutorial

less

Transcript and Presenter's Notes

Title: SEG 4630 Tutorial 11


1
SEG 4630 Tutorial 11
  • Sequential Patterns With Time Constraints
  • Hints for assignment 2
  • Lijun Chang

2
Definition of Subsequence
  • A data-sequence d contains a sequence s
    (n m), iff there exist integers l1
    u1 i n.
  • If there exist a mapping from s to d satisfy all
    the constraints specified, then we will say that
    d contains s

3
Widows Size constraint
  • transaction-time(dui) transaction-time(dli)
    window-size, 1 i n
  • ws 1, d
  • s1 , Yes
  • s2 , Yes
  • s3 , Yes

4
Max Span constraint
  • transaction-time(dun) transaction-time(dl1)
    max-span
  • maxspan 2, d
  • s1 , Yes
  • s2 , Yes
  • s3 , Yes

5
Min Gap constraint
  • transaction-time(dli) transaction-time(du(i-1))
    min-gap, 2 i n
  • mingap 1, d
  • s1 , No
  • s2 , Yes
  • s3 , Yes

6
Max Gap constraint
  • transaction-time(dui) transaction-time(dl(i-1))
    max-gap, 2 i n
  • maxgap 2, d
  • s1 , Yes
  • s2 , Yes
  • s3 , Yes

7
Examples
  • Q.12(p.480)
  • For each of the sequence w
    below,
  • determine whether they are subsequences of the
    following data sequence
  • s A,BC,DA,BC,DA,BC,D
  • subjected to the following timing constraints
  • mingap 0 (interval between last event in ei
    and first event in ei1 is 0)
  • maxgap 2 (interval between first event in ei
    and last event in ei1 is 2)
  • maxspan 6 (interval between first event in e1
    and last event in elast is 6)
  • ws 1 (time between first and last events in ei
    is 1)

8
More Examples
  • s
  • w

9
More Examples
  • s
  • w

10
Hints for ass2
  • Q1(a), Find all frequent itemsets (up to size 4)
  • Apriori algorithm (Lecture notes Ch6 p15)
  • All items in an itemset must be ordered
  • Frequent 3-itemsets 1,2,3, 1,2,4,
    2,3,4,2,4,5
  • Candidate 4-itemsets 1,2,3,4
  • After prune None

11
Hints for ass2
  • Q1(b), Find all association rules using frequent
    4-itemsets
  • Apriori algorithm (Lecture notes Ch6 p27-30)
  • enumerate it can generate (24-214) candidate
    association rules from a single frequent 4-itemset
Write a Comment
User Comments (0)
About PowerShow.com