{'fraction_non_alphanumeric': 0.09134615384615384, 'fraction_numerical': 0.020833333333333332, 'mean_word_length': 3.8449612403100777, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
On Balance Index Sets of Rooted Trees

Any vertex labeling f : V → {0, 1} of the graph G = (V, E) induces a partial edge labeling f∗ : E → {0, 1} defined by f∗(uv) = f(u) if and only if f(u) = f(v). The balance index set of G is defined as {|f∗−1(0) − f∗−1(1)| : |f−1(0) − f−1(1)| ≤ 1}. In this paper, we first determine the balance index sets of rooted trees of height not exceeding two, thereby completely settling the problem for trees with diameter at most four. Next we show how to extend the technique to rooted trees of any height, which allows us to derive a method for determining the balance index set of any tree.