# useful-algorithm

Useful Algorithm in C

## Content

- Number System (Dec, Bin, Hex)
- Searching Algorithms (Linear, Bin, Jump, ...)
- Sort Algorithms (Quick, Merge, ...)

### Number System

#### Decimal to Binary

The system behind is relatively simple. To get the binary numbers, you just have to divide the decimal number until you get a result of 0. The remainder reflects the binary numbers, but which are read from the last division to the first division.

#### Decimal, hexadecimal and binary conversion table

Dec | Bin | Hex |
---|---|---|

0 | 0 | 0 |

1 | 1 | 1 |

2 | 10 | 2 |

3 | 11 | 3 |

4 | 100 | 4 |

5 | 101 | 5 |

6 | 110 | 6 |

7 | 111 | 7 |

8 | 1000 | 8 |

9 | 1001 | 9 |

10 | 1010 | A |

11 | 1011 | B |

12 | 1100 | C |

13 | 1101 | D |

14 | 1110 | E |

15 | 1111 | F |