Giter Club home page Giter Club logo

advanced_algorithms's Introduction

Advanced Algorithms

This repository contains some more advanced algorithms for sorting, sorting in finite universes, searching and trees. For some algorithms there are short or more advanced tests.

Please see the appropriate file for the exact algorithm.

These implementations were done accompanying a masters lecture on algorithmics. Some of these algorithms are just implemented quick-and-dirty while others (2,3-tree) have gotten some more thought put into. I couldn't always find time.

Tree

Algorithm Runtime
2,3-tree (special case of the a,b-tree) All operations in θ(logn) w.c. and a.c.

General Sorting

Algorithm Runtime
Mergesort O(n logn)
Quicksort O(n^2)

Sorting in finite domains

n = number of values

k = number of different values

s = max word length (Radixsort)

Algorithm Runtime
Countingsort θ(n+k) w.c. and a.c.
Advanced Countingsort θ(n+k) w.c. and a.c.
Bucketsort θ(n+k) w.c. and a.c.
Radixsort θ(s*(n+k)) w.c. and a.c.

Order statistics (Select algorithms)

Searching for the n-th element in a not sorted list.

Algorithm Runtime
Randomised Algorithm θ(n^2) w.c. θ(n) a.c.
Deterministic Algorithm θ(n) w.c. and a.c.

Searching in sorted Arrays

Algorithm Runtime
Binary Search θ(logn)
Interpolation Search θ(n) w.c. θ(log(logn)) a.c.
Quadratic Binary Search θ(sqrt(n)) w.c. θ(log(logn)) a.c.

advanced_algorithms's People

Watchers

 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.