do ML decoding if K <= 6 and Chase decoding otherwise

This commit is contained in:
Ahmet Inan 2020-06-10 14:00:27 +02:00
commit fd2cdb4d58

View file

@ -88,7 +88,7 @@ public:
} }
} }
// Chase algorithm // Chase algorithm
if (1) { if (K > 6) {
const int num = 4; const int num = 4;
int worst[num] = { 0 }; int worst[num] = { 0 };
for (int i = 0; i < N; ++i) { for (int i = 0; i < N; ++i) {
@ -126,7 +126,7 @@ public:
} }
} }
// maximum likelihood // maximum likelihood
if (0) { if (K <= 6) {
for (int msg = 0; msg < W; ++msg) { for (int msg = 0; msg < W; ++msg) {
int enc = (msg << P) | par[msg]; int enc = (msg << P) | par[msg];
if (enc == word) if (enc == word)