GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - calebmadrigal/algorithms-in-python: Algorithms and Data Structures implemented in Python

BranchesTags
Open more actions menu

Latest commit

 

History

51 Commits
51 Commits

Folders and files

NameName
Last commit message
Last commit date
test
test
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
autoresizelist.py
autoresizelist.py
 
 
binary_search_tree.py
binary_search_tree.py
 
 
breadth_first_search.py
breadth_first_search.py
 
 
city_data.json
city_data.json
 
 
combinatorics.py
combinatorics.py
 
 
depth_first_search.py
depth_first_search.py
 
 
dijkstra.py
dijkstra.py
 
 
fib.py
fib.py
 
 
get_city_data.py
get_city_data.py
 
 
hashtable.py
hashtable.py
 
 
heap.py
heap.py
 
 
heap_speed_test.py
heap_speed_test.py
 
 
mergesort.py
mergesort.py
 
 
nqueens.py
nqueens.py
 
 
prefix_calc.py
prefix_calc.py
 
 
quicksort.py
quicksort.py
 
 
reverse.py
reverse.py
 
 
straight_city_distances.json
straight_city_distances.json
 
 

Repository files navigation

Algorithm Implementations

This is just a collection of algorithms I wanted to implement in order to improve my understanding. They are NOT optimized and probably shouldn't be used in production code.

To run all unit tests:

python3 -m unittest discover test

quicksort

Recursive implementation of the quick sort algorithm.

To run tests:

python3 quicksort.py

mergesort

Recursive implementation of the merge sort algorithm.

To run tests:

python3 mergesort.py

hashtable

Simple hashtable implementation

autoresizelist

A helper class used to implement the heap.

To run tests:

python3 autoresizelist.py

heap

Implementation of a heap.

To run tests:

python3 heap.py

nqueens

Backtracking solution to the n-queens problem (just finds the first one).

To run:

python3 nqueens.py

To run tests:

python3 -m unittest discover test --pattern="*nqueens*"

combinatorics

Various combinatoric functions like permutations and combinations.

To run:

python3 combinatorics.py

About

Algorithms and Data Structures implemented in Python

Resources

Readme
MIT license
Activity

Stars

96 stars

Watchers

6 watching

Forks

33 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.