Abstract
To ensure reliable communications,(an algorithm has been built for bit error detection and correction). To achieve this goal, special codeword combinations and their related parity codes are used as powerful detection and correction codes. All codeword combinations are divided into four main groups, where each code in a group has a common parity code. In this paper, we used the distance feature between special selected codeword combinations and unique combinations from a fixed set to improve the BER in digital communications systems. The results of using such algorithm show that 100% correction of two errors and 66% of three errors. The probability of detection is very high and up to 8 errors in different positions. All correction and detection processes are achieved with minimum number of transmitted bits representing 4-ary PAM symbols with compression ratio equals to 76% comparing to traditional distance parity check codes.