Skip to content

ninadmhatre/pylrn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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"]

Note

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

About

common algorithms, data structure in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published