All Projects → OmkarPathak → Pygorithm

OmkarPathak / Pygorithm

Licence: mit
A Python module for learning all major algorithms

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pygorithm

450 Dsa
450-DSA helps you track your progress in solving 400+ DSA questions and keeps you engaging based on DSA-Cracker Sheet ⚡
Stars: ✭ 301 (-92.93%)
Mutual labels:  algorithms, data-structures
Towel
Throw in the towel.
Stars: ✭ 333 (-92.18%)
Mutual labels:  algorithms, data-structures
Algowiki
A wiki dedicated to competitive programming
Stars: ✭ 317 (-92.55%)
Mutual labels:  algorithms, data-structures
Leetcode 101
LeetCode 101:和你一起你轻松刷题(C++)
Stars: ✭ 5,327 (+25.16%)
Mutual labels:  algorithms, data-structures
Js Data Structures And Algorithms
从 0 到 1 学习 JavaScript 数据结构与算法
Stars: ✭ 425 (-90.01%)
Mutual labels:  algorithms, data-structures
Daily Coding Problem
Solutions for Daily Coding Problem.
Stars: ✭ 300 (-92.95%)
Mutual labels:  algorithms, data-structures
Competitive coding
This repository contains some useful codes, techniques, algorithms and problem solutions helpful in Competitive Coding.
Stars: ✭ 393 (-90.77%)
Mutual labels:  algorithms, data-structures
Cpp
Repository for C++/C codes and algos.
Stars: ✭ 265 (-93.77%)
Mutual labels:  algorithms, data-structures
Interview Bit
Solutions to problems on Interview Bit
Stars: ✭ 353 (-91.71%)
Mutual labels:  algorithms, data-structures
Dataviz
Build and Visualize data structures in Golang
Stars: ✭ 348 (-91.82%)
Mutual labels:  algorithms, data-structures
Dart
Stars: ✭ 278 (-93.47%)
Mutual labels:  algorithms, data-structures
Proalgos Cpp
C++ implementations of well-known (and some rare) algorithms, while following good software development practices
Stars: ✭ 369 (-91.33%)
Mutual labels:  algorithms, data-structures
Algorithms
My Algorithms and Data Structures studies. https://leandrotk.github.io/series/algorithms-problem-solving
Stars: ✭ 275 (-93.54%)
Mutual labels:  algorithms, data-structures
Interview
Data Structures and Algorithms in Java (useful in interview process)
Stars: ✭ 396 (-90.7%)
Mutual labels:  algorithms, data-structures
Php
All Algorithms implemented in Php
Stars: ✭ 272 (-93.61%)
Mutual labels:  algorithms, data-structures
Algorithms.js
Atwood's Law applied to CS101 - Classic algorithms and data structures implemented in JavaScript
Stars: ✭ 3,322 (-21.95%)
Mutual labels:  algorithms, data-structures
Coding Interview University
A complete computer science study plan to become a software engineer.
Stars: ✭ 204,859 (+4713.42%)
Mutual labels:  algorithms, data-structures
Mega Interview Guide
The MEGA interview guide, JavaSciript, Front End, Comp Sci
Stars: ✭ 255 (-94.01%)
Mutual labels:  algorithms, data-structures
Codeeggdailyinterview
码个蛋每日面试题
Stars: ✭ 345 (-91.89%)
Mutual labels:  algorithms, data-structures
Competitive Programming Repository
Competitive Programming templates that I used during the past few years.
Stars: ✭ 367 (-91.38%)
Mutual labels:  algorithms, data-structures

Pygorithm

Packagist Downloads Documentation Status Python 3.6 Say Thanks! Contributors
A Python module to learn all the major algorithms on the go!
Purely for educational purposes
https://images.gitads.io/pygorithm

Features

  • Super easy to use
  • A very easy to understand Documentation
  • Get the code right in your editor
  • Get time complexities on the go

Installation

  • Just fire the following command in your terminal:
pip3 install pygorithm
  • It's that easy. If you are using Python 2.7 use pip instead. Depending on your
    permissions, you might need to use pip install --user pygorithm to install.
  • Or you can download the source code from here, and then just install the package using
python setup.py install

Quick Start Guide

  • To sort your list
>>> from pygorithm.sorting import bubble_sort
>>> my_list = [12, 4, 3, 5, 13, 1, 17, 19, 15]
>>> sorted_list = bubble_sort.sort(my_list)
>>> print(sorted_list)
>>> [1, 3, 4, 5, 12, 13, 15, 17, 19]
  • To get the code for function used
>>> from pygorithm.sorting import bubble_sort
>>> code = bubble_sort.get_code()
>>> print(code)
  • To get the time complexity of an algorithm
>>> from pygorithm.sorting import bubble_sort
>>> time_complexity = bubble_sort.time_complexities()
>>> print(time_complexity)
  • To see all the available functions in a module, you can just type help() with the module name as argument. For example,
>>> from pygorithm import sorting
>>> help(sorting)
    Help on package pygorithm.sorting in pygorithm:

    NAME
        pygorithm.sorting - Collection of sorting methods

    PACKAGE CONTENTS
        bubble_sort
        bucket_sort
        counting_sort
        heap_sort
        insertion_sort
        merge_sort
        modules
        quick_sort
        selection_sort
        shell_sort

Tests

  • Just type in the following command to run the tests
python3 -m unittest
  • This will run all the tests defined in the files of the tests/ directory

Donation

If you have found my softwares to be of any use to you, do consider helping me pay my internet bills. This would encourage me to create many such softwares :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].