Giter Club home page Giter Club logo

cutils's Introduction

CUtils

Simple containers and sorts implementation in pure C. Modules list:

  1. CContainers (with tests and speed-check submodules).
  2. CAlgorithm (with tests and speed-check sudmodules).
  3. HuffmanCoding (with tests and executables submodules).

CContainers

CContainers (library)

Implemented containers

  • PDoubleLinkedList -- double linked list for pointers.
  • PHashMap -- hash map implementation for <pointer, pointer> pairs.
  • PHeap -- binary heap for pointers with customizable base container.
  • PODVector -- dynamic array for POD types.
  • PSinleLinkedList -- single linked list for pointers.
  • PVector -- dynamic array for pointers.
  • PVectorHeap -- binary heap for pointers, based on PVector.

Interfaces

Interface-like structures, used to simulate polymorphism.

Utils

Error handling, for-each and for-each-reversed implementations.

CContainersTests

CUnit framework tests for CContainers.

CContainersSpeedCheck

Speed-check executable for CContainers methods.

CAlgortihm

CAlgorithm (library)

Sort

Sorts implementations for containers that support interfaces provided by CContainers:

  • HeapSort.
  • MergeSort.
  • InplaceMergeSort.
  • QuickSort.
  • IntroSort.

PArraySort

Sorts implementations for plain pointer arrays:

  • HeapSort.
  • MergeSort.
  • InplaceMergeSort.
  • QuickSort.
  • IntroSort.

CAlgorithmTests

CUnit framework tests for CAlgorithm sorts.

CAlgortihmSpeedCheck

Speed-check executable for CAlgorithm sorts.

HuffmanCoding

HuffmanCoding (library)

Simple one-header-one-object huffman encoding/decoding implementation using CContainers.

HuffmanCodingTests

Basic coding/decoding tests for the library. CUnit framework used.

HuffmanArchive

Console util for coding/decoding files using huffman algorithm.

HuffmanArchiveParallel

Parallel version of HuffmanArchive: additional worker threads used for parallel coding/decoding file parts. This util is about 2 times faster than non-parallel version.

cutils's People

Contributors

konstantintomashevich avatar

Watchers

 avatar  avatar  avatar

Forkers

ashmita08

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.