# Hardware

Notions théoriques liées au hardware.

# Hardware - Le binaire

<table id="bkmrk-difficult%C3%A9%2A-%3Cdescrip" style="border-collapse: collapse; width: 100%; height: 46.8px; border-width: 1px; border-style: hidden;"><colgroup><col style="width: 20%;"></col><col style="width: 80%;"></col></colgroup><tbody><tr style="height: 46.8px;"><td style="height: 46.8px; border: 1px groove rgb(52,73,94);">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/H62debutant-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/H62debutant-png.png)  
</td><td style="height: 46.8px; border-width: 1px; background-color: rgb(236,202,250); vertical-align: top;">Difficulté : Débutant

Notions : Binaire, base 2

</td></tr></tbody></table>

---

### <span style="color: rgb(35,111,161);">**<span style="text-decoration: underline;">I. Introduction</span>**</span>

> **Il y a 10 types de personnes dans le monde : celles qui savent compter en binaire et les autres.**
> 
>   *- Blague de geek*

Le langage binaire est le langage informatique le plus <span style="color: rgb(132,63,161);">***bas niveau***</span>.

En effet un ordinateur fonctionnant avec du courant électrique, il n'y a que deux états possible pour un bit à l'instant T.

Circuit fermé, présence de courant : <span style="color: rgb(132,63,161);">***1***</span>

Circuit ouvert, absence de courant : <span style="color: rgb(132,63,161);">0</span>

De par ses deux valeurs possible, le binaire est donc un système de calcul en <span style="color: rgb(132,63,161);">***base 2***</span>.

---

### **<span style="text-decoration: underline;"><span style="color: rgb(35,111,161); text-decoration: underline;">II. Les bases de calcul</span>  
</span>**

<p class="callout info">**Information** : Quel que soit le calcul, il est à noter que la première valeur possible est toujours 0 (Zero).  
</p>

#### **<span style="color: rgb(53,152,219);">2.1 Base 10</span>** 

La base 10 est la base naturelle pour l'humain et celle courrament utilisée dans le monde.

De par le fait que les mains humaines disposent de 10 doigts, c'est en effet plus pratique et instinctif pour compter.

on a donc les valeur suivantes possibles :

<details id="bkmrk-valeurs-base-10-0-%3D0"><summary>Valeurs base 10</summary>

0 =00

1 = 01

2 = 02

3 = 03

4 = 04

5 = 05

6 = 06

7 = 07

8 = 08

9 = 09

</details>Une fois la valeur maximum atteinte (09) pour incrémenter au delà, on ajoute une dizaine devant l'unité et on continue ainsi à incrémenter.

10, 20, 30 etc... etc...

#### **<span style="color: rgb(53,152,219);">2.1 Base 2</span>** 

En binaire le principe reste le même qu'en base 10 , on à donc 0, 1 et quand la valeur maximum est atteinte, on incrémente.

<details id="bkmrk-valeurs-base-2-0-%3D0-"><summary>Valeurs base 2</summary>

0 =0

1 = 1

2 = 10

3 = 11

4 = 100

5 = 101

6 = 110

7 = 111

8 = 1000

9 = 1001

etc...

</details>Si de prime abord, cela peut ne pas sembler naturel, il s'agit juste de reproduire la même logique de comptage que la base 10, mais avec seulement 2 valeurs disponible.

---

### **<span style="text-decoration: underline;"><span style="color: rgb(35,111,161); text-decoration: underline;">III. l'Octet</span>  
</span>**

#### <span style="color: rgb(53,152,219);">**3.1 Construction**</span>

Heureusement, pour rendre tout cela plus lisible et car un bit seul ne fait pas sens dès lors qu'il s'agit de compter au delà de 1, on va regrouper ces bits par paquets. Ces packets sont appelés des <span style="color: rgb(132,63,161);">***registres***</span>.

Le registre le plus connu et celui qui sera courrament utilisé est l'<span style="color: rgb(132,63,161);">***octet***</span> (un paquet de 8 bits).

Basé sur ce principe on aura donc la représentation suivante : <span style="color: rgb(132,63,161);">***00000000***</span>

Et là encore, si cela paraît compliqué, il existe un moyen simple et mnémotechnique de se représenter facilement les valeurs en binaire.

En effet, le binaire à une particularité, pour chaque bit que l'on rajoute devant, on double les possibilité, ce qui fait que chaque bit a une valeur différente. Cela s’appelle un <span style="color: rgb(132,63,161);">***Poid***</span> de bit.

Pour se donner une bonne idée, voici la valeur de chaque bit dans un octet :

<table id="bkmrk-128-64-32-16-8-4-2-1" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

#### **<span style="color: rgb(53,152,219);">3.2 Conversion base 10 / Base 2</span>** 

Dès lors, pour convertir des nombres binaires en base 10 et de base 10 en binaire, cela deviens facile.

Il suffit d'additionner les valeurs de tous les bits égaux à 1. Ainsi,

<span style="color: rgb(132,63,161);">***01101011***</span> par exemple se note :

<table id="bkmrk-128-64-32-16-8-4-2-1-1" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">**1**  
</td><td style="height: 29.8px;">**1**  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">**1**  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">**1**  
</td><td style="height: 29.8px;">**1**  
</td></tr></tbody></table>

soit : 64 + 32 + 8 + 2 + 1 = <span style="color: rgb(132,63,161);">***107***</span>.

De la même manière, pour convertir un nombre en base 10 en binaire, il faudra additionner en partant de la droite les valeurs pour arriver à la somme du nombre que l'on veut et passer leurs valeurs à 1.

<span style="color: rgb(132,63,161);">***218***</span> par exemple se note :

<details id="bkmrk-d%C3%A9tail-de-l%27op%C3%A9ratio"><summary>Détail de l'opération</summary>

128 &lt; 218, donc on part avec 128 = 1.

<table id="bkmrk-128-64-32-16-8-4-2-1-2" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

128 + 64 = 192.

192 &lt; 218, le bit avec une valeur de 64 est donc à 1.

<table id="bkmrk-128-64-32-16-8-4-2-1-3" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

192+32 = 224.

224 &gt; 218 donc le bit avec une valeur de 32 est à 0. On passe à la valeur suivante.

<table id="bkmrk-128-64-32-16-8-4-2-1-4" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

192+16 = 208.

208 &lt; 218, donc le bit avec une valeur de 16 est à 1.

<table id="bkmrk-128-64-32-16-8-4-2-1-5" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

208+8 = 216.

216 &lt; 218, donc le bit avec une valeur de 8 est à 1.

<table id="bkmrk-128-64-32-16-8-4-2-1-6" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

216+4 = 220.

220 &gt; 218, donc le bit avec une valeur de 4 est à 0.

<table id="bkmrk-128-64-32-16-8-4-2-1-7" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

216+2 = 218.

218 = 218. On passe donc notre dernier bit (celui dont la valeur est 2) à 1. La valeur des bits restant à droite sera donc 0.

<table id="bkmrk-128-64-32-16-8-4-2-1-8" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td></tr></tbody></table>

</details><table id="bkmrk-128-64-32-16-8-4-2-1-9" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1  
</td><td style="height: 29.8px;">1  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">1  
</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">1  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

<p class="callout info">**Note** : Si l'on additionne toutes les valeurs, le résultat est de 255. Par conséquent, si l'on doit traiter des nombres supérieurs à 255, on ajoutera simplement un octet devant, et l'on poursuivra le tableau de la manière suivante.</p>

<table id="bkmrk-32768-16384-8192-409" style="border-collapse: collapse; width: 100%; height: 95.05px;"><colgroup><col style="width: 51.3095%;"></col><col style="width: 48.6905%;"></col></colgroup><tbody><tr style="height: 66.25px;"><td style="border-style: hidden; height: 66.25px;"><table style="border-collapse: collapse; width: 102.228%;"><colgroup><col style="width: 14.6402%;"></col><col style="width: 14.1439%;"></col><col style="width: 13.1514%;"></col><col style="width: 12.6551%;"></col><col style="width: 12.4069%;"></col><col style="width: 12.1588%;"></col><col style="width: 10.4218%;"></col><col style="width: 9.92556%;"></col></colgroup><tbody><tr><td style="background-color: rgb(236,202,250);">32768  
</td><td style="background-color: rgb(236,202,250);">16384  
</td><td style="background-color: rgb(236,202,250);">8192  
</td><td style="background-color: rgb(236,202,250);">4096  
</td><td style="background-color: rgb(236,202,250);">2048  
</td><td style="background-color: rgb(236,202,250);">1024  
</td><td style="background-color: rgb(236,202,250);">512  
</td><td style="background-color: rgb(236,202,250);">256  
</td></tr></tbody></table>

</td><td style="border-style: hidden; height: 66.25px;"><table style="border-collapse: collapse; width: 100.374%;"><colgroup><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col></colgroup><tbody><tr><td style="background-color: rgb(194,224,244);">128  
</td><td style="background-color: rgb(194,224,244);">64  
</td><td style="background-color: rgb(194,224,244);">32  
</td><td style="background-color: rgb(194,224,244);">16  
</td><td style="background-color: rgb(194,224,244);">8  
</td><td style="background-color: rgb(194,224,244);">4  
</td><td style="background-color: rgb(194,224,244);">2  
</td><td style="background-color: rgb(194,224,244);">1  
</td></tr></tbody></table>

</td></tr><tr style="height: 28.8px;"><td class="align-center" style="border-style: hidden; height: 28.8px; vertical-align: top;">*octet 2*  
</td><td class="align-center" style="border-style: hidden; height: 28.8px; vertical-align: top;">*octet 1*  
</td></tr></tbody></table>

#### **<span style="color: rgb(53,152,219);">3.3 Les Échelles de tailles</span>** 

Partant du principe qu'un octet peut stocker toutes sortes de données et que les bits sont donc l'unité de mesure la plus petite, si l'on veut stocker plus de données, on sera donc obligé d'accoler des octets, ou utiliser des registres plus grands.

Au bout d'un moment, il faudra que nos échelles de mesures continuent d'avoir un sens.

Si on empile beaucoup d'octets, on ne va pas continuer à dire, la taille de ce bloc est de 1 228 283 219 233 274 272 octets.

Pour cela, sur le même principe que les tableau de conversion, on va utiliser d'autre échelles.

A l'instar des unités de mesures classiques (gramme, kilogramme) ( centimètre, mètre, kilomètre) il va falloir établir un tableau de conversion pour faire la mise à l'échelle.

Les unités sont donc les suivante :

- **bit** (unité)
- **octet** (8 bits)
- **KiloOctet** ou **Ko** (1024 octets)
- **MegaOctet** ou **Mo** (1024 Ko)
- **GigaOctet** ou **Go** (1024 Mo)
- **TéraOctet** ou **To** (1024 Go)
- **PétaOctet** ou **Po** (1024 To)

<p class="callout info">**Note** : A l'américaine, l'octet se dit <span style="color: rgb(132,63,161);">***Byte***</span>. Un equivalent est donc, le GigaByte ou Mega byte, etc... Notés : Kb, Mb, Gb, etc...</p>

<p class="callout success">**Trivia** : au dessus du péta, il y a l'Exa, le Zeta, le Yotta, Ronna, Quetta, ...</p>

---

### **<span style="text-decoration: underline;"><span style="color: rgb(35,111,161); text-decoration: underline;">IV. Les opérations en binaire</span>  
</span>**

#### <span style="color: rgb(53,152,219);">**4.1 Addition**</span>

Cela fonctionne plus ou moins comme une addition standard, avec les retenues.

Selon les principes suivants :

0 + 0 = 0

(0 + 1 ou 1+0) = 1

1+1 = 10 (équivalent de 2) Donc dans ce cas, l'on pose 0 et on retient 1.

Par exemple : <span style="color: rgb(132,63,161);">***00100101 + 10110010***</span> ( soit 37 + 178 )

<details id="bkmrk-d%C3%A9tail-de-l%27op%C3%A9ratio-1"><summary>Détail de l'opération</summary>

<table style="border-collapse: collapse; width: 100%; height: 795.05px;"><colgroup><col style="width: 47.2426%;"></col><col style="width: 52.7574%;"></col></colgroup><tbody><tr style="height: 172.45px;"><td style="height: 172.45px; border-style: hidden;"><table style="border-collapse: collapse; width: 95.2817%; height: 97px;"><tbody><tr><td style="width: 26.805%;">retenue</td><td style="width: 8.64678%;">  
</td><td style="width: 9.22323%;">  
</td><td style="width: 9.22323%;">  
</td><td style="width: 9.51146%;">  
</td><td style="width: 9.51146%;">  
</td><td style="width: 9.22323%;">  
</td><td style="width: 8.64678%;">  
</td><td style="width: 9.51146%; background-color: rgb(191,237,210);">  
</td></tr><tr><td style="width: 26.805%;">Nombre 1</td><td style="width: 8.64678%;">0</td><td style="width: 9.22323%;">0</td><td style="width: 9.22323%;">1</td><td style="width: 9.51146%;">0</td><td style="width: 9.51146%;">0</td><td style="width: 9.22323%;">1</td><td style="width: 8.64678%;">0</td><td style="width: 9.51146%; background-color: rgb(191,237,210);">1</td></tr><tr><td style="width: 26.805%;">Nombre 2</td><td style="width: 8.64678%;">1</td><td style="width: 9.22323%;">0</td><td style="width: 9.22323%;">1</td><td style="width: 9.51146%;">1</td><td style="width: 9.51146%;">0</td><td style="width: 9.22323%;">0</td><td style="width: 8.64678%;">1</td><td style="width: 9.51146%; background-color: rgb(191,237,210);">0</td></tr><tr><td style="width: 26.805%;">**Total**</td><td style="width: 8.64678%;">  
</td><td style="width: 9.22323%;">  
</td><td style="width: 9.22323%;">  
</td><td style="width: 9.51146%;">  
</td><td style="width: 9.51146%;">  
</td><td style="width: 9.22323%;">  
</td><td style="width: 8.64678%;">  
</td><td style="width: 9.51146%; background-color: rgb(191,237,210);">**1**</td></tr></tbody></table>

</td><td class="align-left" style="vertical-align: middle; height: 172.45px; border-style: hidden;">*On commence par la droite. 1+0 = 1, pas de retenue.*</td></tr><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 95.5563%;"><colgroup><col style="width: 26.4406%;"></col><col style="width: 8.62193%;"></col><col style="width: 8.91019%;"></col><col style="width: 8.62106%;"></col><col style="width: 8.90933%;"></col><col style="width: 8.90933%;"></col><col style="width: 8.90933%;"></col><col style="width: 11.2085%;"></col><col style="width: 9.19672%;"></col></colgroup><tbody><tr><td style="width: 26.8503%;">retenue</td><td style="width: 8.55668%;">  
</td><td style="width: 9.14679%;">  
</td><td style="width: 9.14679%;">  
</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">  
</td><td style="width: 7.96656%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">  
</td></tr><tr><td style="width: 26.8503%;">Nombre 1</td><td style="width: 8.55668%;">0</td><td style="width: 9.14679%;">0</td><td style="width: 9.14679%;">1</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">0</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">0</td><td style="width: 7.96656%; background-color: rgb(191,237,210);">1</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">0</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr><tr><td style="width: 26.8503%;">Nombre 2</td><td style="width: 8.55668%;">1</td><td style="width: 9.14679%;">0</td><td style="width: 9.14679%;">1</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">1</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">0</td><td style="width: 7.96656%; background-color: rgb(191,237,210);">0</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">0</td></tr><tr><td style="width: 26.8503%;">**Total**</td><td style="width: 8.55668%;">  
</td><td style="width: 9.14679%;">  
</td><td style="width: 9.14679%;">  
</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">0</td><td style="width: 7.96656%; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 155.65px;">*0 + 1 = 1, pas de retenue,*

*1 + 0 = 1, pas de retenue,*

*0 + 0 = 0, pas de retenue,*

*0 + 1 = 1, pas de retenue.*

</td></tr><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 96.1054%;"><colgroup><col style="width: 25.1417%;"></col><col style="width: 8.55981%;"></col><col style="width: 10.5821%;"></col><col style="width: 8.57102%;"></col><col style="width: 10.2852%;"></col><col style="width: 9.42812%;"></col><col style="width: 10.2852%;"></col><col style="width: 9.14242%;"></col><col style="width: 8.57102%;"></col></colgroup><tbody><tr><td style="width: 26.8503%;">retenue</td><td style="width: 8.55668%;">  
</td><td style="width: 9.14679%; background-color: rgb(194,224,244);">**<span style="color: rgb(53,152,219);">1</span>**</td><td style="width: 9.14679%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">  
</td></tr><tr><td style="width: 26.8503%;">Nombre 1</td><td style="width: 8.55668%;">0</td><td style="width: 9.14679%;">0</td><td style="width: 9.14679%; background-color: rgb(191,237,210);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr><tr><td style="width: 26.8503%;">Nombre 2</td><td style="width: 8.55668%;">1</td><td style="width: 9.14679%;">0</td><td style="width: 9.14679%; background-color: rgb(191,237,210);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">0</td></tr><tr><td style="width: 26.8503%;">**Total**</td><td style="width: 8.55668%;">  
</td><td style="width: 9.14679%;">  
</td><td style="width: 9.14679%; background-color: rgb(191,237,210);">**<span style="color: rgb(132,63,161);">0</span>**</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 155.65px;">*1 + 1 = 10. je pose **<span style="color: rgb(132,63,161);">0</span>** et je retiens **<span style="color: rgb(53,152,219);">1</span>**.*</td></tr><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 96.6546%;"><colgroup><col style="width: 24.4353%;"></col><col style="width: 8.80807%;"></col><col style="width: 10.2296%;"></col><col style="width: 8.23896%;"></col><col style="width: 9.94459%;"></col><col style="width: 10.2287%;"></col><col style="width: 9.66046%;"></col><col style="width: 8.80807%;"></col><col style="width: 9.37633%;"></col></colgroup><tbody><tr><td style="width: 26.8503%;">retenue</td><td style="width: 8.55668%;">  
</td><td style="width: 9.14679%; background-color: rgb(194,224,244);"><span style="color: rgb(35,111,161);">**1**</span></td><td style="width: 9.14679%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">  
</td></tr><tr><td style="width: 26.8503%;">Nombre 1</td><td style="width: 8.55668%;">0</td><td style="width: 9.14679%; background-color: rgb(236,202,250);"><span style="color: rgb(132,63,161);">0</span></td><td style="width: 9.14679%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr><tr><td style="width: 26.8503%;">Nombre 2</td><td style="width: 8.55668%;">1</td><td style="width: 9.14679%; background-color: rgb(251,238,184);">**<span style="color: rgb(230,126,35);">0</span>**</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">0</td></tr><tr><td style="width: 26.8503%;">**Total**</td><td style="width: 8.55668%;">  
</td><td style="width: 9.14679%; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 155.65px;">***<span style="color: rgb(35,111,161);">1 </span>**+ <span style="color: rgb(132,63,161);">0 </span>= <span style="color: rgb(22,145,121);">**1** </span>puis <span style="color: rgb(22,145,121);">**1** </span>+ **<span style="color: rgb(230,126,35);">0</span>** = **1**. Pas de retenue*

</td></tr><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 96.38%;"><colgroup><col style="width: 24.2142%;"></col><col style="width: 9.68413%;"></col><col style="width: 10.257%;"></col><col style="width: 9.40082%;"></col><col style="width: 9.97056%;"></col><col style="width: 9.68569%;"></col><col style="width: 9.11594%;"></col><col style="width: 8.83107%;"></col><col style="width: 9.11594%;"></col></colgroup><tbody><tr><td style="width: 26.8503%;">retenue</td><td style="width: 8.55668%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">1</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">  
</td></tr><tr><td style="width: 26.8503%;">Nombre 1</td><td style="width: 8.55668%; background-color: rgb(191,237,210);">0</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">0</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr><tr><td style="width: 26.8503%;">Nombre 2</td><td style="width: 8.55668%; background-color: rgb(191,237,210);">1</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">0</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">0</td></tr><tr><td style="width: 26.8503%;">**Total**</td><td style="width: 8.55668%; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">1</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 155.65px;">*enfin, 0 + 1 = 1, pas de retenue.*

</td></tr></tbody></table>

</details><table id="bkmrk-1-nombre-1-0-0-1-0-0" style="border-collapse: collapse; width: 100%; height: 118.7px;"><colgroup><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col></colgroup><tbody><tr style="height: 29.3px;"><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">*1*</td><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">  
</td></tr><tr style="height: 29.8px;"><td style="border-style: solid; height: 29.8px;">Nombre 1</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">1</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">1</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">1</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">Nombre 2</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td></tr><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">TOTAL</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">0</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">0</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td></tr></tbody></table>

on a donc <span style="color: rgb(132,63,161);">***00100101 + 10110010***</span> = <span style="color: rgb(132,63,161);">***11010111***</span> ( soit 37 + 178 = 215 )

#### <span style="color: rgb(53,152,219);">**4.2 Soustraction**</span>

La soustraction est un peu plus complexe que l'addition, en effet il va faloir jongler sur les chiffres.

Selon les principes suivants :

0 - 0 = 0

1 - 1 = 0

1 - 0 = 1

0 - 1 = Ne peux pas directement être résolu, nécessite un emprunt.

Par exemple : <span style="color: rgb(132,63,161);">***10110010 -*** </span><span style="color: rgb(132,63,161);">***00100101***</span> ( soit 178 - 37 )

<details id="bkmrk-d%C3%A9tail-de-l%27op%C3%A9ratio-2"><summary>Détail de l'opération</summary>

<table style="border-collapse: collapse; width: 100%; height: 843.575px;"><colgroup><col style="width: 47.2961%;"></col><col style="width: 52.7296%;"></col></colgroup><tbody><tr style="height: 172.812px;"><td style="height: 172.812px; border-style: hidden;"><table style="border-collapse: collapse; width: 95.2116%; height: 97px;"><tbody><tr><td style="width: 26.7119%;">retenue</td><td style="width: 8.61673%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 8.61673%; background-color: rgb(191,237,210);"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; background-color: rgb(191,237,210);"><span style="color: rgb(186,55,42);">*10*</span></td></tr><tr><td style="width: 26.7119%;">Nombre 1</td><td style="width: 8.61673%;">1</td><td style="width: 9.19118%;">0</td><td style="width: 9.19118%;">1</td><td style="width: 9.47841%;">1</td><td style="width: 9.47841%;">0</td><td style="width: 9.19118%;">0</td><td style="width: 8.61673%; background-color: rgb(191,237,210);"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(191,237,210);"><s>0</s></td></tr><tr><td style="width: 26.7119%;">Nombre 2</td><td style="width: 8.61673%;">0</td><td style="width: 9.19118%;">0</td><td style="width: 9.19118%;">1</td><td style="width: 9.47841%;">0</td><td style="width: 9.47841%;">0</td><td style="width: 9.19118%;">1</td><td style="width: 8.61673%;">0</td><td style="width: 9.47841%; background-color: rgb(191,237,210);">1</td></tr><tr><td style="width: 26.7119%;">**Total**</td><td style="width: 8.61673%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 8.61673%;">  
</td><td style="width: 9.47841%; background-color: rgb(191,237,210);">**1**</td></tr></tbody></table>

</td><td class="align-left" style="vertical-align: middle; height: 172.812px; border-style: hidden;">*On commence par la droite. 0-1, emprunt à gauche.*

*On barre le 1 à gauche on le remplace par un <span style="color: rgb(186,55,42);">0</span>. (car 1-1=0)*

*On ajoute 2 soit <span style="color: rgb(186,55,42);">**10**</span><sub>2 </sub>en remplacement du 0 ce qui donne le calcul 2-1 = 1.*

</td></tr><tr style="height: 156.024px;"><td style="border-style: hidden; height: 156.024px;"><table style="border-collapse: collapse; width: 95.5563%;"><colgroup><col style="width: 26.3484%;"></col><col style="width: 8.30549%;"></col><col style="width: 8.87828%;"></col><col style="width: 8.87828%;"></col><col style="width: 9.16468%;"></col><col style="width: 9.16468%;"></col><col style="width: 8.87828%;"></col><col style="width: 11.4538%;"></col><col style="width: 8.30753%;"></col></colgroup><tbody><tr><td style="width: 26.8503%;">retenue</td><td style="width: 8.61673%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 8.61673%; background-color: rgb(191,237,210);"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">*10*</span></td></tr><tr><td style="width: 26.8503%;">Nombre 1</td><td style="width: 8.61673%;">1</td><td style="width: 9.19118%;">0</td><td style="width: 9.19118%;">1</td><td style="width: 9.47841%;">1</td><td style="width: 9.47841%;">0</td><td style="width: 9.19118%;">0</td><td style="width: 8.61673%; background-color: rgb(191,237,210);"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(45,194,107);"><s>0</s></td></tr><tr><td style="width: 26.8503%;">Nombre 2</td><td style="width: 8.61673%;">0</td><td style="width: 9.19118%;">0</td><td style="width: 9.19118%;">1</td><td style="width: 9.47841%;">0</td><td style="width: 9.47841%;">0</td><td style="width: 9.19118%;">1</td><td style="width: 8.61673%; background-color: rgb(191,237,210);">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107);">1</td></tr><tr><td style="width: 26.8503%;">**Total**</td><td style="width: 8.61673%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 8.61673%; background-color: rgb(191,237,210);">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107);">**1**</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 156.024px;">*0 - 0 = 0 pas d'emprunt.*

</td></tr><tr style="height: 202.691px;"><td style="border-style: hidden; height: 202.691px;"><table style="border-collapse: collapse; width: 96.1054%; height: 119.514px;"><colgroup><col style="width: 25.8883%;"></col><col style="width: 8.5346%;"></col><col style="width: 9.95703%;"></col><col style="width: 9.10357%;"></col><col style="width: 9.67254%;"></col><col style="width: 9.38806%;"></col><col style="width: 9.67254%;"></col><col style="width: 8.5346%;"></col><col style="width: 9.38806%;"></col></colgroup><tbody><tr><td rowspan="2">retenues  
</td><td style="width: 8.61673%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.47841%;"><span style="color: rgb(186,55,42);">  
</span></td><td style="width: 9.47841%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 8.61673%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">  
</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">  
</span></td></tr><tr style="height: 29.8785px;"><td style="width: 8.61673%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.47841%; height: 29.8785px;"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; height: 29.8785px;"><s><span style="color: rgb(186,55,42);">*10*</span></s></td><td style="width: 9.19118%; height: 29.8785px;"> </td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;"><span style="color: rgb(186,55,42);">*10*</span></td></tr><tr style="height: 29.8785px;"><td style="width: 26.8503%; height: 29.8785px;">Nombre 1</td><td style="width: 8.61673%; height: 29.8785px;">1</td><td style="width: 9.19118%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">1</td><td style="background-color: rgb(236,202,250); height: 29.8785px;"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(251,238,184); height: 29.8785px;"><s>0</s></td><td style="background-color: rgb(251,238,184); height: 29.8785px;">0</td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;"><s>0</s></td></tr><tr style="height: 29.8785px;"><td style="width: 26.8503%; height: 29.8785px;">Nombre 2</td><td style="width: 8.61673%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">1</td><td style="width: 9.47841%; height: 29.8785px;">0</td><td style="width: 9.47841%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">1</td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;">1</td></tr><tr style="height: 29.8785px;"><td style="width: 26.8503%; height: 29.8785px;">**Total**</td><td style="width: 8.61673%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.47841%; height: 29.8785px;">  
</td><td style="width: 9.47841%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;"> </td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;">**1**</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 202.691px;">*0 - 1 non solvable sans emprunts.*

*Pas de 1 adjacent à gauche, on va donc devoir aller chercher le premier disponible pour l'emprunter.*

*on barre le 1 que l'on remplace par* <span style="color: rgb(224,62,45);">0</span> *(1-1=0). Puis on barre le 0 à sa droite pour remplacer par 2 soit <span style="color: rgb(224,62,45);">**10**</span><sub>2</sub>**.***

</td></tr><tr style="height: 156.024px;"><td style="border-style: hidden; height: 156.024px;"><table style="border-collapse: collapse; width: 96.6546%;"><colgroup><col style="width: 25.7599%;"></col><col style="width: 8.49229%;"></col><col style="width: 9.90767%;"></col><col style="width: 9.05844%;"></col><col style="width: 9.62459%;"></col><col style="width: 9.90767%;"></col><col style="width: 9.34152%;"></col><col style="width: 8.49229%;"></col><col style="width: 9.34152%;"></col></colgroup><tbody><tr><td rowspan="2">retenues  
</td><td style="width: 8.61673%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.47841%;"><span style="color: rgb(186,55,42);">  
</span></td><td style="width: 9.47841%;"><span style="color: rgb(224,62,45);">**1**</span></td><td style="width: 9.19118%; background-color: rgb(191,237,210);"><span style="color: rgb(224,62,45);">*10*</span></td><td style="width: 8.61673%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">  
</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">  
</span></td></tr><tr><td style="width: 8.61673%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.47841%; height: 29.8785px;"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; height: 29.8785px;"><s><span style="color: rgb(186,55,42);">*10*</span></s></td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);"> </td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;"><span style="color: rgb(186,55,42);">*10*</span></td></tr><tr><td style="width: 26.8503%; height: 29.8785px;">Nombre 1</td><td style="width: 8.61673%; height: 29.8785px;">1</td><td style="width: 9.19118%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">1</td><td style="background-color: rgb(236,202,250); height: 29.8785px;"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(251,238,184); height: 29.8785px;"><s>0</s></td><td style="background-color: rgb(191,237,210); height: 29.8785px;"><s>0</s></td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;"><s>0</s></td></tr><tr><td style="width: 26.8503%; height: 29.8785px;">Nombre 2</td><td style="width: 8.61673%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">1</td><td style="width: 9.47841%; height: 29.8785px;">0</td><td style="width: 9.47841%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">1</td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;">1</td></tr><tr><td style="width: 26.8503%; height: 29.8785px;">**Total**</td><td style="width: 8.61673%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.47841%; height: 29.8785px;">  
</td><td style="width: 9.47841%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">**1**  
</td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;">**1**</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 156.024px;">On continue à décaler. On soustrait 1 de 2 (<span style="color: rgb(224,62,45);">**10**</span><sub>2</sub>), il reste <span style="color: rgb(224,62,45);">**1**</span>.

Enfin, on reporte le 1 à droite et on exécute le calcul.

2 - 1 = 1.

</td></tr><tr style="height: 156.024px;"><td style="border-style: hidden; height: 156.024px;"><table style="border-collapse: collapse; width: 96.38%;"><colgroup><col style="width: 24.1007%;"></col><col style="width: 9.64026%;"></col><col style="width: 10.2073%;"></col><col style="width: 9.35673%;"></col><col style="width: 9.9238%;"></col><col style="width: 9.64026%;"></col><col style="width: 9.07319%;"></col><col style="width: 8.78965%;"></col><col style="width: 9.35673%;"></col></colgroup><tbody><tr><td rowspan="2">retenues  
</td><td style="width: 8.61673%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.19118%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.19118%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.47841%; background-color: rgb(191,237,210);"><span style="color: rgb(186,55,42);">  
</span></td><td style="width: 9.47841%; background-color: rgb(191,237,210);"><span style="color: rgb(224,62,45);">**1**</span></td><td style="width: 9.19118%; background-color: rgb(45,194,107);"><span style="color: rgb(224,62,45);">*10*</span></td><td style="width: 8.61673%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">  
</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">  
</span></td></tr><tr><td style="width: 8.61673%; height: 29.8785px; background-color: rgb(191,237,210);">  
</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">  
</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">  
</td><td style="width: 9.47841%; height: 29.8785px; background-color: rgb(191,237,210);"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; height: 29.8785px; background-color: rgb(191,237,210);"><s><span style="color: rgb(186,55,42);">*10*</span></s></td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(45,194,107);"> </td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;"><span style="color: rgb(186,55,42);">*10*</span></td></tr><tr><td style="width: 26.8503%; height: 29.8785px;">Nombre 1</td><td style="width: 8.61673%; height: 29.8785px; background-color: rgb(191,237,210);">1</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">1</td><td style="background-color: rgb(191,237,210); height: 29.8785px;"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(191,237,210); height: 29.8785px;"><s>0</s></td><td style="background-color: rgb(45,194,107); height: 29.8785px;"><s>0</s></td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;"><s>0</s></td></tr><tr><td style="width: 26.8503%; height: 29.8785px;">Nombre 2</td><td style="width: 8.61673%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">1</td><td style="width: 9.47841%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.47841%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(45,194,107);">1</td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;">1</td></tr><tr><td style="width: 26.8503%; height: 29.8785px;">**Total**</td><td style="width: 8.61673%; height: 29.8785px; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.47841%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.47841%; height: 29.8785px; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(45,194,107);">**1**  
</td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;">**1**</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 156.024px;">*On continue ainsi :*

*1 - 0 = 1*

*0 - 0 = 0*

*1 - 1 = 0*

*1 - 0 = 1*

</td></tr></tbody></table>

</details><table id="bkmrk-1-nombre-1-0-0-1-0-0-1" style="border-collapse: collapse; width: 100%; height: 118.7px;"><colgroup><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="border-style: solid; height: 29.8px;">Nombre 1</td><td style="border-style: solid; height: 29.8px;">1</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">1</td><td style="border-style: solid; height: 29.8px;">1</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">1</td><td style="border-style: solid; height: 29.8px;">0</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">Nombre 2</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td></tr><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">TOTAL</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">0</td><td style="background-color: rgb(194,224,244); height: 29.8px;">0</td><td style="background-color: rgb(194,224,244); height: 29.8px;">0</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">0</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td></tr></tbody></table>

on a donc <span style="color: rgb(132,63,161);">***10110010 -*** </span><span style="color: rgb(132,63,161);">***00100101*** </span>= <span style="color: rgb(132,63,161);">***10001101***</span> ( soit 178 - 37 = 141 )

---

### **<span style="text-decoration: underline;">V. Les fonctions binaires</span>**

Les fonctions en binaire ne sont pas des opérations à proprement parler mais le résultat d'un test livré par ce que l'on appelle en informatique et en électronique une porte logique.

#### **5.1 AND (et)**

<table id="bkmrk-0-0-0-0-1-0-1-0-0-1-" style="border-collapse: collapse; width: 100%; height: 155.65px;"><colgroup><col style="width: 16.9048%;"></col><col style="width: 83.0952%;"></col></colgroup><tbody><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 24.2574%; height: 119.2px;"><colgroup><col style="width: 30.2781%;"></col><col style="width: 35.3674%;"></col><col style="width: 35.3476%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="height: 29.8px;">0</td><td style="height: 29.8px;">0</td><td style="height: 29.8px; background-color: rgb(194,224,244);">0</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px; background-color: rgb(194,224,244);">0</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px; background-color: rgb(194,224,244);">0</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1</td><td style="height: 29.8px;">1</td><td style="height: 29.8px; background-color: rgb(194,224,244);">1</td></tr></tbody></table>

</td><td class="align-left" style="border-style: hidden; height: 155.65px; vertical-align: middle;">*Le résultat de la condition est vrai uniquement si les deux termes sont vrais.*

</td></tr></tbody></table>

#### **5.2 OR (ou)**

<table id="bkmrk-0-0-0-0-1-1-1-0-1-1-" style="border-collapse: collapse; width: 100%; height: 155.65px;"><colgroup><col style="width: 16.9048%;"></col><col style="width: 83.0952%;"></col></colgroup><tbody><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 24.2574%; height: 119.2px;"><colgroup><col style="width: 30.2781%;"></col><col style="width: 35.3674%;"></col><col style="width: 35.3476%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="height: 29.8px;">0</td><td style="height: 29.8px;">0</td><td style="height: 29.8px; background-color: rgb(194,224,244);">0</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px; background-color: rgb(194,224,244);">1</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px; background-color: rgb(194,224,244);">1</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1</td><td style="height: 29.8px;">1</td><td style="height: 29.8px; background-color: rgb(194,224,244);">1</td></tr></tbody></table>

</td><td class="align-left" style="border-style: hidden; height: 155.65px; vertical-align: middle;">*Le résultat de la condition est vrai si au moins l'un des deux termes est vrai.*

</td></tr></tbody></table>

#### **5.3 XOR (ou exclusif)**

<table id="bkmrk-0-0-0-0-1-1-1-0-1-1--1" style="border-collapse: collapse; width: 100%; height: 155.65px;"><colgroup><col style="width: 16.9048%;"></col><col style="width: 83.0952%;"></col></colgroup><tbody><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 24.2574%; height: 119.2px;"><colgroup><col style="width: 30.2781%;"></col><col style="width: 35.3674%;"></col><col style="width: 35.3476%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="height: 29.8px;">0</td><td style="height: 29.8px;">0</td><td style="height: 29.8px; background-color: rgb(194,224,244);">0</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px; background-color: rgb(194,224,244);">1</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px; background-color: rgb(194,224,244);">1</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1</td><td style="height: 29.8px;">1</td><td style="height: 29.8px; background-color: rgb(194,224,244);">0</td></tr></tbody></table>

</td><td class="align-left" style="border-style: hidden; height: 155.65px; vertical-align: middle;">*Le résultat de la condition est vrai seulement si l'un des deux terme est vrai.*

</td></tr></tbody></table>

<p class="callout success">**Trivia** : c'est ce système là qui va être utilisé pour calculé des bits de parité. Dans les matrices RAID par exemple.</p>

Pour aller plus loin : [Wikipedia | Tables de vérité](https://fr.wikipedia.org/wiki/Table_de_v%C3%A9rit%C3%A9)

---

### **<span style="text-decoration: underline;">VI. Conclusion</span>**

Au sein de l'ordinateur, tout est binaire. De la donnée écrite sur les supports de stockage, jusqu'à l'information transitant par le réseau, en passant par les opérations processeurs et le contenu de la mémoire.

Nous manipulons juste de moins en moins ce type de contenu au fil de l'évolution des langages informatiques et de programmation.

Mais il est cependant important de comprendre (au moins en théorie) comment fonctionne l'informatique sur sa couche la plus basique.

# Hardware - Le RAID

<table id="bkmrk-difficult%C3%A9%2A-%3Cdescrip" style="border-collapse: collapse; width: 100%; height: 46.8px; border-width: 1px; border-style: hidden;"><colgroup><col style="width: 20%;"></col><col style="width: 80%;"></col></colgroup><tbody><tr style="height: 46.8px;"><td style="height: 46.8px; border: 1px groove rgb(52,73,94);">[![intermédiaire.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/mTHintermediaire-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/mTHintermediaire-png.png)</td><td style="height: 46.8px; border-width: 1px; background-color: rgb(236,202,250); vertical-align: top;">Difficulté : Intermédiaire

Notions : RAID, Stockage, volumes, sécurité matérielle.

</td></tr></tbody></table>

---

### **<span style="text-decoration: underline;"><span style="color: rgb(52,73,94); text-decoration: underline;">I.Notions Importantes</span>  
</span>**

Le RAID ou ‘***<span style="color: rgb(132,63,161);">Redondant Array of Independant Disk</span>***’ consiste a prendre plusieurs supports de stockage indépendant (HDD, SSD,NVME) et les assembler en un volume virtuel dans le but d’améliorer la performance, la capacité et/ou la tolérance à la panne.

<p class="callout warning">Le RAID ne remplace pas la sauvegarde !!!</p>

- Le but du RAID est avant tout de fournir une extension de capacité de volume et/ou une redondance de disque. Ce qui rendra la machine tolérante à la panne d’un ou plusieurs disques. Mais il ne s’agit en aucun cas d’une sauvegarde et une donnée perdue au sein du volume l’est pour de bon.
- Sur les RAID apportant une tolérance à la panne, si un disque tombe en panne, celui-ci peut être remplacé. Le volume commencera alors automatiquement une reconstruction de volume.
- Durant une reconstruction, le système **<span style="color: rgb(132,63,161);">n’est plus</span> <span style="color: rgb(132,63,161);">tolérant à la panne</span>** jusqu’à la fin de la reconstruction. Toute nouvelle défaillance durant cette période entrainera la perte des données.

<p class="callout info">Il est fortement recommandé de prendre des disques de même performance et capacité.</p>

- En effet, lorsque les disques seront agrégés ensemble dans un volume, l’ensemble des disques ajusteront leurs performances sur celui qui a la plus basse disponible. Cela s’explique par la nécessité d’utiliser simultanément plusieurs disques, ce qui ne peut se faire que si tous les disques ont la même vitesse de lecture/écriture. Sinon il y aurait un risque de désynchronisation.
- Concernant la capacité, il s’agit a peu prés de la même raison. Si un disque est plein avant les autres, les données ne pourront théoriquement plus être écrites que sur les disques où il reste de l’espace libre. Or le but recherché ici est d’avoir une redondance des données ou d’agréger ensemble des volumes.

<div class="ak-editor-panel css-d4tzhg" id="bkmrk--0"></div><p class="callout success">Pour ajouter un niveau de sécurité en plus, il est conseillé de prendre des disques provenant de lots différents.</p>

- En effet, des disques provenant tous du même lot et du même constructeur auront statistiquement la même chance de tomber en panne. Or la plupart des types de RAID classiques ne tolèrent qu’une seule panne. Ainsi, choisir des disques provenant de lots différents et donc n’ayant pas été fabriqués au même moment réduira le risque d’avoir une panne simultanée de plusieurs disques, ce qui entrainerai la perte des données du volume.

---

### **<span style="text-decoration: underline;"><span style="color: rgb(52,73,94); text-decoration: underline;">II. Raid matériel vs raid logiciel</span>  
</span>**

#### **<span style="color: rgb(35,111,161);">2.1 Raid matériel</span>** 

Ce type de RAID fait appel a une carte contrôleur matérielle dédiée. La carte est ajoutée au serveur et les disques sont branchés dessus.

Le principal avantage de cette méthode est que la carte dédiée dispose de son propre processeur, mémoire et stockage pour faire la mise en cache des données et les calculs de lecture ou écriture. Le volume RAID est directement présenté au système.

Celui-ci n’a donc pas a gérer les calculs liés a la répartition des blocs et toute la puissance de calcul de la machine peut être exploitée par le système.

Convient à des environnements de production.

<table id="bkmrk-colonne-1-colonne-2-" style="border-collapse: collapse; width: 94.6914%; height: 59.6px;"><colgroup><col style="width: 37.9896%;"></col><col style="width: 18.4099%;"></col><col style="width: 43.6006%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(191,237,210); height: 29.8px; border-style: hidden;">**Pours :**</td><td style="border-style: hidden;">  
</td><td style="background-color: rgb(248,202,198); height: 29.8px; border-style: hidden;">**Contres :**</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210); border-style: hidden;">- Plus performant que le raid logiciel.
- Ne sollicite pas la puissance de calcul.
- Indépendant du système d’exploitation.

</td><td style="border-style: hidden;">  
</td><td style="height: 29.8px; background-color: rgb(248,202,198); border-style: hidden;">- Plus coûteux (achat d’une carte dédiée).

</td></tr></tbody></table>

#### <span style="color: rgb(35,111,161);">**2.2 Raid logiciel**</span>

Ce type de RAID est géré par le système. Cela le rend indépendant du Hardware mais l’absence de matériel dédié implique que les calculs doivent être gérés par le système. Utilisant donc le processeur, la mémoire et le cache des disques pour réaliser les calculs et impactant donc les performances systèmes.

Il faut donc prévoir plus de puissance que nécessaire pour compenser la baisse de performance.

Cependant, en cas de panne totale ou changement du matériel, l’ensemble du matériel peut être remplacé sans problème. Ce qui n’est pas forcément toujours le cas sur du RAID matériel (si la carte RAID lâche par exemple).

Plus adapté a un usage sur les postes de travail ou un usage domestique.

<table id="bkmrk-pours-%3A-contres-%3A-mo" style="border-collapse: collapse; width: 94.6914%; height: 99.85px;"><colgroup><col style="width: 37.9896%;"></col><col style="width: 18.4099%;"></col><col style="width: 43.6006%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(191,237,210); height: 29.8px; border-style: hidden;">**Pours :**</td><td style="border-style: hidden; height: 29.8px;">  
</td><td style="background-color: rgb(248,202,198); height: 29.8px; border-style: hidden;">**Contres :**</td></tr><tr style="height: 70.05px;"><td style="height: 70.05px; background-color: rgb(191,237,210); border-style: hidden;">- Moins coûteux.
- indépendant du matériel.

</td><td style="border-style: hidden; height: 70.05px;">  
</td><td style="height: 70.05px; background-color: rgb(248,202,198); border-style: hidden;">- impacte les performances.

</td></tr></tbody></table>

#### <span style="color: rgb(35,111,161);">**2.3 Raid Pseudo-matériel**</span>

C’est un hybride des deux modes ci-dessus. Un contrôleur RAID est intégré à la carte mère et le système pourra s’appuyer dessus pour contrôler le RAID. Cependant, celui-ci reste géré logiciellement .

L’avantage de ce mode est surtout pour les PC de bureau. Beaucoup de cartes mères haut de gamme disposent de cette option et cela permet de mettre en place un RAID a moindre coût.

---

### <span style="text-decoration: underline; color: rgb(52,73,94);">**III. Principaux types de raid**</span>

#### <span style="color: rgb(35,111,161);">**3.1 Raid 0 - Striping**</span>

<p class="callout danger">Prérequis : 2 disques ou plus.</p>

Le RAID 0 ou ‘**<span style="color: rgb(132,63,161);"><span class="fabric-text-color-mark">striping</span></span>**' est le niveau le plus basique de RAID.

Il s’agit tout simplement de prendre tous des disques participant et de les mettre ensemble pour présenter un seul gros volume au système. Permettant ainsi de cumuler les capacité des disques et d’exploiter en parallèle leurs bandes passantes. Améliorant très significativement les performances lors de la la lecture ou écriture des données.

![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/5luimage-png.png)*Source : amenschool*

<p class="callout info">espace exploitable : Total des disques.</p>

Dans ce cas, deux disques de 500Go par exemples seront vu comme un volume logique de 1To (2\*500Go)

<table id="bkmrk-pours-%3A-contres-%3A-tr" style="border-collapse: collapse; width: 94.6914%; height: 99.85px;"><colgroup><col style="width: 40.5476%;"></col><col style="width: 15.7757%;"></col><col style="width: 43.5463%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(191,237,210); height: 29.8px; border-style: hidden;">**Pours :**</td><td style="border-style: hidden; height: 29.8px;">  
</td><td style="background-color: rgb(248,202,198); height: 29.8px; border-style: hidden;">**Contres :**</td></tr><tr style="height: 70.05px;"><td style="height: 70.05px; background-color: rgb(191,237,210); border-style: hidden;">- Très performant.
- Permet de disposer de gros volumes.
- Capacité maximale.

</td><td style="border-style: hidden; height: 70.05px;">  
</td><td style="height: 70.05px; background-color: rgb(248,202,198); border-style: hidden;">- N’offre aucune sécurité.

</td></tr></tbody></table>

#### <span style="color: rgb(35,111,161);">**3.2 Raid 1 - Mirroring**</span>

<p class="callout danger">Prérequis : 2 disques</p>

<p class="callout info">Maximum : 32 <span class="fabric-text-color-mark">\*</span>*<span class="fabric-text-color-mark">voir RAID Combiné 0+1</span>*</p>

Le Raid 1 ou ‘*<span style="color: rgb(132,63,161);">**<span class="fabric-text-color-mark">mirroring</span>**</span>*’ consiste a prendre un disque et en faire un ‘miroir’ sur un second disque.

Chaque donnée est ainsi écrite en double, une fois sur le disque 1 et une fois sur le disque 2.

Bien que cela soit une perte nette de capacité, le système devient ainsi redondant et donc tolérant a la panne d’un des deux disques.

En situation normale, les données seront lues à partir des deux disques, augmentant ainsi les performances en lecture.

L'écriture en double de toute données quand à elle, diminue légèrement les performances en écriture.

La tolérance a la panne est de 1 disque.

[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/0Jkimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/0Jkimage-png.png)*Source : amenschool*

<p class="callout info">espace exploitable : Total des disques / 2</p>

Dans ce cas, deux disques de 500Go par exemples seront vu comme un volume logique de 500Go

<table id="bkmrk-pours-%3A-contres-%3A-s%C3%A9" style="border-collapse: collapse; width: 94.6914%; height: 99.85px;"><colgroup><col style="width: 40.5476%;"></col><col style="width: 15.7757%;"></col><col style="width: 43.5463%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(191,237,210); height: 29.8px; border-style: hidden;">**Pours :**</td><td style="border-style: hidden; height: 29.8px;">  
</td><td style="background-color: rgb(248,202,198); height: 29.8px; border-style: hidden;">**Contres :**</td></tr><tr style="height: 70.05px;"><td style="height: 70.05px; background-color: rgb(191,237,210); border-style: hidden;">- Sécurisé (perte 1 disque).
- Idéal pour un disque système.

</td><td style="border-style: hidden; height: 70.05px;">  
</td><td style="height: 70.05px; background-color: rgb(248,202,198); border-style: hidden;">- Seule la moitié de la capacité est utilisable.

</td></tr></tbody></table>

#### <span style="color: rgb(35,111,161);">**3.3 Raid 5 - Striping with parity Across drives**</span>

<p class="callout danger">Prérequis : 3 disques minimum</p>

<p class="callout info">Maximum : 32 (dépendant du contrôleur utilisé)</p>

Le RAID 5 utilise un algorithme combinant les avantages des deux niveaux de RAID précédents, bien que fonctionnant de manière totalement différente.

En effet, dans ce mode de fonctionnement, les données seront constituées en blocs.

Chaque bloc sera coupé en deux et un bloc de parité sera créé et placé sur un autre disque que ceux contenant les demi blocs.

Sur le schéma suivant, le bloc A est coupé en deux blocs A1 et A2 placés chacun sur un disque puis un bloc de parité P est créé et placé sur le disque 3.

Le bit de parité est ensuite décalé et ainsi de suite de sorte a ce qu’un disque ne contienne pas uniquement les blocs de parités. Ce qui optimise l’espace utilisable.

[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/93gimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/93gimage-png.png)*Source : amenschool*

<details id="bkmrk-pour-aller-plus-loin"><summary>Pour aller plus loin</summary>

Pour aller plus loin, l’opération faite sur les blocs au niveau binaire est un XOR.

Table XOR :

<div class="ak-editor-panel__content"><div class="ak-editor-panel__content">- 0 xor 0 = 0
- 0 xor 1 = 1
- 1 xor 0 = 1
- 1 xor 1 = 1

</div></div>Ce qui donne par exemple : bloc initial 0110110111010100

Bloc1 (disque 1) = 01101101

Bloc 2 (disque 2) = 11010100

Bloc de parité (disque 3) = 10111001

</details><p class="callout info">espace exploitable : Capacité Totale des disques - Capacité de 1 disque</p>

Dans ce cas, trois disques de 500Go. la capacité utilisable est donc (500\*3)-500 = 1To

<table id="bkmrk-pours-%3A-contres-%3A-s%C3%A9-0" style="border-collapse: collapse; width: 94.6914%; height: 99.85px;"><colgroup><col style="width: 44.3286%;"></col><col style="width: 11.9948%;"></col><col style="width: 43.5463%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(191,237,210); height: 29.8px; border-style: hidden;">**Pours :**</td><td style="border-style: hidden; height: 29.8px;">  
</td><td style="background-color: rgb(248,202,198); height: 29.8px; border-style: hidden;">**Contres :**</td></tr><tr style="height: 70.05px;"><td style="height: 70.05px; background-color: rgb(191,237,210); border-style: hidden;">- Sécurisé (perte 1 disque).
- Idéal pour un disque de données.
- Bon compromis entre capacité et fiabilité.

</td><td style="border-style: hidden; height: 70.05px;">  
</td><td style="height: 70.05px; background-color: rgb(248,202,198); border-style: hidden;">- perte de capacité équivalente à 1 disque
- impact sur les performances

</td></tr></tbody></table>

#### <span style="color: rgb(35,111,161);">**3.4 Raid 6 - Striping with dual parity Across drives**</span>

<p class="callout danger">Prérequis : 4 disques minimum</p>

<p class="callout info">Maximum : 32 (dépendant du contrôleur utilisé)</p>

Le RAID 6 fonctionne sur le même principe que le RAID 5 mais améliore néanmoins celui-ci en redondant le bloc de parité, ce qui augmente la tolérance à la panne.

![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/1x9image-png.png)*Source : amenschool*

<p class="callout info">espace exploitable : Capacité Total des disques - Capacité de 2 disque</p>

Dans ce cas, quatre disques de 500Go. La capacité utilisable est (500\*4)-(2\*500)=1To

<table id="bkmrk-pours-%3A-contres-%3A-s%C3%A9-1" style="border-collapse: collapse; width: 94.6914%; height: 99.85px;"><colgroup><col style="width: 44.3286%;"></col><col style="width: 11.9948%;"></col><col style="width: 43.5463%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(191,237,210); height: 29.8px; border-style: hidden;">**Pours :**</td><td style="border-style: hidden; height: 29.8px;">  
</td><td style="background-color: rgb(248,202,198); height: 29.8px; border-style: hidden;">**Contres :**</td></tr><tr style="height: 70.05px;"><td style="height: 70.05px; background-color: rgb(191,237,210); border-style: hidden;">- Sécurité exceptionnelle (2 disques).
- Idéal pour volume de stockage infra.

</td><td style="border-style: hidden; height: 70.05px;">  
</td><td style="height: 70.05px; background-color: rgb(248,202,198); border-style: hidden;">- Seule la moitié de la capacité est utilisable.
- Coûteux

</td></tr></tbody></table>

#### <span style="color: rgb(35,111,161);">**3.5 Autres types de RAID**</span>

Il existe d’autres types de RAID assez exotiques, comme le RAID 3, 4, RAIDn ou RAIDdp

Pour des renseignement exhaustif sur le RAID : [https://fr.wikipedia.org/wiki/RAID\_(informatique)](https://fr.wikipedia.org/wiki/RAID_(informatique))

---

### <span style="text-decoration: underline; color: rgb(52,73,94);">**IV. Combiner les niveaux de RAID**</span>

Il est possible de combiner plusieurs Type de RAID entre eux pour tirer le maximum de performance ou de sécurité de ceux-ci. Cependant, ces solutions sont assez peu répandues à moins d’avoir un besoin spécifique car elles deviennent rapidement très coûteuses.

La notation se fera alors de la façon suivante :

01 ou 0+1 = un RAID 1 de volumes en RAID 0

10 ou 1+0 = un RAID 0 de volumes en RAID 1

#### <span style="color: rgb(35,111,161);">**4.1 Le RAID 0+1**</span>

<p class="callout danger">Prérequis : 4 disques minimum</p>

<p class="callout info">Maximum : 32 (dépendant du contrôleur utilisé)</p>

Il s’agit de prendre plusieurs volumes en ‘<span style="color: rgb(132,63,161);">***<span class="fabric-text-color-mark">striping</span>***</span>’ et de les ‘<span style="color: rgb(132,63,161);">***<span class="fabric-text-color-mark">mirorer</span>***</span>’ entre eux.

Ce qui permet d’agréger ensemble plusieurs volumes pour présenter un gros volume, qui sera ensuite lui-même mis en miroir sur un autre agrégat équivalent.

Dans ce niveaux, même sir une grappe RAID 0 peut être perdue, on vise avant tout les volumes de grosses capacité.

[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/xvOimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/xvOimage-png.png)*Source : amenschool*

<p class="callout info">espace exploitable : Capacité totale des disques / 2</p>

Dans ce cas, quatre disques de 500Go. La capacité utilisable est (500\*4)/2=1To

#### <span style="color: rgb(35,111,161);">**4.2 Le RAID 1+0**</span>

<p class="callout danger">Prérequis : 4 disques minimum</p>

<p class="callout info">Maximum : 32 (dépendant du contrôleur utilisé)</p>

Il s’agit de l’inverse du RAID 01. Au lieu d’agréger des disques et de les ‘<span style="color: rgb(132,63,161);">***<span class="fabric-text-color-mark">mirorer</span>***</span>’ ensuite. On agrégera une série de disques en miroirs. Cela permet de répartir différemment les pertes de disques au sein des grappes.

Ce niveau de RAID est extrêmement fiable car il faut qu’une grappe entière soit défectueuse avant de perdre les données.

[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/bjAimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/bjAimage-png.png)*Source : amenschool*

<p class="callout info">espace exploitable : Capacité totale des disques / 2</p>

Dans ce cas, quatre disques de 500Go. La capacité utilisable est (500\*4)/2=1To

#### <span style="color: rgb(35,111,161);">**4.3 Autres exemples**</span>

<table border="1" id="bkmrk-source-%3A-storage-ins" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 50.0596%;"></col><col style="width: 50.0596%;"></col></colgroup><tbody><tr><td style="border-style: none;">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/HdBimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/HdBimage-png.png)</td><td style="border-style: none;">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/89yimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/89yimage-png.png)</td></tr><tr><td class="align-center" colspan="2" style="border-style: none;">*source : Storage-insider*</td></tr><tr><td colspan="2" style="border-style: none;">  
</td></tr><tr><td style="border-style: none;">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/n59image-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/n59image-png.png)</td><td style="border-style: none;">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/VBXimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/VBXimage-png.png)</td></tr><tr><td class="align-center" colspan="2" style="border-style: none;">*Source : recoverhdd.com*</td></tr></tbody></table>

# Hardware - Un ordinateur

<table id="bkmrk-difficult%C3%A9%2A-%3Cdescrip" style="border-collapse: collapse; width: 100%; height: 46.8px; border-width: 1px; border-style: hidden;"><colgroup><col style="width: 20%;"></col><col style="width: 80%;"></col></colgroup><tbody><tr style="height: 46.8px;"><td style="height: 46.8px; border: 1px groove rgb(52,73,94);">[![Débutant.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/Z1Vdebutant-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/Z1Vdebutant-png.png)</td><td style="height: 46.8px; border-width: 1px; background-color: rgb(236,202,250); vertical-align: top;">Difficulté : Débutant

Notions : ordinateur, composants.

</td></tr></tbody></table>

---

### <span style="color: rgb(35,111,161);">**<span style="text-decoration: underline;">I.Introduction</span>**</span>

Un ordinateur est défini comme étant une machine automatique de traitement de l'information, obéissant à des programmes formés par des suites d'opérations arithmétiques et logiques.

Est considéré comme ordinateur tout système possédant les caractéristiques suivantes :

- Effectuer des calculs et opérations préprogrammées.
- Stocker des informations.
- Avoir une capacité de mise en réseau.

<p class="callout info">lien utile : [https://fr.wikipedia.org/wiki/Ordinateur](https://fr.wikipedia.org/wiki/Ordinateur)  
</p>

---

### <span style="color: rgb(35,111,161);">**<span style="text-decoration: underline;">II. Différents Types d'ordinateurs</span>**</span>

<table id="bkmrk-fixe-%28desktop%29-porta" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col></colgroup><tbody><tr><td style="border-style: hidden;">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/nrIimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/nrIimage-png.png)

</td><td style="border-style: hidden;">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/urfimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/urfimage-png.png)

</td><td style="border-style: hidden;">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/TaWimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/TaWimage-png.png)

</td></tr><tr><td class="align-center" style="border-style: hidden;">*Fixe (desktop)*  
</td><td class="align-center" style="border-style: hidden;">*Portable (laptop)*  
</td><td class="align-center" style="border-style: hidden;">*Tablette*  
</td></tr></tbody></table>

<table id="bkmrk-serveur-tour-serveur" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col></colgroup><tbody><tr><td style="border-style: hidden;">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/DMqimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/DMqimage-png.png)

</td><td style="border-style: hidden; vertical-align: bottom;">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/jd9image-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/jd9image-png.png)

</td><td style="border-style: hidden; vertical-align: bottom;">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/C1Simage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/C1Simage-png.png)

</td></tr><tr><td class="align-center" style="border-style: hidden;">*Serveur tour*  
</td><td class="align-center" style="border-style: hidden;">*Serveur rackable*  
</td><td class="align-center" style="border-style: hidden;">*Micro ordinateur*  
</td></tr></tbody></table>

Il existe également des “Barebones” qui sont des bases dites “nues” et sans OS pour créer un système personnalisé. Le coût de ceux-ci sont relativement bas, mais il faut prévoir d’ajouter un OS voire certaines pièces.

<table id="bkmrk-barebone-pc-barebone" style="border-collapse: collapse; width: 100%; height: 207.188px;"><colgroup><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col></colgroup><tbody><tr style="height: 178.391px;"><td style="border-style: hidden; height: 178.391px;">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/oAGimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/oAGimage-png.png)

</td><td style="border-style: hidden; height: 178.391px;">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/cePimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/cePimage-png.png)

</td><td style="border-style: hidden; height: 178.391px;">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/CV4image-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/CV4image-png.png)

</td></tr><tr style="height: 28.7969px;"><td class="align-center" style="border-style: hidden; height: 28.7969px;">*Barebone PC*  
</td><td class="align-center" style="border-style: hidden; height: 28.7969px;">*Barebone Stockage*  
</td><td class="align-center" style="border-style: hidden; height: 28.7969px;">*Barebone réseau*  
</td></tr></tbody></table>

---

### <span style="text-decoration: underline; color: rgb(35,111,161);">**III. Les composants**</span>

[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/xTrimage-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/xTrimage-png.png)