<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Algorithms Q&amp;A - Recent questions in Greedy Algorithms</title>
<link>https://notexponential.com/questions/greedy</link>
<description>Powered by Question2Answer</description>
<item>
<title>Show that Greedy Algorithm is suboptimal for Gold Rod Question</title>
<link>https://notexponential.com/681/show-that-greedy-algorithm-suboptimal-for-gold-rod-question</link>
<description>&lt;p&gt;Consider a greedy algorithm based approach for gold rod question:&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;http://notexponential.com/623/gold-is-a-precious-metal&quot;&gt;http://notexponential.com/623/gold-is-a-precious-metal&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Show that greedy algorithm based approach is not optimal, by giving a counter example.&lt;/p&gt;</description>
<category>Greedy Algorithms</category>
<guid isPermaLink="true">https://notexponential.com/681/show-that-greedy-algorithm-suboptimal-for-gold-rod-question</guid>
<pubDate>Sat, 04 May 2019 17:29:51 +0000</pubDate>
</item>
<item>
<title>Is Greed the best choice?</title>
<link>https://notexponential.com/508/is-greed-the-best-choice</link>
<description>Argue whether or not you would apply Greedy technique to the following problems:&lt;br /&gt;
&lt;br /&gt;
a. Chess&lt;br /&gt;
&lt;br /&gt;
b. Sorting&lt;br /&gt;
&lt;br /&gt;
c. Shortest path computation&lt;br /&gt;
&lt;br /&gt;
d. knapsack&lt;br /&gt;
&lt;br /&gt;
Explain the reasoning behind each.</description>
<category>Greedy Algorithms</category>
<guid isPermaLink="true">https://notexponential.com/508/is-greed-the-best-choice</guid>
<pubDate>Sun, 04 Mar 2018 04:27:36 +0000</pubDate>
</item>
<item>
<title>Symbol Frequency</title>
<link>https://notexponential.com/507/symbol-frequency</link>
<description>Given a set of symbols and their frequency of usage, find a binary code for each symbol, such that:&lt;br /&gt;
&lt;br /&gt;
a. Binary code for any symbol is not the prefix of the binary code of another symbol.&lt;br /&gt;
&lt;br /&gt;
b. The weighted length of codes for all the symbols (weighted by the usage frequency) is minimized</description>
<category>Greedy Algorithms</category>
<guid isPermaLink="true">https://notexponential.com/507/symbol-frequency</guid>
<pubDate>Sun, 04 Mar 2018 04:25:55 +0000</pubDate>
</item>
<item>
<title>Maximize Party Planning Reward</title>
<link>https://notexponential.com/506/maximize-party-planning-reward</link>
<description>You are asked to be an organizer for n parties and are provided with their start and end times. (For example: P1: 7 AM - 9 AM; P2: 8 AM to 3 PM; P3: 4 AM to 8 AM.) You can only be organizing one party at a time, so you need to choose. For every party that you organize, you are given a fixed reward (1000$) irrespective of the length of the party. How do you select the parties to maximize your reward? What is the time complexity of your algorithm in terms of n?</description>
<category>Greedy Algorithms</category>
<guid isPermaLink="true">https://notexponential.com/506/maximize-party-planning-reward</guid>
<pubDate>Sun, 04 Mar 2018 03:38:40 +0000</pubDate>
</item>
<item>
<title>Maximum Product Spanning Tree</title>
<link>https://notexponential.com/505/maximum-product-spanning-tree</link>
<description>Consider problem similar to a minimum or maximum spanning tree, but instead we want to find the maximum product spanning tree, that is a tree that maximums the product of weights of the edges. Describe an efficient algorithm to find the maximum product spanning tree. &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
[Assume each edge weight is at least 1.]</description>
<category>Greedy Algorithms</category>
<guid isPermaLink="true">https://notexponential.com/505/maximum-product-spanning-tree</guid>
<pubDate>Sun, 04 Mar 2018 03:35:47 +0000</pubDate>
</item>
<item>
<title>Maximum Spanning Tree</title>
<link>https://notexponential.com/504/maximum-spanning-tree</link>
<description>Consider problem similar to a minimum spanning tree, but instead we want to find the maximum spanning tree, that is, a tree that maximums the sum of weight of the edges. Describe an efficient algorithm to find the maximum spanning tree.</description>
<category>Greedy Algorithms</category>
<guid isPermaLink="true">https://notexponential.com/504/maximum-spanning-tree</guid>
<pubDate>Sun, 04 Mar 2018 03:34:27 +0000</pubDate>
</item>
<item>
<title>Interval Scheduling</title>
<link>https://notexponential.com/503/interval-scheduling</link>
<description>Suppose you are given a list of lectures with there start time and end times. How can you choose the maximum number of non-overlapping lectures?</description>
<category>Greedy Algorithms</category>
<guid isPermaLink="true">https://notexponential.com/503/interval-scheduling</guid>
<pubDate>Sun, 04 Mar 2018 03:32:49 +0000</pubDate>
</item>
<item>
<title>Chromatic Number, Relation to Max Degree</title>
<link>https://notexponential.com/488/chromatic-number-relation-to-max-degree</link>
<description>The chromatic number of G is denoted as χ(G) and is defined as the smallest number of colors needed to color the graph so that no two adjacent nodes receive the same color. Using a greedy coloring algorithm prove that the χ(G) ≤ ∆(G)+1, where ∆(G) is the largest degree in the graph.</description>
<category>Greedy Algorithms</category>
<guid isPermaLink="true">https://notexponential.com/488/chromatic-number-relation-to-max-degree</guid>
<pubDate>Wed, 22 Nov 2017 10:15:23 +0000</pubDate>
</item>
<item>
<title>&quot;Fast Response&quot; Locating a Proxy Server for the network</title>
<link>https://notexponential.com/468/fast-response-locating-a-proxy-server-for-the-network</link>
<description>&amp;quot;Fast response&amp;quot;. A series of client machines are located along a linear network. The i-th client generates amount of traffic that is given by w[i]. You want to put a server somewhere along the linear network that minimizes the total amount of traffic carried by the network. Provide an O(n) algorithm to identify the location of the server.</description>
<category>Greedy Algorithms</category>
<guid isPermaLink="true">https://notexponential.com/468/fast-response-locating-a-proxy-server-for-the-network</guid>
<pubDate>Wed, 12 Jul 2017 17:44:29 +0000</pubDate>
</item>
<item>
<title>Adjustment to Greedy Knapsack Algorithm to Guarantee Atleast 50% value of Optimal</title>
<link>https://notexponential.com/169/adjustment-knapsack-algorithm-guarantee-atleast-optimal</link>
<description>How can we change the greedy knapsack algorithm a little bit to guarantee at least 50% value of optimal?</description>
<category>Greedy Algorithms</category>
<guid isPermaLink="true">https://notexponential.com/169/adjustment-knapsack-algorithm-guarantee-atleast-optimal</guid>
<pubDate>Tue, 16 Feb 2016 22:40:32 +0000</pubDate>
</item>
</channel>
</rss>