def validation(size, training):
    """ Obtain the validation set corresponding to the given training set """
    result = []
    for i in range(0, size):
        if i not in training:
            result.append(i)
    return result