Effects of Refactoring upon Efficiency of an NP-Hard Task Assignment Problem: A case study

Huda Tariq, Maliha Arshad, W. Basit
{"title":"Effects of Refactoring upon Efficiency of an NP-Hard Task Assignment Problem: A case study","authors":"Huda Tariq, Maliha Arshad, W. Basit","doi":"10.1109/ICACS47775.2020.9055956","DOIUrl":null,"url":null,"abstract":"The goal of this paper is to analyze the effects of refactoring on time complexity of an algorithm. For this purpose a problem in which time complexity is highly sensitive, is chosen for studying. As it is known by computer scientists, they use refactoring in order to improve quality of design while preserving external behavior (functional properties). Sustainability of nonfunctional properties are not guaranteed. Hence, for learning its effects on non-functional properties such as time, a multiobjective task assignment problem is selected. The chosen problem has been implemented through an Evolutionary Genetic Algorithm. The problem chosen is an NP -hard problem because of being time sensitive. Initially, code smells are detected & refactoring is applied. In order to observe the improvement in design of code, several metrics of quality such as cohesion, coupling, complexity & inheritance, are calculated and compared before & after applying refactoring. Also, computation time of the improved code is compared with the original code, in order to analyze effects of refactoring on computation time. For problems that are time sensitive, refactoring may not be a good choice depending upon the requirements. Results of the experimentation nullify the approach that refactoring improves the computational cost of the software. Increase in the length of code eventually may prove as a tradeoff in terms of memory consumption.","PeriodicalId":268675,"journal":{"name":"2020 3rd International Conference on Advancements in Computational Sciences (ICACS)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2020 3rd International Conference on Advancements in Computational Sciences (ICACS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICACS47775.2020.9055956","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

The goal of this paper is to analyze the effects of refactoring on time complexity of an algorithm. For this purpose a problem in which time complexity is highly sensitive, is chosen for studying. As it is known by computer scientists, they use refactoring in order to improve quality of design while preserving external behavior (functional properties). Sustainability of nonfunctional properties are not guaranteed. Hence, for learning its effects on non-functional properties such as time, a multiobjective task assignment problem is selected. The chosen problem has been implemented through an Evolutionary Genetic Algorithm. The problem chosen is an NP -hard problem because of being time sensitive. Initially, code smells are detected & refactoring is applied. In order to observe the improvement in design of code, several metrics of quality such as cohesion, coupling, complexity & inheritance, are calculated and compared before & after applying refactoring. Also, computation time of the improved code is compared with the original code, in order to analyze effects of refactoring on computation time. For problems that are time sensitive, refactoring may not be a good choice depending upon the requirements. Results of the experimentation nullify the approach that refactoring improves the computational cost of the software. Increase in the length of code eventually may prove as a tradeoff in terms of memory consumption.
重构对np困难任务分配问题效率的影响:一个案例研究
本文的目的是分析重构对算法时间复杂度的影响。为此,选取了一个时间复杂度高度敏感的问题进行研究。正如计算机科学家所知,他们使用重构是为了在保持外部行为(功能属性)的同时提高设计质量。非功能性属性的可持续性不能得到保证。因此,为了了解其对非功能属性(如时间)的影响,选择了一个多目标任务分配问题。所选问题通过进化遗传算法实现。所选择的问题是NP困难问题,因为它是时间敏感的。最初,检测代码气味并应用重构。为了观察代码设计的改进,计算和比较了应用重构前后的几个质量指标,如内聚、耦合、复杂性和继承。并将改进后的代码与原始代码的计算时间进行了比较,以分析重构对计算时间的影响。对于时间敏感的问题,根据需求,重构可能不是一个好的选择。实验结果证明重构提高软件计算成本的方法是无效的。代码长度的增加最终可能被证明是在内存消耗方面的一种权衡。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:481959085
Book学术官方微信