Git Product home page Git Product logo

Comments (19)

vedangmehta avatar vedangmehta commented on July 23, 2024 1

@munendrasn The algorithm is generally known as Levenstein Distance, I believe.

from algorithms.

prakhar1989 avatar prakhar1989 commented on July 23, 2024

Hi @bmoussa,

Feel free to send in your contributions to this repo. Do you have something in mind that you want to implement? If you don't have a specific algorithm in mind, you can improve this repo by adding testcases for existing algorithms.

Let me know if you need help with this.

from algorithms.

bmoussa avatar bmoussa commented on July 23, 2024

Thank you
So for a first contribution I think adding an algorithm in the dp folder.
This algorithm that I would call "check.py" will check whether the elements of an array are consecutive.

from algorithms.

ab1hi2shek avatar ab1hi2shek commented on July 23, 2024

Hi!! I have some algorithms in mind. can i contribute to this repo?

from algorithms.

prakhar1989 avatar prakhar1989 commented on July 23, 2024

Sure! Let me know what algorithms do you have in mind and we can move forward from there.

from algorithms.

ab1hi2shek avatar ab1hi2shek commented on July 23, 2024

I can write Knuth–Morris–Pratt algorithm(KMP), Merge sort,Tower of Hanoi and Fenwick tree algorithms. what u say?

from algorithms.

prakhar1989 avatar prakhar1989 commented on July 23, 2024

KMP sounds great. I wanted to add more string algorithms to this repo and KMP sounds like a good way to go. After KMP you can pick up Rabin-Karp and then Boyer-Moore!

Also do remember to add tests as it makes the code more robust.

Looking forward to your PR!

from algorithms.

vedangmehta avatar vedangmehta commented on July 23, 2024

Which of these can I add? Segment tree, strongly connected components (Kosaraju), binary indexed tree and longest common subsequence.

from algorithms.

prakhar1989 avatar prakhar1989 commented on July 23, 2024

@vedangmehta Kosaraju's already there, so is LCS. You can start with Segment Tree.

from algorithms.

vedangmehta avatar vedangmehta commented on July 23, 2024

I can't find LCS in DP section. I can see LIS though.

from algorithms.

prakhar1989 avatar prakhar1989 commented on July 23, 2024

Oh yeah! You're right. Sorry I confused the two. You can go ahead and add that too.

from algorithms.

vedangmehta avatar vedangmehta commented on July 23, 2024

Ok! I'll add both seg tree and LCS.

from algorithms.

munendrasn avatar munendrasn commented on July 23, 2024

@prakhar1989 , Can i add Edit Distance to DP section??

from algorithms.

prakhar1989 avatar prakhar1989 commented on July 23, 2024

@munendrasn: Can you talk a bit more about the algorithm? Probably a wiki link if possible?

from algorithms.

munendrasn avatar munendrasn commented on July 23, 2024

@prakhar1989 , https://en.wikipedia.org/wiki/Levenshtein_distance

from algorithms.

prakhar1989 avatar prakhar1989 commented on July 23, 2024

Cool. Sounds good. Do remember to add tests in the PR as well.

from algorithms.

munendrasn avatar munendrasn commented on July 23, 2024

Sure. @prakhar1989 , Also should I close this PR #38 ??

from algorithms.

manishrw avatar manishrw commented on July 23, 2024

Can i add modular exponentiation ?

from algorithms.

manishrw avatar manishrw commented on July 23, 2024

@prakhar1989 I've sent a PR for modular multiplicative inverse algorithm.

from algorithms.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.