<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Robert Benkoczi &#187; approx-oldass</title>
	<atom:link href="http://www.cs.uleth.ca/~benkoczi/wordpress/?cat=18&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://www.cs.uleth.ca/~benkoczi/wordpress</link>
	<description>Personal page @ uleth.ca</description>
	<lastBuildDate>Wed, 07 Jan 2026 17:10:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Assignment 2</title>
		<link>https://www.cs.uleth.ca/~benkoczi/wordpress/?p=310</link>
		<comments>https://www.cs.uleth.ca/~benkoczi/wordpress/?p=310#comments</comments>
		<pubDate>Tue, 01 Oct 2013 04:14:40 +0000</pubDate>
		<dc:creator>benkoczi</dc:creator>
				<category><![CDATA[approx-oldass]]></category>

		<guid isPermaLink="false">http://www.cs.uleth.ca/~benkoczi/wordpress/?p=310</guid>
		<description><![CDATA[Due: TBD, in class Undergraduate students can work in teams of two students and can submit a single paper per team. Problems marked (grad) are optional for undergraduate students. Any notation that is not explained is standard notation. Search google &#8230; <a href="https://www.cs.uleth.ca/~benkoczi/wordpress/?p=310">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Due: TBD, in class</strong></p>
<blockquote><p>Undergraduate students can work in teams of two students and can submit a single paper per team. Problems marked (grad) are optional for undergraduate students.<br />
Any notation that is not explained is standard notation. Search google for the definition.
</p></blockquote>
<p><strong>Problem 1:</strong> Consider the k-suppliers problem defined in Exercise 2.1 in the textbook. In class, we argued that choosing an arbitrary vertex as center for the 1-center problem is a 2-approximation algorithm. Show that the same strategy has an unbounded approximation factor for the 1-supplier problem (show that $\forall \alpha > 0$, there exists an instance with $Z_{arb} > \alpha Z_{OPT}$, where $Z_{arb}$ is the cost of an arbitrary center in the 1-supplier problem).</p>
<p><strong> Problem 2 (grad):</strong> Consider the following strategy for the 1-supplier problem:</p>
<ul>
<li> Choose an arbitrary customer $i \in D$.
<li> Let $j \in F$ be the closest facility from $i$.
<li> Place the facility at $j$.
</ul>
<p>Show that this strategy is a 3-approximation for the 1-supplier problem (ignore the fact that the 1-supplier problem can be solved optimally in polynomial time by a brute force algorithm). Give a 3-approximation greedy algorithm for the $k$-suppliers problem. Prove its approximation factor.</p>
<p><strong>Problem 3:</strong> Consider the following greedy algorithm for the knapsack problem, where $i \in I$ represents an object with value $v_i$ and size $s_i$, and $B$ is the knapsack capacity. Let $v(S)$ and $s(S)$ be the total value and size respectively of items in $S$, $v(S) = \sum_{i \in S} v_i$, $s(S) = \sum_{i \in S} s_i$.</p>
<ul>
<li> Initialize the solution set  $S \leftarrow \emptyset$.</li>
<li> while the total size of the solution $S$ does not exceed the knapsack capacity, $s(S) \le B$ do:
<ul>
<li> Let $j$ be the object with largest value per unit size, $j = \mathop{\rm argmax}_{i \in I-S} \frac{v_i}{s_i}$.
<li> Add $j$ to the solution, $S \leftarrow S \cup \{j\}$
  </ul>
</li>
<li> Return $v(S)$ </li>
</ul>
<p>Give a simple example to show that this greedy algorithm has an arbitrarily small approximation factor.</p>
<p><strong> Problem 4 (grad):</strong> Show that replacing the last step of the greedy algorithm from Problem 3 with<br />
\[<br />
\text{Return } \max\{v(S), \max_{i \in I} v_i\},<br />
\]<br />
gives a $\frac{1}{2}$-approximation for the knapsack problem. Provide an example where the greedy algorithm returns a solution with cost equal to half of the optimal solution. Justify your answer even if you cite published work.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.cs.uleth.ca/~benkoczi/wordpress/?feed=rss2&#038;p=310</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assignment 1</title>
		<link>https://www.cs.uleth.ca/~benkoczi/wordpress/?p=280</link>
		<comments>https://www.cs.uleth.ca/~benkoczi/wordpress/?p=280#comments</comments>
		<pubDate>Tue, 10 Sep 2013 08:32:14 +0000</pubDate>
		<dc:creator>benkoczi</dc:creator>
				<category><![CDATA[approx-oldass]]></category>

		<guid isPermaLink="false">http://www.cs.uleth.ca/~benkoczi/wordpress/?p=280</guid>
		<description><![CDATA[Due: Thursday Oct 3, 2013, in class Undergraduate students can work in teams of two students and can submit a single paper per team. Problems marked (grad) are optional for undergraduate students. Any notation that is not explained is standard &#8230; <a href="https://www.cs.uleth.ca/~benkoczi/wordpress/?p=280">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Due: Thursday Oct 3, 2013, in class</strong></p>
<blockquote><p>Undergraduate students can work in teams of two students and can submit a single paper per team. Problems marked (grad) are optional for undergraduate students.<br />
Any notation that is not explained is standard notation. Search google for the definition.
</p></blockquote>
<p><strong>Problem 1: </strong> Consider the vertex cover problem discussed in class for Graph $K_3$. Write the linear programming (LP) relaxation for the problem and give the optimal fractional solution. Write the dual LP and prove that your answer is indeed optimal (find a feasible dual solution whose cost equals that of the primal). </p>
<p><strong> Problem 2: (grad)</strong> Relax the LP from Problem 1 by removing the condition that variables $x_v$ associated with the vertices of $K_3$ must be non-negative. Explain how you obtain the dual of the LP in this case. Write this dual LP.</p>
<p><strong>Problem 3:</strong> Solve Problem 1.4 b from the textbook. Briefly argue that your algorithm runs in time polynomial with the problem size.</p>
<p><strong>Problem 4: (grad) </strong> Solve Problem 1.4 a in the textbook. Hint: read the textbook.</p>
<p><strong>Problem 5:</strong> Describe the local search approximation algorithm for scheduling jobs on identical parallel machines completely, <strong> including any data structures </strong> that you are using. Try to describe an algorithm that is as fast as you can. Analyse the running time of your algorithm.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.cs.uleth.ca/~benkoczi/wordpress/?feed=rss2&#038;p=280</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
