首页 | 本学科首页   官方微博 | 高级检索  
     


A heuristic to accelerate in-situ permutation algorithms
Authors:  rg Keller
Affiliation:FernUniversität, LG Technische Informatik II, 58084 Hagen, Germany
Abstract:
In-situ permutation algorithms permute an array of n items without using a second array. Little space is needed when one proceeds permuting along a cycle. Thus, those algorithms first search for one element called the leader on each cycle of the permutation. Then they move the items cycle by cycle. A great fraction of the runtime is spent with testing whether elements are leaders. We present a simple-to-implement heuristic to accelerate the search for leaders and present performance gains for randomly chosen permutations on three algorithms.
Keywords:Algorithms   Performance evaluation   Heuristics   Permutations
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号