0% found this document useful (0 votes)
57 views3 pages

FP Example

The document describes using the FP-growth algorithm to find all frequent itemsets in a sample transactional database with a minimum support of 30%. The FP-growth algorithm builds a frequent-pattern tree to store the frequent items and generates conditional pattern bases and trees to recursively derive the frequent itemsets. This results in frequent itemsets being found for individual items like B, D, A, E, C and itemsets like AE, DE, ABE, ABD.

Uploaded by

Danaja Maldeniya
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views3 pages

FP Example

The document describes using the FP-growth algorithm to find all frequent itemsets in a sample transactional database with a minimum support of 30%. The FP-growth algorithm builds a frequent-pattern tree to store the frequent items and generates conditional pattern bases and trees to recursively derive the frequent itemsets. This results in frequent itemsets being found for individual items like B, D, A, E, C and itemsets like AE, DE, ABE, ABD.

Uploaded by

Danaja Maldeniya
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

FP-Growth Example

Find all frequent itemsets in the following database using FP-growth algorithm. Take
minimum support as 30%.
TID Items Ordered Items
1 E, A, D, B B, D, A, E
2 D, A, C, E, B B, D, A, E, C
3 C, A, B. E B, A, E, C
4 B, A, D B, D, A
5 D D
6 D, B B, D
7 A, D, E D, A, E
8 B, C B, C

Minimum support count is ceiling(0.3 * 8) = 3

F-list or header table for the original DB


B:6, D:6, A: 5, E:4, C: 3

null

6 B D 2

1 C
4 D A 1

1 A
A
3 E 1

1 E 2 E

1 C
1 C

Conditional pattern base for C:3


BDAE: 1; B: 1; BAE: 1
F-list: B:3
Conditional FP-tree for C

CS 536 – Data Mining (Au 06-07) – Dr. Asim Karim Page 1 of 3


B: 3
Frequent patterns
C:3, BC:3

Conditional pattern base for E:4


BDA: 2; BA:1; DA:1
F-list: A:4, B:3, D:3
Conditional FP-tree for E
Null
|
A:4 ---- D:1
|
B:3
|
D:2

Recursion
Conditional pattern base for DE:3
A:1, AB:2
Conditional FP-tree for DE
A:3
Frequent patterns
DE:3, ADE:3

Conditional pattern base for BE:3


A:3
Conditional FP-tree for BE
A:3
Frequent patterns
BE:3, ABE:3

Conditional pattern base for AE:4


NULL
Conditional FP-tree for DE
NULL
Frequent patterns
AE:4
and
E:4

Conditional pattern base for A:5


BD: 3; B:1; D:1
F-list: B:4, D:4
Conditional FP-tree for A
Null --- D:1
|

CS 536 – Data Mining (Au 05-06) – Dr. Asim Karim Page 2 of 3


B: 4
|
D:3

Recursion
Conditional pattern base for AD:4
B:3
Conditional FP-tree for AD
B:3
Frequent patterns
AD:4, ABD:3

Conditional pattern base for AB:4


NULL
Frequent patterns
AB:4
and
A:5

Conditional pattern base for D:6


B: 4
Conditional FP-tree for D
B: 4
Frequent patterns
D:6, BD:4

Conditional pattern base for B:6


NULL
Conditional FP-tree for B
NULL
Frequent patterns
B:6

CS 536 – Data Mining (Au 05-06) – Dr. Asim Karim Page 3 of 3

You might also like