def find_frequent_1_itemsets(dataset, min_sup):
    frequency = dict(collections.Counter(itertools.chain.from_iterable(dataset)))
    L1 = dict()
    for (item, freq) in frequency.items():
        if (freq >= min_sup):
            L1[item] = freq
    return L1
def find_frequent_1_itemsets(dataset, min_sup):
    frequency = dict(collections.Counter(itertools.chain.from_iterable(dataset)))
    L1 = dict()
    for (item, freq) in frequency.items():
        if (freq >= min_sup):
            L1[item] = freq
    return L1