Fix another error in the algorithm that generated incorrect results

Signed-off-by: 's avatarHenrique Varella Ehrenfried <hve13@inf.ufpr.br>
parent 769c45ec
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceRoot}"
],
"stopOnEntry": false,
"sourceMaps": true,
"outDir": "${workspaceRoot}/out",
"preLaunchTask": "npm"
}
]
}
\ No newline at end of file
......@@ -30,8 +30,7 @@ matrix_numbers = matrix_t
matrix_numbers.shift
matrix_numbers.pop(3)
test_cases = Array.new
test_cases = (0..matrix_size).to_a
test_cases = (0..matrix_size-1).to_a
i = 0
limit = matrix_numbers.size
......@@ -46,7 +45,7 @@ while i < limit do
test_cases_failure << temp_array
i+=1
end
i = 0
# This loop returns the alive mutants based in the lines of the file passed as ARGV[0]
mutants_not_killed = Array.new
all_lines.each do |al|
......@@ -54,8 +53,8 @@ all_lines.each do |al|
split_line = al.split(" ")
split_line.each do |sl|
temp_array << test_cases_failure[sl.split("_").last.to_i-1]
end
mutants_not_killed << (test_cases - temp_array.flatten.uniq.compact)
end
mutants_not_killed << (test_cases - temp_array.flatten.uniq.compact || temp_array.flatten.uniq.compact - test_cases)
end
# This loop returns the score and the number of mutants alive
......
BISECT
The avarege
Random 100%: 0.8434343434343434
Random 10%: 0.7990909090909091
Random 20%: 0.8064646464646466
Random 50%: 0.8341414141414141
Diferent operator: 0.7878787878787878
Each choice: 0.7878787878787878
First to Last: 0.7878787878787878
Random mix: 0.7878787878787878
Random 100%: 0.8484848484848485
Random 10%: 0.8041414141414142
Random 20%: 0.8115151515151515
Random 50%: 0.8391919191919192
Diferent operator: 0.7929292929292929
Each choice: 0.7929292929292929
First to Last: 0.7929292929292929
Random mix: 0.7929292929292929
---
BUB
The avarege
Random 100%: 0.7093023255813954
Random 10%: 0.6840697674418604
Random 20%: 0.6969767441860465
Random 50%: 0.7066279069767443
Diferent operator: 0.7034883720930233
Each choice: 0.6918604651162791
First to Last: 0.6918604651162791
Random mix: 0.6918604651162791
Random 100%: 0.7151162790697675
Random 10%: 0.6898837209302325
Random 20%: 0.7027906976744186
Random 50%: 0.7124418604651163
Diferent operator: 0.7093023255813954
Each choice: 0.6976744186046512
First to Last: 0.6976744186046512
Random mix: 0.6976744186046512
---
FIND
The avarege
Random 100%: 0.903010033444816
Random 10%: 0.8738795986622074
Random 20%: 0.8743478260869565
Random 50%: 0.9006020066889632
Diferent operator: 0.8862876254180602
Each choice: 0.8862876254180602
First to Last: 0.8896321070234113
Random mix: 0.8862876254180602
Random 100%: 0.9063545150501672
Random 10%: 0.8772240802675586
Random 20%: 0.8776923076923077
Random 50%: 0.9039464882943143
Diferent operator: 0.8896321070234113
Each choice: 0.8896321070234113
First to Last: 0.8929765886287625
Random mix: 0.8896321070234113
---
FOURBALLS
The avarege
Random 100%: 0.8321917808219178
Random 10%: 0.819486301369863
Random 20%: 0.820958904109589
Random 50%: 0.8300000000000001
Diferent operator: 0.8253424657534246
Each choice: 0.8287671232876712
First to Last: 0.8287671232876712
Random mix: 0.821917808219178
Random 100%: 0.8356164383561644
Random 10%: 0.8229109589041096
Random 20%: 0.8243835616438356
Random 50%: 0.8334246575342467
Diferent operator: 0.8287671232876712
Each choice: 0.8321917808219178
First to Last: 0.8321917808219178
Random mix: 0.8253424657534246
---
MID
The avarege
Random 100%: 0.7255520504731862
Random 10%: 0.6498422712933754
Random 20%: 0.6914511041009463
Random 50%: 0.7230914826498422
Diferent operator: 0.7129337539432177
Each choice: 0.7255520504731862
First to Last: 0.7255520504731862
Random mix: 0.7255520504731862
Random 100%: 0.7287066246056783
Random 10%: 0.6529968454258676
Random 20%: 0.6946056782334384
Random 50%: 0.7262460567823343
Diferent operator: 0.7160883280757098
Each choice: 0.7287066246056783
First to Last: 0.7287066246056783
Random mix: 0.7287066246056783
---
TRIANGULO
The avarege
Random 100%: 0.7636363636363637
Random 10%: 0.6923305785123968
Random 20%: 0.7297190082644628
Random 50%: 0.7553223140495868
Diferent operator: 0.71900826446281
Each choice: 0.7041322314049587
First to Last: 0.7057851239669422
Random mix: 0.7090909090909091
Random 100%: 0.7652892561983471
Random 10%: 0.6939834710743802
Random 20%: 0.7313719008264463
Random 50%: 0.7569752066115703
Diferent operator: 0.7206611570247934
Each choice: 0.7057851239669422
First to Last: 0.7074380165289256
Random mix: 0.7107438016528925
BISECT
The avarege
Random 100%: 0.9940119760479041
Random 10%: 0.941437125748503
Random 20%: 0.9501796407185629
Random 50%: 0.9829940119760479
Diferent operator: 0.9281437125748503
Each choice: 0.9281437125748503
First to Last: 0.9281437125748503
Random mix: 0.9281437125748503
Random 100%: 1.0
Random 10%: 0.9474251497005988
Random 20%: 0.9561676646706587
Random 50%: 0.9889820359281437
Diferent operator: 0.9341317365269461
Each choice: 0.9341317365269461
First to Last: 0.9341317365269461
Random mix: 0.9341317365269461
---
BUB
The avarege
Random 100%: 0.9918032786885246
Random 10%: 0.9563934426229509
Random 20%: 0.9744262295081967
Random 50%: 0.988032786885246
Diferent operator: 0.9836065573770492
Each choice: 0.9672131147540983
First to Last: 0.9672131147540983
Random mix: 0.9672131147540983
Random 100%: 1.0
Random 10%: 0.9645901639344263
Random 20%: 0.9826229508196721
Random 50%: 0.9962295081967214
Diferent operator: 0.9918032786885246
Each choice: 0.9754098360655737
First to Last: 0.9754098360655737
Random mix: 0.9754098360655737
---
FIND
The avarege
Random 100%: 0.9962962962962963
Random 10%: 0.9640370370370371
Random 20%: 0.9645555555555556
Random 50%: 0.9936296296296295
Diferent operator: 0.9777777777777777
Each choice: 0.9777777777777777
First to Last: 0.9814814814814815
Random mix: 0.9777777777777777
Random 100%: 1.0
Random 10%: 0.9677407407407408
Random 20%: 0.9682592592592593
Random 50%: 0.9973333333333332
Diferent operator: 0.9814814814814815
Each choice: 0.9814814814814815
First to Last: 0.9851851851851852
Random mix: 0.9814814814814815
---
FOURBALLS
The avarege
Random 100%: 0.9958847736625515
Random 10%: 0.9806172839506172
Random 20%: 0.9823868312757201
Random 50%: 0.9932510288065844
Diferent operator: 0.9876543209876543
Each choice: 0.9917695473251029
First to Last: 0.9917695473251029
Random mix: 0.9835390946502057
Random 100%: 1.0
Random 10%: 0.9847325102880659
Random 20%: 0.9865020576131687
Random 50%: 0.997366255144033
Diferent operator: 0.9917695473251029
Each choice: 0.9958847736625515
First to Last: 0.9958847736625515
Random mix: 0.9876543209876543
---
MID
The avarege
Random 100%: 0.9956521739130435
Random 10%: 0.8921739130434783
Random 20%: 0.9489130434782609
Random 50%: 0.9923478260869566
Diferent operator: 0.9782608695652174
Each choice: 0.9956521739130435
First to Last: 0.9956521739130435
Random mix: 0.9956521739130435
Random 100%: 1.0
Random 10%: 0.8965217391304348
Random 20%: 0.9532608695652174
Random 50%: 0.9966956521739131
Diferent operator: 0.9826086956521739
Each choice: 1.0
First to Last: 1.0
Random mix: 1.0
---
TRIANGULO
The avarege
Random 100%: 0.9978354978354979
Random 10%: 0.9049567099567098
Random 20%: 0.9538744588744589
Random 50%: 0.986948051948052
Diferent operator: 0.9393939393939394
Each choice: 0.922077922077922
First to Last: 0.922077922077922
Random mix: 0.9264069264069265
Random 100%: 1.0
Random 10%: 0.9071212121212121
Random 20%: 0.956038961038961
Random 50%: 0.9891125541125542
Diferent operator: 0.9415584415584416
Each choice: 0.9242424242424242
First to Last: 0.9242424242424242
Random mix: 0.9285714285714286
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment