• Stars
    star
    276
  • Rank 149,319 (Top 3 %)
  • Language
    Python
  • Created about 14 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Algorithms implemented in Python

Python Algorithms Library

Laurent Luce

Description

The purpose of this library is to help you with common algorithms like:

A* path finding.

String Matching

  • Naive.
  • Rabin-Karp.
  • Knuth-Morris-Pratt.
  • Boyer-Moore-Horspool.

String

  • Convert string to integer without using int on the full string.
  • Reverse string containing words.

Generators

  • Permutations.

Lists

  • Find integer using binary search.
  • Find subset with max sum.
  • Merge sort.
  • Quicksort.

Binary tree

Tests

$ ./pants test ::

License

The Python Algorithms Library is distributed under the MIT License