Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 26.6 Let us develop a new algorithm for the computation of all large itemsets. Assume that we are given a relation D siInilar to

Exercise 26.6 Let us develop a new algorithm for the computation of all large itemsets. Assume that we are given a relation D siInilar to the Purchases table shown in Figure 26.1. We partition the table horizontally into kparts D1 , ... , Dk .

image text in transcribed

1. Show that, if items et X is frequent in D, then it is frequent in at least one of the k parts.

2. Use this observation to develop an algorithm that computes all frequent item sets in two scans over .D. (Hint: In the first scan, compute the locally frequent itemsets for each part Di, i E{I,...,k}.)

3. Illustrate your algorithm using the Purchases table shown in Figure 26.1. The first partition consists of the two transactions with transid 111 and 112, the second partition consists of the two transactions with transid 113 and 114. Assumne that the minimum support is 70 percent.

transidcusti 201 201 date item gty 5/1/99 en 99 ink 1 111 201 5/1/99 milk 3 ?11 | 201 | 5/1/99 | juice l en 112 105 6/3/99 ink1 106 5/10/99 pen 1 201- nl 113 113 | 106 | 5/10/99 | Inilk | 1- 114 114 en ink 2 uice 201 114 20 6/1/99 water 1 Figure 26. The Purchases Relation transidcusti 201 201 date item gty 5/1/99 en 99 ink 1 111 201 5/1/99 milk 3 ?11 | 201 | 5/1/99 | juice l en 112 105 6/3/99 ink1 106 5/10/99 pen 1 201- nl 113 113 | 106 | 5/10/99 | Inilk | 1- 114 114 en ink 2 uice 201 114 20 6/1/99 water 1 Figure 26. The Purchases Relation

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

13th Edition Global Edition

1292263350, 978-1292263359

More Books

Students also viewed these Databases questions