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

M. Nakamura, A. Monden, T. Itoh, K. Matsumoto, Y. Kanzaki, H. Satoh

研究成果

12 被引用数 (Scopus)

抄録

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.

本文言語English
ホスト出版物のタイトルProceedings - 9th International Software Metrics Symposium
出版社IEEE Computer Society
ページ351-360
ページ数10
ISBN(電子版)0769519873
DOI
出版ステータスPublished - 2003
外部発表はい
イベント9th International Software Metrics Symposium - Sydney
継続期間: 9月 3 20039月 5 2003

出版物シリーズ

名前Proceedings - International Software Metrics Symposium
2003-January
ISSN(印刷版)1530-1435

Other

Other9th International Software Metrics Symposium
国/地域Australia
CitySydney
Period9/3/039/5/03

ASJC Scopus subject areas

  • ソフトウェア

フィンガープリント

「Queue-based cost evaluation of mental simulation process in program comprehension」の研究トピックを掘り下げます。これらがまとまってユニークなフィンガープリントを構成します。

引用スタイル