diff --git a/1InformationTheory.md b/1InformationTheory.md index d2c1d7b..d4caf4e 100644 --- a/1InformationTheory.md +++ b/1InformationTheory.md @@ -20,3 +20,19 @@ This is essentially a practical version of Shannon's noisy-channel coding theore [Details here](https://en.wikipedia.org/wiki/Binary_symmetric_channel) +So in a nutshell, we can tranform a binary symmetric channel with this repetition trick into a binary symmetric chanel with an arbitrary low error rate. + +It is not very practical because, it is achieved at a very high cost in terms of transmited of information compared with the actual information we wish to send.We shall therefore look for cheaper alternatives. + +## Detection + +If we are ready to forget about correction and concentrate on detection there is a very simple trick. + +We transmit some bits of information $b_1\ldots b_n$ with *one additionnal bit* +$c$ that is computed via a very simple method from these bits, that is a certain function $f$ of $n$ arguments such that $f(b_1\ldots b_n)=c$. + +At reception of some word $b'_1\ldots b'_nc'$ we check whether $f(b'_1\ldots b'_n)=c'$. If it does we assume that there is no error (we might be wrong here), it it does not we assume that there is an error and ask for retransmission of this message (we are correct here). + +This is used for low level transmission of information, in particular for ascii characters (since we tend to use powers of 2 when transmitting and storing information and we have one available bit when storing the 7 bits of the ascii encoding). + +[Details here](https://en.wikipedia.org/wiki/Parity_bit) diff --git a/1InformationTheory.ods b/1InformationTheory.ods new file mode 100644 index 0000000..aa825fd Binary files /dev/null and b/1InformationTheory.ods differ diff --git a/Grepregexp/commandes.txt b/Grepregexp/commandes.txt new file mode 100644 index 0000000..e537da0 --- /dev/null +++ b/Grepregexp/commandes.txt @@ -0,0 +1,18 @@ +ls answers.txt +cd .. +ls +cd Grepregexp/ +ls +more answers.txt +tail answers.txt +wc -l answers.txt +grep [^star][^star][^star][^star][^star] answers.txt +grep [^star][^star][^star][^star][^star] answers.txt | wc -l +grep [^star][^star][^star][^star][^stare] answers.txt | wc -l +grep [^star][^star][^star][^star][^stare] answers.txt +grep [^star][^star][^star][^star][^stare] answers.txt | grep e +grep [^star][^star][^star][^star][^stare] answers.txt | grep e | wc -l +grep [^star][^star][^star][^star][^stare] answers.txt | grep e | more +grep [^starpoxye][^starpoxy][^starpoxy][^starpoxy][^starepoxy] answers.txt | grep e | wc -l +grep [^starpoxye][^starpoxy][^starpoxy][^starpoxy][^starepoxy] answers.txt | grep e +grep [^starpoxyefil][^starpoxyfil][^starpoxyfile][^starpoxyfil][^starepoxyfil] answers.txt | grep e | grep d diff --git a/JFLAP/TMSommeBinaire2rubansSurTroisieme.jff b/JFLAP/TMSommeBinaire2rubansSurTroisieme.jff new file mode 100644 index 0000000..5dd08e7 --- /dev/null +++ b/JFLAP/TMSommeBinaire2rubansSurTroisieme.jff @@ -0,0 +1,273 @@ + + turing + 3 + + + + 358.0 + 213.0 + + + + 642.0 + 206.0 + + + 972.0 + 206.0 + + + 809.0 + 410.0 + + + + + 1 + 3 + + + R + + + R + + + R + + + 1 + 2 + 1 + 1 + L + 1 + 1 + L + + 0 + L + + + 0 + 0 + 1 + 1 + R + + 0 + R + + + R + + + 1 + 1 + 0 + 0 + L + 0 + 0 + L + + 0 + L + + + 0 + 0 + + 0 + R + 0 + 0 + R + + + R + + + 0 + 0 + 0 + 0 + R + 0 + 0 + R + + + R + + + 0 + 0 + 0 + 0 + R + 1 + 1 + R + + + R + + + 0 + 0 + 1 + 1 + R + 0 + 0 + R + + + R + + + 0 + 0 + 1 + 1 + R + 1 + 1 + R + + + R + + + 0 + 0 + + 0 + R + 1 + 1 + R + + + R + + + 0 + 1 + + + L + + + L + + + L + + + 2 + 3 + + + R + + + R + + 1 + S + + + 1 + 1 + 1 + 1 + L + 0 + 0 + L + + 1 + L + + + 1 + 1 + 0 + 0 + L + 1 + 1 + L + + 1 + L + + + 2 + 2 + 1 + 1 + L + 1 + 1 + L + + 1 + L + + + 0 + 0 + 0 + 0 + R + + 0 + R + + + R + + + 2 + 2 + 0 + 0 + L + 1 + 1 + L + + 0 + L + + + 2 + 2 + 1 + 1 + L + 0 + 0 + L + + 0 + L + + + 2 + 1 + 0 + 0 + L + 0 + 0 + L + + 1 + L + + + \ No newline at end of file