Entire code is in the source file Apriori.java
- Compile the program:
javac Apriori.java
- Execution must be done by passing the command line arguments in the order as follows.
java Apriori min_support itemset_order(k) input_transaction_file_path candidate_gen_file_path output_file_path
- Output will be saved in the folder where the project is residing.
Eg:
java Apriori 10 2 transactionDB.txt candidate.txt output.txt
Input file is in the same folder as the source file.