Skip to content

SaiprasadKrishnamurthy/datastructures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fundamental Datastructures and Algorithms in Scala

A Simple implementation of DataStructures using scala.

I'm broadly focusing on simple data structures (their concepts) and implementing them in Scala. The intent is not to implement a complete collections API as this is completely reinventing the wheel. Rather the intent is to learn the foundational data structures, their strengths and weaknesses, their asymptotic analysis and of course using functional programming in scala. :-)

Simple Data Structures (Level 1)

  • Arrays
  • ArrayLists
  • Linked Lists
  • Stacks
  • Queues

Intermediate Data Structures (Level 2)

  • Dictionaries (HashTables)
  • Binary Search Trees (Vanilla)
  • Heaps (Priority Queues)

Advanced Data structures (Level 3)##

  • Red-Black Trees
  • B-Trees
  • Graphs

A Few Handy Algorithms/Problems

  • Quick Sort

A Simple Time complexity table (Worst case)

DATA STRUCTURE SEARCH INSERT DELETE NOTES
Arrays O(n) O(n) O(n)
ArrayLists O(n) O(n) O(n)
LinkedLists O(n) O(1) O(1)
Queues O(n) O(1) O(1)
Stacks O(n) O(1) O(1)
BST (Vanilla) O(n) O(n) O(n) No balancing techniques employed as such.

About

Data structures in scala

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages