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 条
  • [41] A computationally faster randomized algorithm for NP-hard controller design problem
    Moses, M. Jerome
    Ramakalyan, Ayyagari
    1600, Springer Verlag (235): : 411 - 417
  • [42] What is the Right Context for an Engineering Problem: Finding Such a Context is NP-Hard
    Ceberio, Martine
    Kreinovich, Vladik
    Nguyen, Hung T.
    Sriboonchitta, Songsak
    Ouncharoen, Rujira
    2015 IEEE SYMPOSIUM SERIES ON COMPUTATIONAL INTELLIGENCE (IEEE SSCI), 2015, : 1621 - 1626
  • [43] An Improved Ants Colony Algorithm for NP-hard Problem of Travelling Salesman
    Luo Yabo
    Zhang, Shikun
    Feng, Zhang
    PERVASIVE COMPUTING AND THE NETWORKED WORLD, 2014, 8351 : 432 - 440
  • [44] SPACE-TIME ISOMORPHISM-PROBLEM IS INTRACTABLE (NP-HARD)
    KREINOVICH, V
    INTERNATIONAL JOURNAL OF THEORETICAL PHYSICS, 1991, 30 (09) : 1249 - 1257
  • [45] A Fast And Optimal Deterministic Algorithm For NP-Hard Antenna Selection Problem
    Iqbal, Naveed
    Schneider, Christian
    Thom, Reiner S.
    2015 IEEE 26TH ANNUAL INTERNATIONAL SYMPOSIUM ON PERSONAL, INDOOR, AND MOBILE RADIO COMMUNICATIONS (PIMRC), 2015, : 895 - 899
  • [46] On the Solution of the Steiner Tree NP-Hard Problem via Physarum BioNetwork
    Caleffi, Marcello
    Akyildiz, Ian F.
    Paura, Luigi
    IEEE-ACM TRANSACTIONS ON NETWORKING, 2015, 23 (04) : 1092 - 1106
  • [47] Solution of the NP-hard total tardiness minimization problem in scheduling theory
    Lazarev A.A.
    Computational Mathematics and Mathematical Physics, 2007, 47 (6) : 1039 - 1049
  • [48] CONVEX APPROXIMATION OF THE NP-HARD SEARCH PROBLEM IN FEATURE SUBSET SELECTION
    Naghibi, Tofigh
    Hoffmann, Sarah
    Pfister, Beat
    2013 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING (ICASSP), 2013, : 3273 - 3277
  • [49] What is the Right Context for an Engineering Problem: Finding Such a Context is NP-Hard
    Ceberio, Martine
    Kreinovich, Vladik
    Nguyen, Hung T.
    Sriboonchitta, Songsak
    Ouncharoen, Rujira
    2015 IEEE SYMPOSIUM SERIES ON COMPUTATIONAL INTELLIGENCE (IEEE SSCI), 2015, : 1615 - 1620
  • [50] Batch scheduling with deadlines on parallel machines: An NP-hard case
    Kovalyov, MY
    Shafransky, YM
    INFORMATION PROCESSING LETTERS, 1997, 64 (02) : 69 - 74