Useful Algorithm in C

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
Owner
EinfachBeez
Software Developer
EinfachBeez
Similar Resources

This algorithm is amazing and take a high performance to search something under array.

This algorithm is amazing and take a high performance to search something under array.

Sequential Binary Algorithm O(n) Algoritmo Este é um algoritmo de complexidade O(log n), que possui uma alta performance em percorrer um vetor de inte

Oct 26, 2021

This is a Program, to sort Arrays with the QuickSort Algorithm.

QuickSort This is a program, to sort arrays with the QuickSort Algorithm. The Algorithm is optimized to be quick, but it isn't the fastest. I have wri

Oct 29, 2021

Implementation of two of the most famous subdivision algorithm: Loops Subdivision and CatMull-Clark Subdivision.

Implementation of two of the most famous subdivision algorithm: Loops Subdivision and CatMull-Clark Subdivision.

3D-Subdivision-Surface Implementation of two of the most famous subdivision algorithms: Loops Subdivision for Triangles and CatMull-Clark Subdivision

Nov 18, 2022

Va1 is a simple character converter. It converts characters into nums, might be used in encryption protocols or as independent algorithm.

Va1 is a simple character converter. It converts characters into nums, might be used in encryption protocols or as independent algorithm.

Va1 What is it? Va1 is a simple character converter. It converts characters into nums, might be used in encryption protocols or as independent algorit

Dec 22, 2021

C implementation of Random Depth-first search algorithm with back tracking

C implementation of Random Depth-first search algorithm with back tracking

Maze Generating Algorithm This is an implementation of Randomized depth-first search algorithm. It creates a maze by taking a random valid path and co

May 2, 2022

Project in C : Implementation of Huffman Coding algorithm.

HUFFMAN CODING PROJECT Huffman coding algorithm implemented in C programming language. Compressing text files into binary files, and decompressing tho

Sep 1, 2022

This project contains the carefully compiled easy to medium level Data Structures & Algorithm questions.

Engineering-Daze Hey everyone! 👋 This project contains the carefully compiled easy to medium level Data Structures & Algorithm questions. Engineering

Apr 30, 2022

A low-latency LRU approximation cache in C++ using CLOCK second-chance algorithm. Multi level cache too. Up to 2.5 billion lookups per second.

A low-latency LRU approximation cache in C++ using CLOCK second-chance algorithm. Multi level cache too. Up to 2.5 billion lookups per second.

LruClockCache Low-latency LRU approximation cache in C++ using CLOCK second-chance algorithm. (see wiki for details) using MyKeyType = std::string; us

Oct 13, 2022

I have shared all the operations I learnt (still learning) regarding DataStructures and Algorithm.

I have shared all the operations I learnt (still learning) regarding DataStructures and Algorithm.

DataStructures-and-Algorithm If you appreciate my work, please 🌟 this repository. It motivates me. Why companies like Amazon, Microsoft, Google focus

Nov 6, 2022
Wonderful library with lots of useful functions, algorithms and data structures in C, link it with -l9wada

LibC+ Wonderful library with lots of useful functions, algorithms and data structures in C, link it with -lC+ Better than C, not as much as c++ Usage

Nov 21, 2022
A collection of basic data structures syntaxes, useful for competitive coding and placement exams
A collection of basic data structures syntaxes, useful for competitive coding and placement exams

Data-Structures A collection of basic data structures syntaxes, useful for competitive coding and placement exams 1. Array 2. Matrix 3. Linked List Si

Aug 8, 2021
Simple Useful Libraries: C++17/20 header-only dynamic bitset

dynamic_bitset Simple Useful Libraries: C++17/20 header-only dynamic bitset Requirements To use this dynamic bitset, you will need a C++17 (or later)

Nov 16, 2022
I have created this one to help myself keep my own learning record, anyways it will be great if someone finds it useful or One will modify my codes.

CPP-DSA I have created this one to help myself keep my own learning record, anyways it will be great if someone finds it useful or One will modify my

Dec 23, 2021
180+ Algorithm & Data Structure Problems using C++
180+ Algorithm & Data Structure Problems using C++

180+ Algorithm & Data Structure Problems using C++

Dec 3, 2022
Teaching materials for Algorithm Bootcamp: Data Structure.
Teaching materials for Algorithm Bootcamp: Data Structure.

Data Structure Materials Materials Topics Code Introduction to Data Structures Struct Pointer Dynamic Memory Allocation 00_intro_to_ds.cpp Linked List

Oct 15, 2022
libsais is a library for linear time suffix array and burrows wheeler transform construction based on induced sorting algorithm.

libsais libsais is a library for fast (see Benchmarks below) linear time suffix array and Burrows-Wheeler transform construction based on induced sort

Nov 29, 2022
Open-source graph editor, with built-it step-by-step Dijkstra's Algorithm.
Open-source graph editor, with built-it step-by-step Dijkstra's Algorithm.

Visual Dijkstra - Simple visual graph editor, with built-in step-by-step Dijkstra's algorithm Visual Dijkstra is a free and open-source tool, designed

Oct 10, 2022
Simple C++ Genetic Algorithm library
Simple C++ Genetic Algorithm library

crsGA: Simple C++ Genetic Algorithm library crsGA is a simple C++ template library for developing genetic algorithms, plus some other utilities (Logge

Apr 24, 2022
Explore the world of Data Structures and Algorithm
Explore the world of Data Structures and Algorithm

Hey Everyone! ?? DSA- PlayYard is the first open source project of Lets Grow More Community. It is the perfect place to start with or to test your DSA

Oct 9, 2022