{'fraction_non_alphanumeric': 0.017509727626459144, 'fraction_numerical': 0.0, 'mean_word_length': 5.518987341772152, '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}}
A Weighted Selection Algorithm for Certain Tree-Structured Linear Programs

We solve a simple class of linear programming problems with tree-structured constraint matrices. Our procedure separates the problem into a sequence of continuous knapsack problems, each of which requires linear time to solve, for total solution time no worse than proportional to the number of nonzero entries in the original constraint matrix. The model arises in portfolio selection, advertising, and inventory and production planning.