首页> 外文会议>International Conference on Advancements in Computational Sciences >Effects of Refactoring upon Efficiency of an NP-Hard Task Assignment Problem: A case study
【24h】

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

机译:重构对NP-HARD任务分配问题效率的影响:以案例研究

获取原文

摘要

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-Hard问题,因为时间敏感。最初,检测到代码气味并应用重构。为了观察代码设计的改进,在施加重构之前和在施加重构之前计算并比较了诸如凝聚力,耦合,复杂性和遗传等若干质量的度量。此外,将改进的代码的计算时间与原始代码进行比较,以便分析重构对计算时间的影响。对于时间敏感的问题,取决于要求,重构可能不是一个不错的选择。实验结果无效的方法改进了软件的计算成本。代码长度的增加最终可能在内存消耗方面被证明是权衡。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号