Research Article

Research on the Correlation between Multisource Big Data Virtual Assisted Preschool Education and the Development of Children’s Innovative Ability

Table 4

Pseudocode of Reduce function in association rule mining process.

StepFPgrowthReducer.class
public void map (LongWritable key, Text value, Context context){

1Split each row of value by, and store them in the arr array;
2Create a new LinkedList collection list;
3Use the for loop to read out the arr array sequentially {
4If an item ele in the arr array is in the frequent 1 itemset; {
5Write the ele to the list collection;
6New LinkedList<List<String>>linked list trans;
7Create a new String array arr;
8Assign the array to values divided by \t;
9Declare and initialize a new LinkedList<String> linked list list;
10Use the for loop to read out the contents of the arr array in turn;
11Add each item ele to list;
12Add list to collection trans; }}