<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Algorithms on A Day In The Woods</title><link>https://blog.felttrip.com/tags/algorithms/</link><description>Recent content in Algorithms on A Day In The Woods</description><generator>Hugo</generator><language>en-us</language><copyright>Nate Thompson</copyright><lastBuildDate>Mon, 03 Nov 2014 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.felttrip.com/tags/algorithms/feed.xml" rel="self" type="application/rss+xml"/><item><title>Problem Solving</title><link>https://blog.felttrip.com/posts/problem-solving/</link><pubDate>Mon, 03 Nov 2014 00:00:00 +0000</pubDate><guid>https://blog.felttrip.com/posts/problem-solving/</guid><description>&lt;p&gt;One of my friends approached me with an algorithm problem the other day. Here&amp;rsquo;s
the short version of it.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;Given an undirected weighted graph where E=V find the minimum spaning tree in O(V) time.
E = Number of edges.
V = Number of vertices.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Now my friend had tried a few different things relating to finding an MST.
Prim&amp;rsquo;s and Kruskal&amp;rsquo;s algorithms were brought up, but both couldn&amp;rsquo;t be modified
such that they would solve the problem in O(V) time.&lt;/p&gt;</description></item></channel></rss>