CSE 21 Homework 0 Due: Friday October 8, 2017 at 11:59pm

Instructions This homework assignment must be completed individually (not in groups). Completing this assignment will set you up to use the tools you’ll need for the rest of the course, and will give you and us an idea of your mastery of the prerequisite knowledge before you start the course. Required Reading Rosen Chapters 1 and 2, Sections 5.1-5.2 (covers prerequisite concepts).

1. Make sure you can access the Gradescope site for this class. • Navigate to http://gradescope.com. • Login with your @ucsd email account. • Having trouble? You can manually add this course using entry code: MD532D. Please use your official full name when signing up. 2. Enroll in Piazza. • Use the signup link: http://piazza.com/ucsd/sprinng2016/cse21bd. 3. Register your iClicker remote. • Use https://tritoned.ucsd.edu. • Navigate to our class and look for “Register your iClicker” in the left side bar.

1

1. (10 points) Prove the following fact about convex polygons using induction: The sum of the interior angles of any convex n-gon is 180 ∗ (n − 2). (You may assume without proof that the interior angles of any triangle sum to 180 degrees.) Please write out the • Base Case. • Inductive Hypothesis. • What you want to show. • The Inductive step. (Your argument should be clear and concise.) 2. (10 points) Consider the following algorithm procedure Loops(n: a positive integer) 1.

for i := 1 to n

2.

for j := i to n

3.

print (i, j)

(a) Write what the algorithm prints when n = 4. (b) Describe what the algorithm prints in general terms. (c) How many times does print routine get called? (d) Describe (in words) a rule to decide, if (i1 , j1 ) and (i2 , j2 ) have both been printed for some n then which ordered pair was printed first? 3. (10 points) Find the flaw with the following “proof” that every postage of three cents or more can be formed using just 3-cent and 4-cent stamps. Base Cases: We can form postage of three cents with a 3-cent stamp and four cents with a 4-cent stamp. inductive step: Assume that for some k > 4 we can form postage of j cents for all nonnegative integers j with 3 ≤ j ≤ k using just 3-cent and 4-cent stamps. We can then form a postage of k + 1 cents by replacing one 3-cent stamp with a 4-cent stamp or by replacing two 4-cent stamps with three 3-cent stamps. 4. (10 points) Use strong induction to show that every positive integer n can be written as a sum of distinct powers of two. (Hint: for the inductive step, separately consider the case where k + 1 is even and where it is odd. When it is even, note that (k + 1)/2 is an integer.)

2

CSE 21 Homework 0 Due: Friday October 8, 2017 at 11 ...

Oct 8, 2017 - you and us an idea of your mastery of the prerequisite knowledge before ... proof that the interior angles of any triangle sum to 180 degrees.).

95KB Sizes 3 Downloads 189 Views

Recommend Documents

Thursday 20 October Show Day Public Holiday Friday 21 October ...
Nov 4, 2016 - Thursday 20 October. Show Day Public Holiday. Friday 21 October. School Holiday. Monday 24—Friday 28 October. Class 1 & 2 Swimming. Tuesday 25 October. 11:30am. Spring Festival. Amphitheatre. Friday 28 October. Secondary School Swimmi

Math 109b - Homework 2 Due: 27 January 2017
Jan 27, 2017 - Let φ : S2 → R3 be the map given by φ : (x, y, z) ↦→ (3x,2y, z). ... orientable if and only if there is a smooth vector field X along φ(S) so that.

Math 109b - Homework 2 Due: 27 January 2017
Jan 27, 2017 - Show that there are only two (equivalence classes of) orientations on any connected orientable smooth surface. 8. Let φ : S1 → S2 be a ...

Homework 1—Due April 16
Economics 8004, Spring 2015. Instructor: David Rahman, University of Minnesota. Homework 1—Due April 16. 1. In an environment with only two social alternatives, show that majority voting is strategy-proof and non-dictatorial. 2. Given a finite set

October 8, 2017 - The Boston Pilot
Oct 8, 2017 - We will be making fleece blankets for a local shelter and there will be dinner, games, and movies as well. To attend, please RSVP with Brad by Friday,. REMIND APP: We have a group communication program using text messaging called Remind

October 8, 2017 - The Boston Pilot
Oct 8, 2017 - Saturday, Oct 7. 4:00pm Michael Canty Memorial. Sunday, Oct 8. 9:00am Mass for the People of St. Athanasius. 11:00am Francyne Puopolo Birthday Memorial. Monday, Oct 9. 9:00am Mass. Tuesday, Oct 10. 9:00am Sadie Rodgers Birthday Memorial

Romans—Part 50 October 21/22, 2017 Romans 8:10-13 - New Hope ...
Oct 22, 2017 - “He chooses a term of esteem and equality, not of superiority... to refer to his brothers and sisters in Christ.” ~Dr. John. MacArthur. TODAY'S ...

Romans—Part 50 October 21/22, 2017 Romans 8 ... - New Hope Church
Oct 22, 2017 - "I'm Going Free (Jailbreak)" words and music by Benji Cowart, Jacob Sooter, and Tyler Miller. © 2012 HBC Worship Music | Jingram Music Publishing | Sony/ATV Cross Keys Publishing | HowieCowie Publishing. "Doxology" words and music by

0 IB Newsletter 21 January 2017.pdf
NV-CURE Meeting With Director Cancelled. The November 29, 2016, NV-CURE meeting with NDOC. Director Dzurenda and Deputy Director Dave Tristan was.

0 IB Newsletter 21 January 2017.pdf
cost the tax-payers of the State of Nevada hundreds of. thousands of dollars and funded Witherow's reintegration into. the community. Witherow certainly has not been hurt by their. activities. It is only prisoners (and tax-payers) these NDOC and. Att

/w5H w?96 11 7!.AMR 5026, 0;.89/ /.|/O 0 OH 8 m
Aug 29, 1980 - Foreign Application Priority Data crawlers, left and right, a main ... vators, transportation vehicles, portable conveyors, and the like, must always ...

Romans—Part 50 October 21/22, 2017 Romans 8 ... - New Hope Church
Oct 22, 2017 - Thanatoō (than-at-o'-o)—to kill :- become dead, (cause to be) put to death, kill, mortify. QUOTES. “He chooses a term of esteem and equality, ...

j103-2017-21-2017-11-07.pdf
Respondent. BEFORE. HON'BLE THE ACTING CHIEF JUSTICE MR. N.KOTISWAR SINGH. For the petitioner :: Mr. M. Gunedhor, Advocate,. Mr. Abhi, Advocate.

GENEVA, Switzerland Friday 30th October -
Oct 31, 2009 - ... –North America: U.S. and Canada –Rm 3. 18h00–19h00. Welcome drinks offered by the Conseil d'Etat de la République et Canton de. Genève. PROVISIONAL AGENDA OF THE NGO INTERACTIVE. ROUNDTABLES IN. CONJUNCTION WITH THE UN-ECE

Romans—Part 49 October 14/15, 2017 Romans 8:9-11 John 3:1-12 1 ...
Oct 15, 2017 - his heart. 4) 3:3 No matter how “religious,” no one enters the ... glory of God we really are. 6) 3:4 Jesus did not minimize the weight of the issue ...

dvbdream 0 8 8.pdf
Loading… Page 1. Whoops! There was a problem loading more pages. dvbdream 0 8 8.pdf. dvbdream 0 8 8.pdf. Open. Extract. Open with. Sign In. Main menu.

Romans—Part 34 May 20/21, 2017 Romans 6:8-11 - New Hope Church
May 21, 2017 - Confidence in temptation, knowing you can stand against it in God's power (1 Corinthians 10:13). • Confidence because we are saved by God's ...

Romans—Part 34 May 20/21, 2017 Romans 6:8-11 - New Hope Church
May 21, 2017 - Confidence in temptation, knowing you can stand against it in God's power (1 Corinthians 10:13). • Confidence because we are saved by God's power alone, kept by His power alone, and we cannot sin beyond the greatness of God's grace (

October 21.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Main menu.

Romans—Part 48 October 7/8, 2017 Romans 8:5-8 - New Hope Church
Oct 8, 2017 - sixsteps Music | worshiptogether.com songs | Phil Wickham Music | Simply Global Songs | Sing My Songs. “Death Was Arrested” words and music by Brandon Coker, Adam Kersh, Paul Taylor Smith, and Heath Balltzglier. © 2015 Adam Kersh M

NSE/CML/36093 Date : October 11, 2017 Circular
Oct 11, 2017 - C/1, G-Block, Bandra-Kurla Complex, Bandra (E), Mumbai 400 051, India. CIN: U67120MH1992PLC069769 Tel: +91 22 26598235/36 ...

Romans—Part 48 October 7/8, 2017 Romans 8:5-8 - New Hope Church
Oct 8, 2017 - “How Great Is Your Love” words and music by Phil Wickham, ... words and music by Brandon Coker, Adam Kersh, Paul Taylor Smith, and Heath ...

whitewater springs poa board of directors october 11, 2017 meeting
Oct 11, 2017 - Website Hosting. 1,247. 490. 490. 32. TOTAL Administrative Expenses. 22,618. 18,615. 18,678. 33. 34. Non-Recurring Expenses. 35. 890450 ... Mail Kiosh. 20,000 Does Not Include Driveway Improvements. 42. TOTAL Non-Recurring Expenses. 19