• Stars
    star
    23,518
  • Rank 894 (Top 0.02 %)
  • Language
    Python
  • License
    MIT License
  • Created over 7 years ago
  • Updated 15 days ago

Reviews

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

Repository Details

Minimal examples of data structures and algorithms in Python

PyPI version Open Source Helpers Build Status Coverage Status

Pythonic Data Structures and Algorithms

Minimal and clean example implementations of data structures and algorithms in Python 3.

Contributing

Thanks for your interest in contributing! There are many ways to contribute to this project. Get started here

Tests

Use unittest

For running all tests write down:

$ python3 -m unittest discover tests

For running some specific tests you can do this as following (Ex: sort):

$ python3 -m unittest tests.test_sort

Use pytest

For running all tests write down:

$ python3 -m pytest tests

Install

If you want to use the API algorithms in your code, it is as simple as:

$ pip3 install algorithms

You can test by creating a python file: (Ex: use merge_sort in sort)

from algorithms.sort import merge_sort

if __name__ == "__main__":
    my_list = [1, 8, 3, 5, 6]
    my_list = merge_sort(my_list)
    print(my_list)

Uninstall

If you want to uninstall algorithms, it is as simple as:

$ pip3 uninstall -y algorithms

List of Implementations

Contributors

Thanks to all the contributors who helped in building the repo.

More Repositories

1

awesome-nlp

📖 A curated list of resources dedicated to Natural Language Processing (NLP)
15,943
star
2

awesome-bits

💻 A curated list of awesome bitwise operations and tricks
3,013
star
3

deep-q-learning

Minimal Deep Q Learning (DQN & DDQN) implementations in Keras
Python
1,249
star
4

seq2seq

Minimal Seq2Seq model with Attention for Neural Machine Translation in PyTorch
Python
681
star
5

deepstock

Technical experimentations to beat the stock market using deep learning 📈
Python
463
star
6

3-min-pytorch

<펭귄브로의 3분 딥러닝, 파이토치맛> 예제 코드
Jupyter Notebook
205
star
7

policy-gradient

Minimal Monte Carlo Policy Gradient (REINFORCE) Algorithm Implementation in Keras
Python
158
star
8

pointer-networks

Pointer Networks Implementation in Keras
Python
149
star
9

pytorch-exercises

Pytorch exercises
Jupyter Notebook
95
star
10

speed

Learning To Predict Vehicle Speed From A Video
88
star
11

data-engineering

Jupyter Notebook
76
star
12

CodeGAN

[Deprecated] Source Code Generation using Sequence Generative Adversarial Networks :octocat:
Python
74
star
13

keras-text-classification

Text classification using Convolutional Neural Networks (CNN)
36
star
14

deeptravel

🚗 Solving Traveling Salesman Problem (TSP) using Deep Learning
Python
31
star
15

deep-nlp

[In-Progress] Mini implementations of deep learning algorithms for natural language processing in PyTorch
Jupyter Notebook
29
star
16

intro-to-blockchain

Introduction To Building Blockchain And Cryptocurrency In JavaScript
JavaScript
24
star
17

text-wgan

Improved Training of Wasserstein GANs for Text Generation
Python
21
star
18

Seq2Seq-Tensorflow

[In-Progress] Tensorflow implementation of Sequence to Sequence Learning with Neural Networks
Python
17
star
19

encdec

Basic RNN Encoder Decoder in Tensorflow
Python
16
star
20

NMT

[In-Progress] A command-line tool for Neural Machine Translation in Python & Tensorflow
Python
15
star
21

deep-api

deep learning algorithm web api services using tensorflow, flask, react and redux
JavaScript
15
star
22

keon.github.io

😎 personal blog
HTML
12
star
23

deepsort

Deep Learning the Sorting Algorithm
Python
11
star
24

cpp-pytorch

C++ PyTorch Examples
C++
10
star
25

keras-autocomplete

Autocompleting the code using Basic LSTM
Python
9
star
26

seq2seq-wgan

Improved Training of Wasserstein GANs for Neural Machine Translation
Python
9
star
27

modori

💬 Natural Language Processing Web API Using Python Flask and Konlpy
HTML
8
star
28

language-model

RNN Language Modeling with PyTorch
Python
8
star
29

synapse

💥 An easy-to-use JavaScript neural network library
JavaScript
7
star
30

sentiment

Python
6
star
31

intro-to-dapp

5
star
32

houston

🚀 rocket base program using Arduino + Node.js + Socket.io
HTML
5
star
33

pytorch-rwa

[In-Progress] Recurrent Weighted Average Implementation in Pytorch
Jupyter Notebook
4
star
34

text-classification

Python
3
star
35

foresight

TypeScript
3
star
36

nlp

nlp stuff
Python
3
star
37

goblinhipsters

JavaScript
2
star
38

doremi.fm

🎼 [UNMAINTAINED] doremi.fm prelaunch page
JavaScript
2
star
39

neuralnet

A simple neural net in C++
C++
2
star
40

cg

Computer Graphics
JavaScript
2
star
41

feedbee

JavaScript
1
star
42

SSB-Gang

Solidity
1
star
43

docs

MDX
1
star
44

advnlp

Python
1
star
45

terminal

JavaScript
1
star
46

cppalgorithms

Minimal C++ Data Structures and Algorithms for Reference
C++
1
star