in rules/conjuncts.py [0:0]
def get_worst_rule(beam, beam_width):
if len(beam) < beam_width:
return (None, -1)
worst_q = 2**60
for cur_r in beam:
cur_q = beam[cur_r]
if cur_q < worst_q:
worst_q = cur_q
worst_rule = cur_r
return (worst_rule, worst_q)