from typing import List


def compute_sigma_for_given_alpha(bundles:List[float],alpha:float)->float:
    """
    This is a helper function to compute_alpha5_using_binary_search.
    the function computes one side of the inequality .
    :param bundles: valuations of the bags from B1 to Bk, were k is number of agents
    :param alpha: the potential alpha5- sigma is computed with it
    :return sigma: one side of the inequality
    >>> bundles=[0.74,0.75,0.50,1.02] 
    >>> alpha = 0.92
    >>> round(compute_sigma_for_given_alpha(bundles=bundles,alpha=alpha),6)
    0.331522
    >>> bundles=[0.74,0.75,0.72] 
    >>> alpha = 0.9
    >>> compute_sigma_for_given_alpha(bundles=bundles,alpha=alpha)
    0.0
    >>> bundles=[0.74,0.73] 
    >>> alpha = 0.99
    >>> round(compute_sigma_for_given_alpha(bundles=bundles,alpha=alpha),6)
    0.265152
    """
    sum=0
    count=0
    for bundle in bundles:
        if(bundle/alpha)<0.75:
           count+=1
           sum+=0.75-bundle/alpha
    return sum+(1/8)*count