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 条
  • [31] Variational genetic algorithm for NP-hard scheduling problem solution
    Diveev, A. I.
    Bobr, O. V.
    XII INTERNATIONAL SYMPOSIUM INTELLIGENT SYSTEMS 2016, (INTELS 2016), 2017, 103 : 52 - 58
  • [32] Measurement errors make the partial digest problem NP-hard
    Cieliebak, M
    Eidenbenz, S
    LATIN 2004: THEORETICAL INFORMATICS, 2004, 2976 : 379 - 390
  • [33] The computation of the Betti numbers of an elliptic space is a NP-hard problem
    Garvín, A
    Lechuga, L
    TOPOLOGY AND ITS APPLICATIONS, 2003, 131 (03) : 235 - 238
  • [34] Minimum constraint removal problem for line segments is NP-hard
    Bigham, Bahram Sadeghi
    DISCRETE MATHEMATICS ALGORITHMS AND APPLICATIONS, 2023, 15 (01)
  • [35] The proton arc therapy treatment planning problem is NP-Hard
    Wase, Viktor
    Wuyckens, Sophie
    Lee, John A.
    Saint-Guillain, Michael
    COMPUTERS IN BIOLOGY AND MEDICINE, 2024, 171
  • [36] THE MINIMUM-LENGTH GENERATOR SEQUENCE PROBLEM IS NP-HARD
    EVEN, S
    GOLDREICH, O
    JOURNAL OF ALGORITHMS, 1981, 2 (03) : 311 - 313
  • [37] Polynomial-Time Solvability of the One-Dimensional Case of an NP-Hard Clustering Problem
    Kel'manov, A., V
    Khandeev, V., I
    COMPUTATIONAL MATHEMATICS AND MATHEMATICAL PHYSICS, 2019, 59 (09) : 1553 - 1561
  • [38] An analytical study of NP-hard protein folding problems
    Thilagavathi, N.
    Amudha, T.
    2014 INTERNATIONAL CONFERENCE ON INTELLIGENT COMPUTING APPLICATIONS (ICICA 2014), 2014, : 184 - 188
  • [39] Polynomial-Time Solvability of the One-Dimensional Case of an NP-Hard Clustering Problem
    A. V. Kel’manov
    V. I. Khandeev
    Computational Mathematics and Mathematical Physics, 2019, 59 : 1553 - 1561
  • [40] ALLOCATING HARD REAL-TIME TASKS - AN NP-HARD PROBLEM MADE EASY
    TINDELL, KW
    BURNS, A
    WELLINGS, AJ
    REAL-TIME SYSTEMS, 1992, 4 (02) : 145 - 165