Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

holmgr/dsa-cozy-corner

Repository files navigation

dsa-cozy-corner

Build Status

A collection of implementations of prominent algorithms and data strucutres by U-students @ LiU

Read the Contribution Guidelines before coding to ensure that your implementation will be accepted.

Getting started

The project uses CMake and make as its build tools and the Google Test framework for unit testing.

Use the following steps (make sure that you are standing in the build directory:

  1. Generate make files for the project

    mkdir build
    cd build
    cmake ..
    
  2. Compile and link source code:

    make
    
  3. Run all unit tests:

    ./dsa_test
    

There also exists some python scripts in the root directory (install.py and run_tests.py) which will do these two steps automatically for you.

Furthermore there exists some sample code for you to get started, specifically src/sample.cpp, src/sample.h and test/sample_unittest.cpp.

Get hacking!

Implementation suggestions

The following lists are some suggestions for algorithms and data structures which has not yet been implemented or only implemented in a very limited fashion. You can of cource pick any algorithm/data structure you want!

Algorithms:

  • [] AC-3
  • [] Hill Climbing (normal and enforced)
  • [] A*
  • [] DFS
  • [] BFS
  • [] Heapsort
  • [] 2opt
  • [] Alpha-Beta pruning
  • [] Minimax

Data structures

  • [] Search trees
  • [] Balanced trees (AVL, Splay and Red-Black)
  • [] Persistant rope
  • [] Priority Queue (min or max heap)
  • [] Prefix tree

Implemented algorithms

This list contains the algorithms implemented so far.

Algorithm name Description File Time complexity Space complexity Notes
Quick sort Sorts a list in place sorting.cpp O(nlogn) (O(n²) worst case) O(n) In place
Bubble sort Sorts a list in place. Slow but simple. sorting.cpp O(n²) O(1) In place

About

A collection of prominent algorithms and data strucutre, implemented by U-students @ LiU

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published