From fd2cdb4d580e6dc69af30c50ffdf8d82ee2d1f25 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Wed, 10 Jun 2020 14:00:27 +0200 Subject: [PATCH] do ML decoding if K <= 6 and Chase decoding otherwise --- short_bch_code_decoder.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/short_bch_code_decoder.hh b/short_bch_code_decoder.hh index ac1dbb5..e55d66e 100644 --- a/short_bch_code_decoder.hh +++ b/short_bch_code_decoder.hh @@ -88,7 +88,7 @@ public: } } // Chase algorithm - if (1) { + if (K > 6) { const int num = 4; int worst[num] = { 0 }; for (int i = 0; i < N; ++i) { @@ -126,7 +126,7 @@ public: } } // maximum likelihood - if (0) { + if (K <= 6) { for (int msg = 0; msg < W; ++msg) { int enc = (msg << P) | par[msg]; if (enc == word)