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.
| Step | FPgrowthReducer.class public void map (LongWritable key, Text value, Context context){ |
| 1 | Split each row of value by, and store them in the arr array; | 2 | Create a new LinkedList collection list; | 3 | Use the for loop to read out the arr array sequentially { | 4 | If an item ele in the arr array is in the frequent 1 itemset; { | 5 | Write the ele to the list collection; | 6 | New LinkedList<List<String>>linked list trans; | 7 | Create a new String array arr; | 8 | Assign the array to values divided by \t; | 9 | Declare and initialize a new LinkedList<String> linked list list; | 10 | Use the for loop to read out the contents of the arr array in turn; | 11 | Add each item ele to list; | 12 | Add list to collection trans; }} |
|
|