<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: September 2021]]></title>
	<link>https://bioinformaticsonline.com/blog/archive/surabhi/1630472400/1633064400?</link>
	<atom:link href="https://bioinformaticsonline.com/blog/archive/surabhi/1630472400/1633064400?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/43401/levenshtein-and-damerau-levenshtein-distance</guid>
	<pubDate>Tue, 28 Sep 2021 04:38:55 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/43401/levenshtein-and-damerau-levenshtein-distance</link>
	<title><![CDATA[Levenshtein and Damerau-Levenshtein distance !]]></title>
	<description><![CDATA[<h3><strong>Levenshtein Distance</strong></h3><p>Also known as <strong>Edit Distance</strong>, it is the number of transformations (deletions, insertions, or substitutions) required to transform a source string into the target one. For example, if the target term is &ldquo;book&rdquo; and the source is &ldquo;back&rdquo;, you will need to change the first &ldquo;o&rdquo; to &ldquo;a&rdquo; and the second &ldquo;o&rdquo; to &ldquo;c&rdquo;, which will give us a Levenshtein Distance of 2.Edit Distance is very easy to implement, and it is a popular challenge during code interviews </p><p>Additionally, some frameworks also support the Damerau-Levenshtein distance:</p><p>&nbsp;</p><h3><strong>Damerau-Levenshtein distance</strong></h3><p>It is an extension to Levenshtein Distance, allowing one extra operation: <strong><em>Transposition</em></strong>&nbsp;of two adjacent characters:</p><p><strong>Ex: </strong>TSAR to STAR</p><p><strong>Damerau-Levenshtein distance = </strong>1&nbsp; (Switching S and T positions cost only one operation)</p><p><strong>Levenshtein distance = 2&nbsp;</strong> (Replace S by T and T by S)</p>]]></description>
	<dc:creator>Surabhi Chaudhary</dc:creator>
</item>

</channel>
</rss>