Runups and cycles
Wildon's Weblog 2018-03-12
Summary:
Let xs be a stream of values that can be compared for equality. Let ++ denote concatenation of lists. Assuming that xs is of the form runUp ++ cyc ++ cyc ++ ..., what is a good way to find the decomposition (runUp, cyc)? The problem is more subtle than it might seem. If xs […]