Giter Club home page Giter Club logo

classical-algorithm's Introduction

Classical Algorithms Implemented in Java

Introduction

This repository contains demo implementations of several classical algorithms in Java.

Table of Contents

  • Sorting
  • Hash Table
  • Tree & Graph
  • Binary Search Tree (Regular)
  • Trie
  • 0-1 Knapsack

Sorting

  • Folder: sorting
  • Description: Bubble Sort, Selection Sort, Insertion Sort, Quick Sort, Merge Sort, Heap Sort
  • Test Codes: Main.java

Hash Table

  • Folder: hashtable
  • Description: Demo implementation of a hash table using arrays
  • Major Operations: add a new item, get an existing item, remove an existing item
  • Test Codes: Main.java

Tree & Graph

  • Folder: tree-graph
  • Description: Demo implementation of trees (binary and N-ary) and graphs using adjacency list
  • Major Operations: Binary Tree (preorder/inorder/postorder tree walk), N-ary Tree (postorder/DFS/BFS tree walk), Graph (DFS/BFS traversal, graph reversal)
  • Test Codes: Main.java

Binary Search Tree (Regular)

  • Folder: bst
  • Description: Demo implementation of regular binary search tree
  • Major Operations: existence check, add a new item, remove an existing item, successor, predecessor, inorder tree walk
  • Test Codes: Main.java

Trie

  • Folder: trie
  • Description: Demo implementation of a trie
  • Major Operations: add a new word, find a word, remove a word, trie traversal
  • Test Codes: Main.java

0-1 Knapsack

  • Folder: knapsack
  • Description: Solution ot 0-1 knapsack problem
  • Test Codes: Main.java

classical-algorithm's People

Contributors

stlong0521 avatar

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.