Algorithms for Generating Binary Reflected Gray Code Sequence: Time Efficient Approaches

Mohsin Ali, Muhammad Nazrul Islam, Abu Foysal
{"title":"Algorithms for Generating Binary Reflected Gray Code Sequence: Time Efficient Approaches","authors":"Mohsin Ali, Muhammad Nazrul Islam, Abu Foysal","doi":"10.1109/ICFCC.2009.41","DOIUrl":null,"url":null,"abstract":"In this paper, we propose two algorithms for generating a complete n-bit binary reflected Gray code sequence. The first one is called Backtracking. It generates a complete n-bit binary reflected Gray code sequence by generating only a sub-tree instead of the complete tree. In this approach, both the sequence and its reflection for n-bit is generated by concatenating a “0” and a “1” to the most significant bit position of the n-1 bit result generated at each leaf node of the sub-tree. The second one is called MOptimal. It is the modification of a Space and time optimal approach [8] by considering the minimization of the total number of outer and inner loop execution for this purpose. In this method, both a sequence and its reflection for n-bit is also generated during each inner loop execution instead of generating only one sequence by adding “0” and “2n-1” to the previous n-1 bit sequence. Finally, we evaluate the performance of the proposed and existing algorithms by measuring the execution time with respect to number of bits and compare the results with each other. Simulation results demonstrate that Backtracking takes small execution time up to 10 bits with maximum improvement of 17.02%. The evaluation also demonstrates that MOptimal also takes small execution time for more than 15 bits showing an improvement of 2.10% for 23 bits.","PeriodicalId":338489,"journal":{"name":"2009 International Conference on Future Computer and Communication","volume":"37 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2009-04-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"11","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2009 International Conference on Future Computer and Communication","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICFCC.2009.41","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 11

Abstract

In this paper, we propose two algorithms for generating a complete n-bit binary reflected Gray code sequence. The first one is called Backtracking. It generates a complete n-bit binary reflected Gray code sequence by generating only a sub-tree instead of the complete tree. In this approach, both the sequence and its reflection for n-bit is generated by concatenating a “0” and a “1” to the most significant bit position of the n-1 bit result generated at each leaf node of the sub-tree. The second one is called MOptimal. It is the modification of a Space and time optimal approach [8] by considering the minimization of the total number of outer and inner loop execution for this purpose. In this method, both a sequence and its reflection for n-bit is also generated during each inner loop execution instead of generating only one sequence by adding “0” and “2n-1” to the previous n-1 bit sequence. Finally, we evaluate the performance of the proposed and existing algorithms by measuring the execution time with respect to number of bits and compare the results with each other. Simulation results demonstrate that Backtracking takes small execution time up to 10 bits with maximum improvement of 17.02%. The evaluation also demonstrates that MOptimal also takes small execution time for more than 15 bits showing an improvement of 2.10% for 23 bits.
生成二进制反射灰码序列的算法:时间效率方法
在本文中,我们提出了两种算法来生成一个完整的n位二进制反射格雷码序列。第一个叫做回溯。它通过只生成一个子树而不是完整树来生成一个完整的n位二进制反射格雷码序列。在这种方法中,序列及其n位反射都是通过将“0”和“1”连接到子树的每个叶节点上生成的n-1位结果的最高有效位位置来生成的。第二个是最优的。它是对空间和时间最优方法[8]的改进,考虑了为此目的而执行的内外循环总数的最小化。在这种方法中,在每次执行内循环时都生成一个序列及其n位反射,而不是通过在之前的n-1位序列上添加“0”和“2n-1”来只生成一个序列。最后,我们通过测量相对于比特数的执行时间来评估所提出算法和现有算法的性能,并将结果相互比较。仿真结果表明,回溯的执行时间较短,可达10位,最大改进率为17.02%。评估还表明,MOptimal在大于15位时的执行时间也很短,在23位时的执行时间提高了2.10%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信