Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q:Suppose we have market baskets that satisfy the following assumptions: 1. The support threshold is 10,000. 2. There are one million items, represented by the

Q:Suppose we have market baskets that satisfy the following assumptions:

1. The support threshold is 10,000.

2. There are one million items, represented by the integers 0, 1, . . . , 999999.

3. There are N frequent items, that is, items that occur 10,000 times or more.

4. There are one million pairs that occur 10,000 times or more.

5. There are 2M pairs that occur exactly once. Of these pairs, M consist of two frequent items; the other M each have at least one nonfrequent item.

6. No other pairs occur at all.

7. Integers are always represented by 4 bytes.

Suppose we run the A-Priori Algorithm and can choose on the second pass between the triangular-matrix method for counting candidate pairs and a hash table of item-item-count triples. Neglect in the first case the space needed to translate between original item numbers and numbers for the frequent items, and in the second case neglect the space needed for the hash table. As a function of N and M, what is the minimum number of bytes of main memory needed to execute the A-Priori Algorithm on this data?

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

Students also viewed these Databases questions

Question

=+ What are the information and consultation requirements?

Answered: 1 week ago

Question

=+ Should the MNE belong (why, why not)?

Answered: 1 week ago