<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Passing Curiosity: Posts tagged algorithms</title>
    <link href="https://passingcuriosity.com/tags/algorithms/algorithms.xml" rel="self" />
    <link href="https://passingcuriosity.com" />
    <id>https://passingcuriosity.com/tags/algorithms/algorithms.xml</id>
    <author>
        <name>Thomas Sutton</name>
        
        <email>me@thomas-sutton.id.au</email>
        
    </author>
    <updated>2015-04-03T00:00:00Z</updated>
    <entry>
    <title>Released some Haskell packages</title>
    <link href="https://passingcuriosity.com/2015/released-haskell-packages/" />
    <id>https://passingcuriosity.com/2015/released-haskell-packages/</id>
    <published>2015-04-03T00:00:00Z</published>
    <updated>2015-04-03T00:00:00Z</updated>
    <summary type="html"><![CDATA[<h2 id="edit-distance-vector">edit-distance-vector</h2>
<p>The <a href="https://hackage.haskell.org/package/edit-distance-vector">edit-distance-vector</a> package is a small library for calculating the
optimal edit script and cost to transform one sequence of values into another.
The implementation uses the <a href="https://en.wikipedia.org/wiki/Wagner–Fischer_algorithm">Wagner-Fischer</a> algorithm and the rather fun
<a href="https://hackage.haskell.org/package/vector/docs/Data-Vector.html#v:constructN"><code>constructN</code></a> function.</p>
<p>I have a draft blog post on the way about the details of this package but until
that’s done you’ll have to make do with the <a href="https://hackage.haskell.org/package/edit-distance-vector-1.0/docs/Data-Vector-Distance.html">documentation</a>.</p>
<h2 id="aeson-diff">aeson-diff</h2>
<p>The <a href="https://hackage.haskell.org/package/aeson-diff">aeson-diff</a> package includes a library and two command-line programs
for extracting the differences between two JSON documents and for applying
these changes. The commands are:</p>
<ul>
<li><p><code>aeson-diff</code> which compares two JSON documents and generates a patch
describing the differences between them; and</p></li>
<li><p><code>aeson-patch</code> which takes a JSON document and updates it according to patch.</p></li>
</ul>
<p>I find the <code>aeson-diff</code> command quite useful for comparing different versions
of the JSON documents spewed out by several systems I have to deal with at
work.</p>]]></summary>
</entry>

</feed>
