Skip to content

Implementation of High-Level Data Structure Using Java

Notifications You must be signed in to change notification settings

mrkdeng/data-structures-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Data Structures in Java

Implementation of High-Level Data Structure Using Java

Tree/Graph

  • FenwickTree
  • SegmentTreeNode: Segement Tree can be used to calculate sum of an array given a specific range
    • Time complexity (given an array with length n):
      • To build a segment tree O(n). There are (2n - 1) nodes in this tree
      • To update a segment tree O(log(n)). After finding the leaf to update, we need to update one node at each level on the way back to root
      • To query a sum O(log(n)).

Sort

  • Quick Sort:

About

Implementation of High-Level Data Structure Using Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages