<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://algorist.com/algowiki_v2/index.php?action=history&amp;feed=atom&amp;title=Introduction-TADM2E</id>
		<title>Introduction-TADM2E - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://algorist.com/algowiki_v2/index.php?action=history&amp;feed=atom&amp;title=Introduction-TADM2E"/>
		<link rel="alternate" type="text/html" href="https://algorist.com/algowiki_v2/index.php?title=Introduction-TADM2E&amp;action=history"/>
		<updated>2026-05-01T05:16:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://algorist.com/algowiki_v2/index.php?title=Introduction-TADM2E&amp;diff=205&amp;oldid=prev</id>
		<title>Algowikiadmin: Protected &quot;Introduction-TADM2E&quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://algorist.com/algowiki_v2/index.php?title=Introduction-TADM2E&amp;diff=205&amp;oldid=prev"/>
				<updated>2014-09-11T18:42:35Z</updated>
		
		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/algowiki_v2/index.php/Introduction-TADM2E&quot; title=&quot;Introduction-TADM2E&quot;&gt;Introduction-TADM2E&lt;/a&gt;&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 18:42, 11 September 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Algowikiadmin</name></author>	</entry>

	<entry>
		<id>https://algorist.com/algowiki_v2/index.php?title=Introduction-TADM2E&amp;diff=114&amp;oldid=prev</id>
		<title>Algowikiadmin: Recovering wiki</title>
		<link rel="alternate" type="text/html" href="https://algorist.com/algowiki_v2/index.php?title=Introduction-TADM2E&amp;diff=114&amp;oldid=prev"/>
				<updated>2014-09-11T18:22:18Z</updated>
		
		<summary type="html">&lt;p&gt;Recovering wiki&lt;/p&gt;
&lt;a href=&quot;https://algorist.com/algowiki_v2/index.php?title=Introduction-TADM2E&amp;amp;diff=114&amp;amp;oldid=9&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Algowikiadmin</name></author>	</entry>

	<entry>
		<id>https://algorist.com/algowiki_v2/index.php?title=Introduction-TADM2E&amp;diff=9&amp;oldid=prev</id>
		<title>Algowikiadmin: Recovering wiki</title>
		<link rel="alternate" type="text/html" href="https://algorist.com/algowiki_v2/index.php?title=Introduction-TADM2E&amp;diff=9&amp;oldid=prev"/>
				<updated>2014-09-11T18:13:03Z</updated>
		
		<summary type="html">&lt;p&gt;Recovering wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Introduction to Algorithm Design =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Finding Counterexamples'''&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-1. &lt;br /&gt;
Show that &amp;amp;lt;math&amp;amp;gt;a + b&amp;amp;lt;/math&amp;amp;gt; can be less than &amp;amp;lt;math&amp;amp;gt;\min(a,b)&amp;amp;lt;/math&amp;amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.1|(Solution 1.1)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-2. &lt;br /&gt;
Show that &amp;amp;lt;math&amp;amp;gt;a \times b&amp;amp;lt;/math&amp;amp;gt; can be less than &amp;amp;lt;math&amp;amp;gt;\min(a,b)&amp;amp;lt;/math&amp;amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.2|(Solution 1.2)]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-3. &lt;br /&gt;
Design/draw a road network with two points &amp;amp;lt;math&amp;amp;gt;a&amp;amp;lt;/math&amp;amp;gt; and &amp;amp;lt;math&amp;amp;gt;b&amp;amp;lt;/math&amp;amp;gt; such that the&lt;br /&gt;
fastest route between &amp;amp;lt;math&amp;amp;gt;a&amp;amp;lt;/math&amp;amp;gt; and &amp;amp;lt;math&amp;amp;gt;b&amp;amp;lt;/math&amp;amp;gt; is not the shortest route.&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.3|(Solution 1.3)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-4. &lt;br /&gt;
Design/draw a road network with two points &amp;amp;lt;math&amp;amp;gt;a&amp;amp;lt;/math&amp;amp;gt; and &amp;amp;lt;math&amp;amp;gt;b&amp;amp;lt;/math&amp;amp;gt; such that the&lt;br /&gt;
shortest route between &amp;amp;lt;math&amp;amp;gt;a&amp;amp;lt;/math&amp;amp;gt; and &amp;amp;lt;math&amp;amp;gt;b&amp;amp;lt;/math&amp;amp;gt; is not the route with the fewest turns.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-5. &lt;br /&gt;
The ''knapsack problem'' &lt;br /&gt;
is as follows: given a set of integers &amp;amp;lt;math&amp;amp;gt;S = \{s_1, s_2, \ldots, s_n\}&amp;amp;lt;/math&amp;amp;gt;, and&lt;br /&gt;
a target number &amp;amp;lt;math&amp;amp;gt;T&amp;amp;lt;/math&amp;amp;gt;, find a subset of &amp;amp;lt;math&amp;amp;gt;S&amp;amp;lt;/math&amp;amp;gt; which adds up&lt;br /&gt;
exactly to &amp;amp;lt;math&amp;amp;gt;T&amp;amp;lt;/math&amp;amp;gt;.&lt;br /&gt;
For example, there exists a subset within &amp;amp;lt;math&amp;amp;gt;S = \{1, 2, 5, 9, 10\}&amp;amp;lt;/math&amp;amp;gt; that&lt;br /&gt;
adds up to &amp;amp;lt;math&amp;amp;gt;T=22&amp;amp;lt;/math&amp;amp;gt; but not &amp;amp;lt;math&amp;amp;gt;T=23&amp;amp;lt;/math&amp;amp;gt;.&lt;br /&gt;
Find counterexamples to each of the following algorithms for the knapsack&lt;br /&gt;
problem.&lt;br /&gt;
That is, giving an &amp;amp;lt;math&amp;amp;gt;S&amp;amp;lt;/math&amp;amp;gt; and &amp;amp;lt;math&amp;amp;gt;T&amp;amp;lt;/math&amp;amp;gt; such that the subset is&lt;br /&gt;
selected using the algorithm does not leave the knapsack completely full,&lt;br /&gt;
even though such a solution exists.&lt;br /&gt;
#Put the elements of &amp;amp;lt;math&amp;amp;gt;S&amp;amp;lt;/math&amp;amp;gt; in the knapsack in left to right order if they fit, i.e. the first-fit algorithm.&lt;br /&gt;
#Put the elements of &amp;amp;lt;math&amp;amp;gt;S&amp;amp;lt;/math&amp;amp;gt; in the knapsack from smallest to largest, i.e. the best-fit algorithm.&lt;br /&gt;
#Put the elements of &amp;amp;lt;math&amp;amp;gt;S&amp;amp;lt;/math&amp;amp;gt; in the knapsack from largest to smallest.&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.5|(Solution 1.5)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-6. &lt;br /&gt;
The ''set cover problem''&lt;br /&gt;
is as follows: given a set of subsets &amp;amp;lt;math&amp;amp;gt; S_1, ..., S_m&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
of the universal set &amp;amp;lt;math&amp;amp;gt;U = \{1,...,n\}&amp;amp;lt;/math&amp;amp;gt;,&lt;br /&gt;
find the smallest subset of subsets &amp;amp;lt;math&amp;amp;gt;T \subset S&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
such that &amp;amp;lt;math&amp;amp;gt;\cup_{t_i \in T} t_i = U&amp;amp;lt;/math&amp;amp;gt;.&lt;br /&gt;
For example, there are the following subsets, &amp;amp;lt;math&amp;amp;gt;S_1 = \{1, 3, 5\}&amp;amp;lt;/math&amp;amp;gt;,&lt;br /&gt;
&amp;amp;lt;math&amp;amp;gt;S_2 = \{2,4\}&amp;amp;lt;/math&amp;amp;gt;, &amp;amp;lt;math&amp;amp;gt;S_3 = \{1,4\}&amp;amp;lt;/math&amp;amp;gt;, and &amp;amp;lt;math&amp;amp;gt;S_4 = \{2,5\}&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
The set cover would then be &amp;amp;lt;math&amp;amp;gt;S_1&amp;amp;lt;/math&amp;amp;gt; and &amp;amp;lt;math&amp;amp;gt;S_2&amp;amp;lt;/math&amp;amp;gt;.&lt;br /&gt;
Find a counterexample for the following algorithm:&lt;br /&gt;
Select the largest subset for the cover,&lt;br /&gt;
and then delete all its elements from the universal set.&lt;br /&gt;
Repeat by adding the subset containing the largest number of&lt;br /&gt;
uncovered elements until all are covered.&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.6|(Solution 1.6)]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Proofs of Correctness'''&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-7. &lt;br /&gt;
Prove the correctness of the following recursive algorithm&lt;br /&gt;
to multiply two natural numbers, for all&lt;br /&gt;
integer constants &amp;amp;lt;math&amp;amp;gt;c \geq 2&amp;amp;lt;/math&amp;amp;gt;.&lt;br /&gt;
   ''function'' multiply(&amp;amp;lt;math&amp;amp;gt;y,z&amp;amp;lt;/math&amp;amp;gt;)&lt;br /&gt;
   ''comment'' Return the product &amp;amp;lt;math&amp;amp;gt;yz&amp;amp;lt;/math&amp;amp;gt;.&lt;br /&gt;
   1.     ''if'' &amp;amp;lt;math&amp;amp;gt;z=0&amp;amp;lt;/math&amp;amp;gt; ''then'' return(0) ''else''&lt;br /&gt;
   2.     return(multiply(&amp;amp;lt;math&amp;amp;gt;cy,\lfloor z/c \rfloor)+y \cdot (z\,\bmod\,c&amp;amp;lt;/math&amp;amp;gt;))&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.7|(Solution 1.7)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-8. &lt;br /&gt;
Prove the correctness of the following algorithm for evaluating a&lt;br /&gt;
polynomial. P(x) = &amp;amp;lt;math&amp;amp;gt;a_nx^n + a_{n-1}x^{n-1} + \dots + a_1x + a_0&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
   ''function'' horner(&amp;amp;lt;math&amp;amp;gt;A,x&amp;amp;lt;/math&amp;amp;gt;)&lt;br /&gt;
       &amp;amp;lt;math&amp;amp;gt;p = A_n&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
       for &amp;amp;lt;math&amp;amp;gt;i&amp;amp;lt;/math&amp;amp;gt; from &amp;amp;lt;math&amp;amp;gt;n-1&amp;amp;lt;/math&amp;amp;gt; to &amp;amp;lt;math&amp;amp;gt;0&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
               &amp;amp;lt;math&amp;amp;gt;p = p*x+A_i&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
       return &amp;amp;lt;math&amp;amp;gt;p&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-9. &lt;br /&gt;
Prove the correctness of the following sorting algorithm.&lt;br /&gt;
   ''function'' bubblesort (&amp;amp;lt;math&amp;amp;gt;A&amp;amp;lt;/math&amp;amp;gt; : list[&amp;amp;lt;math&amp;amp;gt;1 \dots n&amp;amp;lt;/math&amp;amp;gt;])&lt;br /&gt;
       var int &amp;amp;lt;math&amp;amp;gt;i, j&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
       for &amp;amp;lt;math&amp;amp;gt;i&amp;amp;lt;/math&amp;amp;gt; from &amp;amp;lt;math&amp;amp;gt;n&amp;amp;lt;/math&amp;amp;gt; to &amp;amp;lt;math&amp;amp;gt;1&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
           for &amp;amp;lt;math&amp;amp;gt;j&amp;amp;lt;/math&amp;amp;gt; from &amp;amp;lt;math&amp;amp;gt;1&amp;amp;lt;/math&amp;amp;gt; to &amp;amp;lt;math&amp;amp;gt;i-1&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
               if (&amp;amp;lt;math&amp;amp;gt;A[j] &amp;amp;gt; A[j+1]&amp;amp;lt;/math&amp;amp;gt;)&lt;br /&gt;
                   swap the values of &amp;amp;lt;math&amp;amp;gt;A[j]&amp;amp;lt;/math&amp;amp;gt; and &amp;amp;lt;math&amp;amp;gt;A[j+1]&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.9|(Solution 1.9)]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Induction'''&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-10. &lt;br /&gt;
Prove that &amp;amp;lt;math&amp;amp;gt;\sum_{i=1}^n i&amp;amp;lt;/math&amp;amp;gt;=&amp;amp;lt;math&amp;amp;gt;n(n+1)/2&amp;amp;lt;/math&amp;amp;gt; for &amp;amp;lt;math&amp;amp;gt;n \geq 0&amp;amp;lt;/math&amp;amp;gt;,&lt;br /&gt;
by induction.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-11. &lt;br /&gt;
Prove that&lt;br /&gt;
&amp;amp;lt;math&amp;amp;gt;\sum_{i=1}^n i^2&amp;amp;lt;/math&amp;amp;gt;=&amp;amp;lt;math&amp;amp;gt;n(n+1)(2n+1)/6&amp;amp;lt;/math&amp;amp;gt; for &amp;amp;lt;math&amp;amp;gt;n \geq\ 0&amp;amp;lt;/math&amp;amp;gt;, &lt;br /&gt;
by induction.&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.11|(Solution 1.11)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-12. &lt;br /&gt;
Prove&lt;br /&gt;
that &amp;amp;lt;math&amp;amp;gt;\sum_{i=1}^n i^3&amp;amp;lt;/math&amp;amp;gt;=&amp;amp;lt;math&amp;amp;gt;n^2(n+1)^2/4&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
for &amp;amp;lt;math&amp;amp;gt;n \geq 0&amp;amp;lt;/math&amp;amp;gt;,&lt;br /&gt;
by induction.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-13. &lt;br /&gt;
Prove that&lt;br /&gt;
&amp;amp;lt;math&amp;amp;gt; \sum_{i=1}^n i(i+1)(i+2)=n(n+1)(n+2)(n+3)/4 &amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.13|(Solution 1.13)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-14. &lt;br /&gt;
Prove by induction on &amp;amp;lt;math&amp;amp;gt;n \geq 1&amp;amp;lt;/math&amp;amp;gt; that for every &amp;amp;lt;math&amp;amp;gt;a \neq 1&amp;amp;lt;/math&amp;amp;gt;,&lt;br /&gt;
&amp;amp;lt;math&amp;amp;gt; \sum_{i=0}^n a^i =\frac{a^{n+1}-1}{a-1}&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
} &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-15. &lt;br /&gt;
Prove by induction that for &amp;amp;lt;math&amp;amp;gt;n \geq 1&amp;amp;lt;/math&amp;amp;gt;,&lt;br /&gt;
&amp;amp;lt;math&amp;amp;gt; \sum_{i=1}^n \frac{1}{i(i+1)} = \frac{n}{n+1} &amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.15|(Solution 1.15)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-16. &lt;br /&gt;
Prove by induction that &amp;amp;lt;math&amp;amp;gt;n^3+2n&amp;amp;lt;/math&amp;amp;gt; is divisible by &amp;amp;lt;math&amp;amp;gt;3&amp;amp;lt;/math&amp;amp;gt; for all &amp;amp;lt;math&amp;amp;gt;n \geq 0&amp;amp;lt;/math&amp;amp;gt;.&lt;br /&gt;
}{  &lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.16|(Solution 1.16)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-17. &lt;br /&gt;
Prove by induction that a tree with &amp;amp;lt;math&amp;amp;gt;n&amp;amp;lt;/math&amp;amp;gt; vertices has exactly &amp;amp;lt;math&amp;amp;gt;n-1&amp;amp;lt;/math&amp;amp;gt; edges.&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.17|(Solution 1.17)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-18. &lt;br /&gt;
Prove by mathematical induction that the sum of the cubes of the first &amp;amp;lt;math&amp;amp;gt;n&amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
positive integers is equal to the square of the sum of these integers, i.e.&lt;br /&gt;
&amp;amp;lt;math&amp;amp;gt; \sum_{i=1}^n i^3 = (  \sum_{i=1}^n i )^2 &amp;amp;lt;/math&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[TADME2E 1.18|(Solution 1.18)]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Estimation'''&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-19. &lt;br /&gt;
Do all the books you own total at least one million pages?&lt;br /&gt;
How many total pages are stored in your school library?&lt;br /&gt;
Schaffer, chapter 2 problem 2.21&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-20. &lt;br /&gt;
How many words are there in this textbook?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-21. &lt;br /&gt;
How many hours are one million seconds?&lt;br /&gt;
How many days?&lt;br /&gt;
Answer these questions by doing all arithmetic in your head.&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.21|(Solution 1.21)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-22. &lt;br /&gt;
Estimate how many cities and towns there are in the United States.&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-23. &lt;br /&gt;
Estimate how many cubic miles of water flow out of the mouth of&lt;br /&gt;
the Mississippi River each day.&lt;br /&gt;
Do not look up any supplemental facts.&lt;br /&gt;
Describe all assumptions you made in arriving at your answer.&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.23|(Solution 1.23)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-24. &lt;br /&gt;
Is disk drive access time normally measured in&lt;br /&gt;
milliseconds (thousandths of a second) or&lt;br /&gt;
microseconds (millionths of a second)?&lt;br /&gt;
Does your RAM memory access a word in more or less than a&lt;br /&gt;
microsecond?&lt;br /&gt;
How many instructions can your CPU execute in one year if the&lt;br /&gt;
machine is left running all the time?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-25. &lt;br /&gt;
A sorting algorithm takes 1 second to sort 1,000 items on your local&lt;br /&gt;
machine.&lt;br /&gt;
How long will it take to sort 10,000 items ...&lt;br /&gt;
#if you believe that the algorithm takes time proportional to &amp;amp;lt;math&amp;amp;gt;n^2&amp;amp;lt;/math&amp;amp;gt;, and&lt;br /&gt;
#if you believe that the algorithm takes time roughly proportional to &amp;amp;lt;math&amp;amp;gt;n\log n&amp;amp;lt;/math&amp;amp;gt;?&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.25|(Solution 1.25)]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Implementation Projects'''&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-26. &lt;br /&gt;
Implement the two TSP heuristics of '''tsp-robot'''.&lt;br /&gt;
Which of them gives better-quality solutions in practice?&lt;br /&gt;
Can you devise a heuristic that works better than both of them?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-27. &lt;br /&gt;
Describe how to test whether a given set of tickets establishes&lt;br /&gt;
sufficient coverage in the Lotto problem&lt;br /&gt;
of '''lotto'''.&lt;br /&gt;
Write a program to find good ticket sets.&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.27|(Solution 1.27)]] &lt;br /&gt;
&lt;br /&gt;
'''Interview Problems'''&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-28. &lt;br /&gt;
Write a function to perform integer division without using either the&lt;br /&gt;
&amp;amp;lt;tt&amp;amp;gt;/&amp;amp;lt;/tt&amp;amp;gt; or &amp;amp;lt;tt&amp;amp;gt;*&amp;amp;lt;/tt&amp;amp;gt; operators.&lt;br /&gt;
Find a fast way to do it.&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.28|(Solution 1.28)]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-29. &lt;br /&gt;
There are 25 horses. At most, 5 horses can race&lt;br /&gt;
together at a time. You must determine the fastest, second fastest, and third&lt;br /&gt;
fastest horses. Find the minimum number of races in which this can be&lt;br /&gt;
done.&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.29|(Solution 1.29)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-30. &lt;br /&gt;
How many piano tuners are there in the entire world?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-31. &lt;br /&gt;
How many gas stations are there in the United States?&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.31|(Solution 1.31)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-32. &lt;br /&gt;
How much does the ice in a hockey rink weigh?&lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-33. &lt;br /&gt;
How many miles of road are there in the United States?&lt;br /&gt;
&lt;br /&gt;
[[TADM2E 1.33|(Solution 1.33)]] &lt;br /&gt;
&lt;br /&gt;
&amp;amp;lt;br&amp;amp;gt;1-34. &lt;br /&gt;
On average, how many times would you have to flip open the&lt;br /&gt;
Manhattan phone book at random in order to find a specific name?&lt;/div&gt;</summary>
		<author><name>Algowikiadmin</name></author>	</entry>

	</feed>