psads / pythonds3

Data Structures package for Problem Solving with Algorithms and Data Structures using Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pythonds3

License: GPL v3 Supported Python versions PyPI version Build Status codecov

Data Structures package for Problem Solving with Algorithms and Data Structures using Python by Brad Miller and David Ranum.

The package is a supplement to Problem Solving with Algorithms and Data Structures using Python. It contains implementations of basic data structures, searching and sorting algorithms, trees, and graphs. Some implementation details are intentionally left out and readers are encouraged to complete them on their own.

Object-oriented programming

  • Typical class implementation
  • Use of getters, setters, and properties
  • Overriding magic methods (len, str, contains etc)

Basic data structures

  • Stack
  • Queue
  • Deque
  • Ordered linked list
  • Unordered linked list

Searching

  • HashMap

Sorting

  • Bubble sort
  • Selection sort
  • Insertion sort
  • Shell sort
  • Mergesort
  • Quicksort
  • Heapsort

Trees

  • Binary tree
  • Binary search tree
  • AVL tree
  • Binary heap
  • Priority queue

Graphs

  • Breadth first search
  • Depth first search
  • Dijkstra's shortest path algorithm
  • Bellman-Ford shortest path algorithm
  • Prim's spanning tree algorithm

About

Data Structures package for Problem Solving with Algorithms and Data Structures using Python

License:GNU General Public License v3.0


Languages

Language:Python 99.3%Language:Makefile 0.7%