GithubHelp home page GithubHelp logo

jvillasante / tastylib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chuyangliu/jumble

0.0 2.0 0.0 239 KB

C++ implementations of data structures, algorithms and useful designs.

License: MIT License

CMake 1.95% C++ 98.05%

tastylib's Introduction

TastyLib

C++ implementations of data structures, algorithms and useful designs.

Build Status

Linux Windows Coverage

Outline

Data Structures

Name Source Benchmarked Note Definition
DoublyLinkedList Tests
.h
Yes A linked data structure that consists of a set of sequentially linked records. It also supports merge sort. Wikipedia
BinaryHeap Tests
.h
Yes A heap data structure taking the form of a complete binary tree. A common way of implementing priority queue. Wikipedia
HashTable Tests
.h
No A data structure that stores unique elements in no particular order, and which allows for fast retrieval of individual elements based on their values. Similar to std::unordered_set. Wikipedia
AVLTree Tests
.h
Yes A self-balancing binary search tree. Wikipedia
Graph Tests
.h
No A data structure to implement the directed/undirected graph concepts from mathematics. It stores a graph in an adjacency list or matrix. Wikipedia

Algorithms

Name Source Benchmarked Note Definition
MD5 Tests
.h
Yes A widely used hash function producing a 128-bit hash value. Wikipedia
NPuzzle Tests
.h
Yes A classic searching problem solved with A* search. A GUI demo is provided. Wikipedia
Sort Tests
.h
Yes Including insertion sort, selection sort, heapsort, quicksort, quickselect. For merge sort, please refer to DoublyLinkedList.sort(). Wikipedia
Dijkstra Tests
.h
No An algorithm to find the shortest paths between vertices in a graph. Wikipedia
LCS Tests
.h
No A dynamic programming solution to find the longest subsequence or substring common to two sequences. Wikipedia (substring)
Wikipedia (subsequence)

Designs

Name Source Benchmarked Note Reference
TextQuery Tests
.h .cpp
No Search a given input stream for words. (OOP practice) §12.3 & §15.9, C++ Primer, 5th Edition
SharedPtr Tests
.h
No My own version of std::shared_ptr. §12.1 & §16.1.6, C++ Primer, 5th Edition
UniquePtr Tests
.h
No My own version of std::unique_ptr. §12.1 & §16.1.6, C++ Primer, 5th Edition

Installation

  1. Build with CMake:

    • Build benchmarks only

      $ mkdir build
      $ cd build
      $ cmake [-G <generator>] ..
    • Build benchmarks and testss

      $ mkdir build
      $ cd build
      $ git submodule init
      $ git submodule update
      $ cmake [-G <generator>] -DTASTYLIB_BUILD_TEST=ON ..

    You can customize the CMake Generators.

  2. Build with GNU Make (assuming a Makefile generator was used):

    $ make
  3. All executables will be generated in the bin directory. Run all tests:

    $ ctest
    

License

See the LICENSE file for license rights and limitations.

tastylib's People

Watchers

James Cloos avatar Julio C. Villasante avatar

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.