def multiseq_flops(V, D):
    """
    Given the number of coarse clusters and the dimension of the data,
    compute the number of flops to required to rank each coarse vocabulary
    to the query.
    """
    # (total coarse vocabulary) * (dims per coarse split) * (flops per squared distance)
    return (2 * V) * (D / 2) * 2