def load_dataset(filename):
    dataset = [sorted((int(n) for n in i.strip().split())) for i in open(filename).readlines()]
    size = len(dataset)
    print('Size of the Dataset : ', size)
    total_len = 0
    for i in range(len(dataset)):
        total_len = (total_len + len(dataset[i]))
    avg_len = (total_len / size)
    print('Average Transaction Length : ', avg_len)
    return dataset
def load_dataset(filename):
    dataset = [sorted((int(n) for n in i.strip().split())) for i in open(filename).readlines()]
    size = len(dataset)
    print('Size of the Dataset : ', size)
    total_len = 0
    for i in range(len(dataset)):
        total_len = (total_len + len(dataset[i]))
    avg_len = (total_len / size)
    print('Average Transaction Length : ', avg_len)
    return dataset