def is_valid_algorithm(algorithm: str) -> bool:
    """check if the input algorithm is valid

    :param algorithm: algorithm name
    :type algorithm: str
    :return: True if the algorithm is valid
    :rtype: bool
    """
    available_algorithms = [
        'Histogram Equalization',
        'Contrast Stretching',
        'Log Compression',
        'Contrast Invert',
        'No Algorithm',
    ]
    return algorithm in available_algorithms