首页> 外文期刊>Algorithms >From Enumerating to Generating: A Linear Time Algorithm for Generating 2D Lattice Paths with a Given Number of Turns
【24h】

From Enumerating to Generating: A Linear Time Algorithm for Generating 2D Lattice Paths with a Given Number of Turns

机译:从枚举到生成:一种线性时间算法,用于在给定匝数下生成二维晶格路径

获取原文
       

摘要

We propose a linear time algorithm, called G2DLP, for generating 2D lattice L(n1, n2) paths, equivalent to two-item {An1, Bn2} multiset permutations, with a given number of turns. The usage of turn has three meanings: in the context of multiset permutations, it means that two consecutive elements of a permutation belong to two different items; in lattice path enumerations, it means that the path changes its direction, either from eastward to northward or from northward to eastward; in open shop scheduling, it means that we transfer a job from one type of machine to another. The strategy of G2DLP is divide-and-combine; the division is based on the enumeration results of a previous study and is achieved by aid of an integer partition algorithm and a multiset permutation algorithm; the combination is accomplished by a concatenation algorithm that constructs the paths we require. The advantage of G2DLP is twofold. First, it is optimal in the sense that it directly generates all feasible paths without visiting an infeasible one. Second, it can generate all paths in any specified order of turns, for example, a decreasing order or an increasing order. In practice, two applications, scheduling and cryptography, are discussed.
机译:我们提出了一种线性时间算法,称为G2DLP,用于生成2D晶格L(n 1 ,n 2 )路径,等效于两个项{A n < sub> 1 ,B n 2 }多集排列,并具有给定的匝数。转弯的用法具有三个含义:在多集置换的上下文中,这意味着置换的两个连续元素属于两个不同的项目;在点阵路径枚举中,表示路径从东向北或从北向东改变方向;在公开车间调度中,这意味着我们将作业从一种机器转移到另一种机器。 G2DLP的策略是分而合之。该划分基于先前研究的枚举结果,并且借助于整数划分算法和多集置换算法来实现;结合是通过构造我们所需路径的串联算法完成的。 G2DLP的优点是双重的。首先,从它直接生成所有可行路径而不访问不可行路径的意义上说,它是最佳的。其次,它可以按任何指定的转弯顺序生成所有路径,例如,递减顺序或递增顺序。在实践中,讨论了调度和加密这两个应用程序。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号