View on GitHub

pylrn

Common algorithms & data structure implementations in python

Download this project as a .zip file Download this project as a tar.gz file

pylrn

Common algorithms & data structure implementation in Python.

I think good way to learn any language is by implementing basic sorting algorithms and data structures in language you want to learn. I was brushing up my knowledge on these algorithms and had to refer few things on internet that when i felt what if i never have to leave the terminal (idle) to learn something? Currently there are very few algorithms in module but i will add more soon. Anyone interested please check the "Contribute" section below

I thank,

So here are some of the basic algorithms, data structures and if i manage to finish both then i might add some common puzzles for e.g. pascals triangle

Please refer pylrn wiki for more information

Purpose

Sole purpose of this module is for "educational" purpose and its intended to be used via "idle"

Design & Usage

  1. I have used addon framework, which allows anyone can write these algorithms even user and load them from idle
  2. Every addon must have below methods
    • execute : Wrapper around "logic" [Please see one of the addons to understand]
    • info : Information about the algorithm [As of now, its first para from Wiki and Big-O notations]
    • logic : Any Guesses? [You can have logic in sub modules]
    • info_online : Opens the default browser with link to Wiki article [No need to google]
    • show_code : Print source(logic) on idle console [Supports printing multiple methods]
    • __addon__ : Name of addons [if you are using addon_generator.py, this will be there]
  3. Intended to be used via "Idle"
  4. Use "Debug" mode in idle to understand more about the code [add debugger on "execute"]

Please refer usage wiki for more information

Contribute

Please refer contribute page for more information.

Note

Please let me know if there is any issue with poor/wrong implementation of algorithms.