1, 2, gum, bread //transaction id, # of items purchased, item1, item2,... 2, 2, gum, napkin 3, 3, fruit, bread, fork 4, 7, milk, bread, napkin, fork, juice, soup, fruit 5, 4, juice, napkin, milk, bread 6, 2, bread, spoon 7, 1, juice 8, 3, juice, napkin, milk 9, 4, juice, napkin, milk, turkey 10, 1, pork 11, 10, milk, egg, bread, napkin, spoon, chicken, water, juice, soup, fork 12, 1, egg 13, 2, bread, milk, 14, 5, gum, salt, fruit, vegetable, bread 15, 1, bread 16, 2, bread, milk 17, 3, bread, salt, egg 18, 2, milk, napkin 19, 3, turkey, juice, milk 20, 3, turkey, chicken, soup |
|
|
unique items: pork vegetable water Items frequencies: bread:11 chicken:2 egg:3 fork:3 fruit:3 gum:3 juice:7 milk:9 napkin:7 pork:1 salt:2 soup:3 spoon:2 turkey:3 vegetable:1 water:1 Program ended with exit code: 0 |