def NormalizeDictVector(d):
    """Adjusts numerical values so they add up to 1."""
    normalized = {}
    divisor = sum(d.values())
    for key in d:
        normalized[key] = d[key] / divisor
    return normalized