• Stars
    star
    276
  • Rank 148,471 (Top 3 %)
  • Language
    Python
  • Created almost 14 years ago
  • Updated over 1 year 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