Question: Using Python - Implement the brute force method and compare the brute force method with the Apriori algorithm on the following data. Present computation (CPU

Using Python - Implement the brute force method and compare the brute force method with the Apriori algorithm on the following data. Present computation (CPU or clock) time to demonstrate that the Apriori algorithm is faster than the brute force method. The brute force method and Apriori algorithm should output the same association rules on each database.

products
0 MILK,BREAD,BISCUIT
1 BREAD,MILK,BISCUIT,CORNFLAKES
2 BREAD,TEA,BOURNVITA
3 JAM,MAGGI,BREAD,MILK
4 MAGGI,TEA,BISCUIT
5 BREAD,TEA,BOURNVITA
6 MAGGI,TEA,CORNFLAKES
7 MAGGI,BREAD,TEA,BISCUIT
8 JAM,MAGGI,BREAD,TEA
9 BREAD,MILK
10 COFFEE,COCK,BISCUIT,CORNFLAKES
11 COFFEE,COCK,BISCUIT,CORNFLAKES
12 COFFEE,SUGER,BOURNVITA
13 BREAD,COFFEE,COCK
14 BREAD,SUGER,BISCUIT
15 COFFEE,SUGER,CORNFLAKES
16 BREAD,SUGER,BOURNVITA
17 BREAD,COFFEE,SUGER
18 BREAD,COFFEE,SUGER
19 TEA,MILK,COFFEE,CORNFLAKE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!