<oembed><type>rich</type><version>1.0</version><author_name>npub19fnl48y9j4fk9w0a284mqvszq6fuppelqp2tcxf0s37l95avdtussf4wf0</author_name><author_url>https://nostr.ae/npub19fnl48y9j4fk9w0a284mqvszq6fuppelqp2tcxf0s37l95avdtussf4wf0</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2021-08-21&#xA;📝 Original message:&#xA;Hi Zmn! That is some amazing lateral thinking you have been applying there.&#xA;I&#39;m quite certain I haven&#39;t understood everything fully, but it has been&#xA;highly entertaining to read. Will have to give it a closer read when I get&#xA;some time.&#xA;&#xA;As a first impression, here are some preliminary observations: While I&#xA;highly like the Haskell-style datatype, and the algorithm we use does&#xA;mostly use Dijkstra pathfinding, I think what is really important in your&#xA;definition is the computeCost definition. This is what we would call the&#xA;cost function IIUC, and in order to be able to solve min-cost flow problems&#xA;it generally has to be separable and convex. I believe your datatype merely&#xA;hides the fact that it is neither.&#xA;&#xA;Intuitively, I think that any cost function that implies a fixed cost (that&#xA;is, independent of the amount, though it might be different for every edge)&#xA;per edge is concave and in theory problematic for min-cost flow algorithms&#xA;because you could reduce some kind of NP-hard selection problem to it. I&#xA;believe that applies to most if not all of your ideas in the text. Again, I&#xA;think we should think more about how much of a problem that is in practice,&#xA;because we do have tools like approximation and parameterized algorithms,&#xA;as well as heuristics, and I also believe that, say, a moderate base fee&#xA;will not change the optimal flow much, because this will always prefer&#xA;large Htlcs anyway in order to optimize probability.&#xA;&#xA;I am really grateful that you have been taking the time to read and&#xA;understand our paper and have been thinking further in this fascinating&#xA;way. I am certain good things will come of it in time.&#xA;&#xA;Cheers,&#xA;  Stefan&#xA;&#xA;ZmnSCPxj &lt;ZmnSCPxj at protonmail.com&gt; schrieb am Sa., 21. Aug. 2021, 03:49:&#xA;&#xA;&gt;&#xA;&gt; &gt;     Alternative Pathfinding?&#xA;&gt; &gt;     ========================&#xA;&gt;&#xA;&gt;&#xA;&gt; Or to put this section more succinctly: Why should cost be a number?&#xA;&gt;&#xA;&gt; What operations do the minimum cost flow algorithms demand of this thing&#xA;&gt; called &#34;cost&#34;, and can we provide those operations using something which is&#xA;&gt; not a number but is instead a different structure?&#xA;&gt; What is the minimal interface that the mincostflow algo demands of this&#xA;&gt; &#34;cost&#34; datatype?&#xA;&gt;&#xA;&gt; Regards,&#xA;&gt; ZmnSCPxj&#xA;&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20210821/02ef209c/attachment.html&gt;</html></oembed>