13. 戦略型ゲーム
13
戦略 A 戦略 B
戦略 A (効用値 A, 効用値 B) (効用値 C, 効用値 D)
戦略 B (効用値 E, 効用値 F) (効用値 G, 効用値 H)
プレイヤー B
プレイヤー A
• プレイヤー,戦略,効用値の3つの要素からなるゲーム
.
• 各プレイヤーの選択する戦略の組み合わせによって,各プレ
イヤーは対応する効用値(利益とコストからなる値)を得ること
ができる.
17. コードレビューのゲームモデル(2)
17
レビューする
(Cooperate, C)
レビューしない
(Defect, D)
レビューする
(Cooperate, C)
レビューしない
(Defect, D)
レビュワー B
レビュワー A
• このようなゲームモデルはスノードリフトゲームと呼ばれ,フ
リーライドが可能な状況を分析するゲームモデルとして知られ
ている[4][5].
[4] R. Sugden, The Economics of Rights, Cooperation and Welfare, ser. The Economics of Rights, Co-operation and
Welfare. Palgrave Macmillan, 2005.
[5] C. Hauert and M. Doebeli, “Spatial structure often inhibits the evolution of cooperation in the snowdrift game,”
Nature, vol. 428, no. 6983, pp. 643– 646, 2004.
25. 考察
• 未熟な開発者の作成したソースコードは,熟練した開発者の
作成したソースコードに比べて1.5から24倍ほど多くのバグが
含まれていることが報告されている[6].
• 未熟な開発者の作成したソースコードは,熟練した開発者の
作成したソースコードに比べて2から19倍ほど長い期間,レ
ビューされずに放置される傾向が高いことが報告されている[7].
25
[7] A. Bosu and J. C. Carver, “Impact of developer reputation on code review outcomes in oss projects: An empirical
investigation,” in Proc. of 8th ACM/IEEE Int. Symp. on Empirical Softw. Eng. and Measurement, ser. ESEM ’14. New
York, NY, USA: ACM, 2014, pp. 33:1–33:10.
[6] A. Bosu, “Characteristics of the vulnerable code changes identified through peer code review,” in Companion
Proceedings of the 36th International Conference on Software Engineering, ser. ICSE Companion 2014. New York, NY,
USA: ACM, 2014, pp. 736–738.
定量的な分析からも,利得が低い(コストが高い)ソースコードは,
レビューされずに放置される傾向にあることが報告されている.