def get_mapshape_from_searchmap(hashtable):
    """Suppose keys have the form (x, y). We want max(x), max(y)
    such that not necessarily the key (max(x), max(y)) exists

    Args:
    hashtable(dict): key-value pairs

    Returns:
    int, int: max values for the keys
    """

    ks = hashtable.keys()
    h = max([y[0] for y in ks])
    w = max([x[1] for x in ks])
    return h+1, w+1