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

被引:0
|
作者
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 条
  • [1] Batch scheduling and common due date assignment problem: an NP-hard case
    Kovalyov, MY
    DISCRETE APPLIED MATHEMATICS, 1997, 80 (2-3) : 251 - 254
  • [2] Is the Protein Model Assignment problem under linked branch lengths NP-hard?
    Koberta, Kassian
    Hauser, Joerg
    Stamatakis, Alexandros
    THEORETICAL COMPUTER SCIENCE, 2014, 524 : 48 - 58
  • [3] The string barcoding problem is NP-hard
    Dalpasso, M
    Lancia, G
    Rizzi, R
    COMPARATIVE GENOMICS, 2005, 3678 : 88 - 96
  • [4] THE STO-PROBLEM IS NP-HARD
    APT, KR
    BOAS, PV
    WELLING, A
    JOURNAL OF SYMBOLIC COMPUTATION, 1994, 18 (05) : 489 - 495
  • [5] NP-Hard Task Schedules and Methods of Its Decision
    Diveev, A., I
    Bobr, O., V
    2017 11TH IEEE INTERNATIONAL CONFERENCE ON APPLICATION OF INFORMATION AND COMMUNICATION TECHNOLOGIES (AICT 2017), 2017,
  • [6] THE PARALLEL-MACHINE COMMON DUE-DATE ASSIGNMENT AND SCHEDULING PROBLEM IS NP-HARD
    CHENG, TCE
    KAHLBACHER, HG
    ASIA-PACIFIC JOURNAL OF OPERATIONAL RESEARCH, 1992, 9 (02) : 235 - 238
  • [7] The Planar k-Means Problem is NP-Hard
    Mahajan, Meena
    Nimbhorkar, Prajakta
    Varadarajan, Kasturi
    WALCOM: ALGORITHMS AND COMPUTATION, PROCEEDINGS, 2009, 5431 : 274 - +
  • [8] The planar k-means problem is NP-hard
    Mahajan, Meena
    Nimbhorkar, Prajakta
    Varadarajan, Kasturi
    THEORETICAL COMPUTER SCIENCE, 2012, 442 : 13 - 21
  • [9] De Bruijn Superwalk with Multiplicities Problem is NP-hard
    Kapun, Evgeny
    Tsarev, Fedor
    BMC BIOINFORMATICS, 2013, 14
  • [10] The real nonnegative inverse eigenvalue problem is NP-hard
    Borobia, Alberto
    Canogar, Roberto
    LINEAR ALGEBRA AND ITS APPLICATIONS, 2017, 522 : 127 - 139