Queue-based cost evaluation of mental simulation process in program comprehension

被引:5
|
作者
Nakamura, M [1 ]
Monden, A [1 ]
Itoh, T [1 ]
Matsumoto, K [1 ]
Kanzaki, Y [1 ]
Satoh, H [1 ]
机构
[1] Nara Inst Sci & Technol, Grad Sch Informat Sci, Nara, Japan
关键词
D O I
10.1109/METRIC.2003.1232480
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper presents a method to estimate the cost of mental (hand) simulation of programs. In mental simulation, human short-term memory is extensively used to recall and memorize values of variables. When the simulation reaches a variable reference, the simulation can be performed easily if the value is still remembered. However if not, we have to backtrack the simulation until the value is obtained, which is time-consuming. Taking the above observation into consideration, we first present a model, called virtual mental simulation model (VMSM), which exploits a queue representing short-term memory. The VMSM takes one of the abstract processes recall or backtrack, depending on whether the variable is currently stored in the queue or not. Then, applying cost functions to the VMSM, we derive four dynamic metrics reflecting the cost of mental simulation. In our empirical study, the proposed VMSM metrics reveal that the backtrack process for non-constant variables gives a significant impact on the cost of mental simulation. Since the proposed method can be fully automated, it can provide a practical means to estimate the cost of mental simulation, which can be also used as a program comprehension measure.
引用
收藏
页码:351 / 360
页数:10
相关论文
共 50 条
  • [1] iQ: an efficient and flexible queue-based simulation framework
    Roca, Damian
    Nemirovsky, Daniel
    Casas, Marc
    Moreto, Miquel
    Valero, Mateo
    Nemirovsky, Mario
    2017 IEEE 25TH INTERNATIONAL SYMPOSIUM ON MODELING, ANALYSIS, AND SIMULATION OF COMPUTER AND TELECOMMUNICATION SYSTEMS (MASCOTS), 2017, : 143 - 149
  • [2] Queue-Based Modeling of the Aircraft Arrival Process at a Single Airport
    Itoh, Eri
    Mitici, Mihaela
    AEROSPACE, 2019, 6 (10)
  • [3] A queue-based aggregation approach for performance evaluation of a production system with an AMHS
    Mohammadi, Mehrdad
    Dauzere-peres, Stephane
    Yugma, Claude
    Karimi-Mamaghan, Maryam
    COMPUTERS & OPERATIONS RESEARCH, 2020, 115
  • [4] Queue-based method for efficient simulation of biological self-assembly systems
    Jamalyaria, F
    Rohlfs, R
    Schwartz, R
    JOURNAL OF COMPUTATIONAL PHYSICS, 2005, 204 (01) : 100 - 120
  • [5] A queue-based macroscopic model for performance evaluation of congested urban traffic networks
    Ciccia, Marco
    Giglio, Davide
    Minciardi, Riccardo
    Viarengo, Matteo
    2007 IEEE INTELLIGENT TRANSPORTATION SYSTEMS CONFERENCE, VOLS 1 AND 2, 2007, : 450 - 456
  • [6] DTALite: A queue-based mesoscopic traffic simulator for fast model evaluation and calibration
    Zhou, Xuesong
    Taylor, Jeffrey
    COGENT ENGINEERING, 2014, 1 (01):
  • [7] Mental Simulation and Product Evaluation: The Affective and Cognitive Dimensions of Process Versus Outcome Simulation
    Zhao, Min
    Hoeffler, Steve
    Zauberman, Gal
    JOURNAL OF MARKETING RESEARCH, 2011, 48 (05) : 827 - 839
  • [8] Optimizing Patient Waiting Time in the Outpatient Department of a Multi-specialty Indian Hospital: The Role of Technology Adoption and Queue-Based Monte Carlo Simulation
    Rema V.
    Sikdar K.
    SN Computer Science, 2021, 2 (3)
  • [9] Process evaluation and optimization based on numerical simulation
    Lin, Xin-Bo
    Li, Rong-Xian
    Liu, Bai-Cheng
    Xiong, Shou-Mei
    Zhang, Zhi-Liang
    Suxing Gongcheng Xuebao/Journal of Plasticity Engineering, 2005, 12 (01): : 58 - 63
  • [10] Simulation-Based Cost Evaluation of Maritime Transportation
    Pehlivan, Davut
    Cicek, Kadir
    JOURNAL OF ETA MARITIME SCIENCE, 2023, 11 (04) : 270 - 281