两种判定双时递归偶发序列重合的算法
Two Algorithms for Deciding Coincidence In Double Temporal Recurrence of Eventuality Sequences
摘要:
设两个可能性序列x(表示序列x 0,x1,x2,...,xn-1)和y(表示序列,y 0,y1,y2,..,yn-1)都在相同的时间间隔上重现,并且需要确定在所述间隔内是否存在子间隔,该子间隔是xp和yq的出现间隔的公共子间隔。本文提出了两种算法来解决这个问题。第一个探讨了存在这样一个区间的双重递归的任意循环。其最坏情况运行时间是二次的。另一种算法是基于gcd划分的新概念,并具有线性最坏情况下的运行时间。若偶发序列对(W,z)是二重递归(x,y)的gcd-划分,则根据gcd-划分的某种性质,在二重递归的任一循环内,存在r和s,使得xp和yq的出现间隔与wr和zs的同现间隔不相交。因此,当且仅当这样的r和s存在使得wr和zs的同现间隔与xp和yq的出现的公共间隔共享公共间隔时,xp和yq之间的重合发生在双重递归的周期内。该算法系统地减少了在发现重合的存在的过程中要探索的wr和zs对的数量。
英文摘要:
Let two sequences of eventualities x (signifying the sequence, x0,x1, x2,...,xn-1) and y (signifying the sequence, y0, y1, y2,..,yn-1) both recur over the same time interval and it is required to determine whether or not a subinterval exists within the said interval which is a common subinterval of the intervals of occurrence of xp and yq. This paper presents two algorithms for solving the problem. the first explores an arbitrary cycle of the double recurrence for the existence of such an interval. its worst case running time is quadratic. The other algorithm is based on the novel notion of gcd-partitions and has a linear worst case running time. If the eventuality sequence pair (W,z) is a gcd-partition for the double recurrence (x, y),then, from a certain property of gcd-partitions, within any cycle of the double recurrence, there exists r and s such that intervals of occurrence of xp and yq are non-disjoint with the interval of co-occurrence of wr and zs. As such, a coincidence between xp and yq occurs within a cycle of the double recurrence if and only if such r and s exist so that the interval of co-occurrence of wr and zs shares a common interval with the common interval of occurrences of xp and yq. The algorithm systematically reduces the number of wr and zs pairs to be explored in the process of finding the existence of the coincidence.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。