Code Monkey home page Code Monkey logo

java-algdat's Introduction

java-algdat

Java implementation of different algorithms and datastructures.

Preparation for being a TA in IN2010 - datastructures and algorithms at the University of Oslo.

Most algorithms and datastructures are contained in a single file, including a single test often randomly generated. Some algorithms use datastructures where its natural, for example Dijkstra.java uses PriorityQueue.java in its implementation.

Other files are various utilities which generate tests, graphs and help visualize the algorithms.

Algorithms

  • Sorting

    • Insertion sort
    • Selection sort
    • Merge sort
    • Quick sort
    • Bucket sort
    • Radix sort
    • Counting sort
    • Heap sort
  • Graphs

    • Traversal

      • DFS
      • BFS
      • Iterative deepening
    • Shortest path

      • Dijkstra
      • Bellman-Ford
      • Topological sort shortest path
    • Minimum spanning tree

      • Prim's algorithm
      • Kruskal's algorithm
      • Borůvka's algorithm
    • Other

      • Topological sort
      • Separation nodes (Tarjan)
      • Kosaraju's algorithm (Strongly connected components)
      • Huffman coding
      • Maximal matching (Hungarian)
      • Maximum flow in network (Ford-Fulkerson)
  • Arrays

    • Binary search
  • String algorithms

    • Pattern matching
      • Naive algorithm
      • Horspool algorithm
      • Knut-Morris-Pratt algorithm
      • Rabin-Karp algorithm
    • Edit distance
      • Standard Bottom-up (Wagner-Fischer)
      • Top-down memoized (Wagner-Fischer)
      • Needleman-Wunsch
      • Hirschbergs

Datastructures

  • Containers

    • Stack
    • Priority queue
    • Binary Heap
    • Leftist Heap
    • Binomial Heap
    • Fibonacci Heap
    • HashMap
  • Graphs

    • Binary tree
    • Red black tree
    • AVL tree

Utilities

  • Graph Generator
  • Binary tree visualizer / Red black tree visualizer
  • Sorting test generator
  • Binary tree generator

java-algdat's People

Contributors

jakobkhansen avatar

Watchers

 avatar  avatar  avatar

java-algdat's Issues

Red black tree

Implement Red black tree datastructure. Probably dependent on #8

Stack

Implement stack datastructure.

Testing refactor

Either refactor tests so everything goes in testing folder, or tests go in the implementation. Separate testing is cleaner, but test in implementation is more compact (better for TA'ing).

Heap

Implement a heap datastructure which supports MinHeap and MaxHeap.

HashMap

Create a HashMap datastructure

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.