This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // INTRODUCTION | |
| /** | |
| * A BitVector is a fixed-length sequence of bits. It's an extremely | |
| * powerful class because of the huge number of ways that it allows the | |
| * bits to be accessed and modified. Algorithms that rely heavily on bit | |
| * manipulation can improve their performance by reducing the frequency | |
| * with which bit data needs to be moved between different data | |
| * structures; they can rely on BitVector for all the bit manipulations | |
| * they require. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // INTRODUCTION | |
| /** | |
| * A BitVector is a fixed-length sequence of bits. It's an extremely | |
| * powerful class because of the huge number of ways that it allows the | |
| * bits to be accessed and modified. Algorithms that rely heavily on bit | |
| * manipulation can improve their performance by reducing the frequency | |
| * with which bit data needs to be moved between different data | |
| * structures; they can rely on BitVector for all the bit manipulations | |
| * they require. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.*; | |
| import java.util.*; | |
| /** The class encapsulates an implementation of the Apriori algorithm | |
| * to compute frequent itemsets. | |
| * | |
| * Datasets contains integers (>=0) separated by spaces, one transaction by line, e.g. | |
| * 1 2 3 | |
| * 0 9 | |
| * 1 9 |