Cosmos: Add edit distance solution

Created on 2 Oct 2017  路  15Comments  路  Source: OpenGenus/cosmos

Add the code for edit distance problem.

Problem statement:
Given two strings and three types of operation (insert, remove and replace a character), find the minimum number of operations needed to convert the first string into the second.

The code should be added at code/dynamic_programming/edit_distance

Hacktoberfest add code new algorithm

Most helpful comment

@AdiChat I would like to work on it by using Python Language

All 15 comments

Added the first implementation in C++: #180

@AdiChat I would like to work on it by using Python Language

@rahulg963 Go for it 馃憤

I would go for C version. Please assign @AdiChat

Go ahead 馃憤

I have send you an invite

@AdiChat please review #233 I have added

Issue #181 Added #233 pls review.

I am about to add an implementation in Haskell.

I would like to work on this in java.

I have added PR on edit distance in java. Please review it.

@AdiChat, We have another version of edit distance which is space efficient version used to align dna sequences, as they are very large so we can not use just O(mn) space (m, n- length of two strings), so I want to add code in C++ of O(2*m) space, also in both versions of code I want to like to add backtracking part, means finally what are aligned sequences are? Please assign me this work. Please assign it under hacktoberfest.

Yes, @amankh99 Go ahead and make a pull request 馃憤

Please review the pull request and suggest any changes.

@AdiChat , For adding backtracking part means getting the aligned sequences in edit_distance problem having O(m*n) space complexity (m, n - length of strings) should I make a new file or should modify the existing file made by Vitorvgc.

@AdiChat , Please review this backtracking part of edit distance of O(m*n) space complexity - pull request

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ms10398 picture ms10398  路  4Comments

ruchirchauhan picture ruchirchauhan  路  4Comments

arthurlacoste picture arthurlacoste  路  3Comments

ivanrein picture ivanrein  路  4Comments

grantmwilliams picture grantmwilliams  路  4Comments