Cut a Numeric String into Required Pieces

Abstract

We study the problem of cutting a length-n string of positive real numbers into k pieces so that every piece has sum at least b. The problem can also be phrased as transforming such a string into a new one by merging adjacent numbers. We discuss connections with other problems and present several algorithms in connection with the problem: an O(n)-time greedy algorithm, an O(kn n)-time dynamic programming algorithm, and an O(n+ k n + 2kk)-time FPT algorithm for n-k pieces.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…