<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>invariant - sssp</title>
    <subtitle>Essays on algorithms and data structures by Ali Khalilli. Binary search, numerical methods, dynamic programming, graphs, strings.</subtitle>
    <link rel="self" type="application/atom+xml" href="https://invariant.khalilli.ai/tags/sssp/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://invariant.khalilli.ai"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2022-05-28T00:00:00+00:00</updated>
    <id>https://invariant.khalilli.ai/tags/sssp/atom.xml</id>
    <entry xml:lang="en">
        <title>Floyd–Warshall</title>
        <published>2022-05-28T00:00:00+00:00</published>
        <updated>2022-05-28T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              alikhalilli
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://invariant.khalilli.ai/blog/floyd-warshall/"/>
        <id>https://invariant.khalilli.ai/blog/floyd-warshall/</id>
        
        <summary type="html">&lt;p&gt;When I saw this algorithm for a first time, It reminded me &lt;strong&gt;the Matrix Chain Multiplication&lt;&#x2F;strong&gt;, so therefore didn’t think about that much “how does it work?”, “why does it work?”.
Because, MCM problem seems much more interval DP(anyway, it’s acyclic DAG) because of it’s vibe of linearity.&lt;br&#x2F;&gt;
Let’s think the problem gradually from simpler to harder, 1. graph is completely linear OR topologically sorted, 2. graph nodes have all the connections pairwise.
For simplicity, let’s look at linear graph model.&lt;&#x2F;p&gt;</summary>
        
    </entry>
</feed>
