Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/waseemsabir/algorithms

Implementation of some main stream algotithms
https://github.com/waseemsabir/algorithms

algorithm

Last synced: 3 days ago
JSON representation

Implementation of some main stream algotithms

Awesome Lists containing this project

README

        

# Algorithms


 **Divide and Conquer**


  **1. Karatsuba algorithm**

  The brute force method for multiplication of two number takes O(n^2) time whereas karatsuba algorithm can do the same task with running time of O(n^1.59). The graph compares this difference upto the input of 10000 digits.
!['Plot of KaratSuba vs Bruteforce'](./plot.png 'Karatsuba vs Bruteforce')


 **Dynamic Programming**


  **1. Longest Common Subsequence**

  The time to find lcs of two sentences can be improved to polynomial time(n^2) with bottom up approach.