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

被引:1
|
作者
Tariq, Huda [1 ]
Arshad, Maliha [1 ]
Basit, Wafa [1 ]
机构
[1] FAST NU, Dept Comp Sci, Lahore, Pakistan
关键词
refactoring; genetic algorithm; task assignment; computation;
D O I
10.1109/icacs47775.2020.9055956
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
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 multi-objective 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.
引用
收藏
页数:9
相关论文
共 50 条
  • [21] Reconstructing binary matrices with neighborhood constraints: An NP-hard problem
    Frosini, A.
    Picouleau, C.
    Rinaldi, S.
    DISCRETE GEOMETRY FOR COMPUTER IMAGERY, PROCEEDINGS, 2008, 4992 : 392 - +
  • [22] The Straight-Line RAC Drawing Problem Is NP-Hard
    Argyriou, Evmorfia N.
    Bekos, Michael A.
    Symvonis, Antonios
    SOFSEM 2011: THEORY AND PRACTICE OF COMPUTER SCIENCE, 2011, 6543 : 74 - 85
  • [23] The realization problem for Euclidean minimum spanning trees is NP-Hard
    Eades, P
    Whitesides, S
    ALGORITHMICA, 1996, 16 (01) : 60 - 82
  • [24] ON THE COMPLEXITY OF TEST CASE GENERATION FOR NP-HARD PROBLEMS
    SANCHIS, LA
    INFORMATION PROCESSING LETTERS, 1990, 36 (03) : 135 - 140
  • [25] Noisy data make the partial digest problem NP-hard
    Cieliebak, M
    Eidenbenz, S
    Penna, P
    ALGORITHMS IN BIOINFORMATICS, PROCEEDINGS, 2003, 2812 : 111 - 123
  • [26] The synthesis problem of decentralized energy systems is strongly NP-hard
    Goderbauer, Sebastian
    Comis, Martin
    Willamowski, Felix J. L.
    COMPUTERS & CHEMICAL ENGINEERING, 2019, 124 : 343 - 349
  • [27] The word problem for 1LC congruences is NP-hard
    Rosaz, L
    THEORETICAL COMPUTER SCIENCE, 2003, 306 (1-3) : 245 - 268
  • [28] The minimum feedback arc set problem is NP-hard for tournaments
    Charbit, Pierre
    Thomasse, Stephan
    Yeo, Anders
    COMBINATORICS PROBABILITY & COMPUTING, 2007, 16 (01): : 1 - 4
  • [29] Comparing Problem Solving Strategies for NP-hard Optimization Problems
    Hidalgo-Herrero, Mercedes
    Rabanal, Pablo
    Rodriguez, Ismael
    Rubio, Fernando
    FUNDAMENTA INFORMATICAE, 2013, 124 (1-2) : 1 - 25
  • [30] Linear problem kernels for NP-hard problems on planar graphs
    Guo, Jiong
    Niedermeier, Rolf
    AUTOMATA, LANGUAGES AND PROGRAMMING, PROCEEDINGS, 2007, 4596 : 375 - +