def compute_heuristic_conn_4(init_pos, coord):
    """Returns Manhattan heuristic for distance from coord to init_pos

    init_pos - coordinate of position of goal configuration
    coord    - coordinate of configuration for which heursitic is
               being computed

    Returns the heuristic distance to goal through a
    Manhattan metric calculation.
    """
    return sum(map(lambda x, y: abs(x - y), coord, init_pos))