TY - GEN
T1 - Queue-based cost evaluation of mental simulation process in program comprehension
AU - Nakamura, M.
AU - Monden, A.
AU - Itoh, T.
AU - Matsumoto, K.
AU - Kanzaki, Y.
AU - Satoh, H.
N1 - Publisher Copyright:
© 2003 IEEE.
PY - 2003
Y1 - 2003
N2 - We present 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 nonconstant 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.
AB - We present 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 nonconstant 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.
KW - Computational modeling
KW - Computer crime
KW - Computer hacking
KW - Computer simulation
KW - Cost function
KW - Debugging
KW - Humans
KW - Information science
KW - Programming profession
KW - Protection
UR - http://www.scopus.com/inward/record.url?scp=84903598344&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=84903598344&partnerID=8YFLogxK
U2 - 10.1109/METRIC.2003.1232480
DO - 10.1109/METRIC.2003.1232480
M3 - Conference contribution
AN - SCOPUS:84903598344
T3 - Proceedings - International Software Metrics Symposium
SP - 351
EP - 360
BT - Proceedings - 9th International Software Metrics Symposium
PB - IEEE Computer Society
T2 - 9th International Software Metrics Symposium
Y2 - 3 September 2003 through 5 September 2003
ER -