10 views

Uploaded by Anonymous PDGLsjN1Q5

Attribution Non-Commercial (BY-NC)

- Critical Load Pick Up
- Artisan Quick Reference-1.2
- IT6501 notes.doc
- Computational_Geometry_Lec1.pdf
- 28th Mathirang Mathibay Mechanics
- slc-matth
- Connecting Mathematical Ideas Introduction
- Ant Colony Optimization for Huge Graphs
- january 2014 newsletter in word
- Wrting and Graphing Inequalities
- Image Analysis Matlab
- Smoluchowski 1916 Lecture B - Kinetic Theory
- Dll Mathematics 4 q2 w1
- 2.pptx
- math MC
- Mesh_Intro_18.0_WS5.3_CFD_Workshop_Instructions_2d_Combustion_Chamber.pdf
- Linear Algebra Assignment 8
- julie ortegas lesson plan adding with m ms 2
- Solutions
- The Design of Reduced Order Controllers for the Stabilization of Large Scale Linear Discrete-Time Control Systems

You are on page 1of 3

Leiserson

Problem Set 1

MIT students: This problem set is due in lecture on Wednesday, September 21, 2005. The homework lab for this problem set will be held 24 P. M . on Sunday, September 18, 2005. Reading: Chapters 14 excluding Section 4.4. Both exercises and problems should be solved, but only the problems should be turned in. Exercises are intended to help you master the course material. Even though you should not turn in the exercise solutions, you are responsible for material covered in the exercises. Mark the top of each sheet with your name, the course number, the problem number, your recitation section, the date and the names of any students with whom you collaborated. You will often be called upon to give an algorithm to solve a certain problem. Your write-up should take the form of a short essay. A topic paragraph should summarize the problem you are solving and what your results are. The body of the essay should provide the following: 1. A description of the algorithm in English and, if helpful, pseudo-code. 2. At least one worked example or diagram to show more precisely how your algorithm works. 3. A proof (or indication) of the correctness of the algorithm. 4. An analysis of the running time of the algorithm. Remember, your goal is to communicate. Full credit will be given only to correct solutions which are described clearly. Convoluted and obtuse descriptions will receive low marks.

Exercise 1-1. Do Exercise 2.3-6 on page 37 in CLRS. Exercise 1-2. Do Exercise 3.1-6 on page 50 in CLRS. Exercise 1-3. Do Exercise 3.2-4 on page 57 in CLRS. Exercise 1-4. Do Problem 4.3-4 on page 75 of CLRS.

Problem 1-1. Asymptotic Notation For each of the following statements, decide whether it is always true, never true, or sometimes true for asymptotically nonnegative functions and . If it is always true or never true, explain why. If it is sometimes true, give one example for which it is true, and one for which it is false.

and

and

Problem 1-2. Recurrences Give asymptotic upper and lower bounds for in each of the following recurrences. Assume that is constant for . Make your bounds as tight as possible, and justify your answers.

Problem 1-3. Unimodal Search An array is unimodal if it consists of an increasing sequence followed by a decreasing sequence, or more precisely, if there is an index such that for all for all , and .

In particular, is the maximum element, and it is the unique locally maximum element and ). surrounded by smaller elements ( (a) Give an algorithm to compute the maximum element of a unimodal input array in time. Prove the correctness of your algorithm, and prove the bound on its running time.

A polygon is convex if all of its internal angles are less than (and none of the edges cross each other). Figure 1 shows an example. We represent a convex polygon as an array where each element of the array represents a vertex of the polygon in the form of a coordinate pair . We are told that is the vertex with the minimum coordinate and that the vertices are ordered counterclockwise, as in the gure. You may also assume that the coordinates of the vertices are all distinct, as are the coordinates of the vertices.

5I r0 p seq

k1I

o

k1I

o

00 S0 sBVI

m Ql ncRI

I

ih

I jy

hd G d fI G

ih

I g e I d e

Eo

5I

`Y 4 aE

(j)

1E6D C C 5 ) A 54 B6 8 1 @9 ! 54376 5432 0 ' $ ! 11 )(%&#" F QQI VVR4 f f 4 F F 47h4Vcc cc4 4 ! bT x bT F adc2 4 `Y S y F ST w xVQ w f 4 f vc4 F u ST p Xd4cc4 64 F tgs(q4cV Ri r pI UT QI F `aa7h g 4 Y `Y ! f F eS ST (#cc4 F ad4cc4 94 `Y b T U F `Y U T S a)2XWV 6 QI G RPH

coordinate in

`Y `Y

o

Figure 1: An example of a convex polygon represented by the array . with the minimum -coordinate, and are ordered counterclockwise.

(I

w u ft

o

w u vft

w u ift w u ft

is the vertex time. time.

- Critical Load Pick UpUploaded byHemakumar Reddy
- Artisan Quick Reference-1.2Uploaded byNico Demoi
- IT6501 notes.docUploaded bykumar3544
- Computational_Geometry_Lec1.pdfUploaded byirrshadhussain272
- 28th Mathirang Mathibay MechanicsUploaded byBogus Account
- slc-matthUploaded byapi-267009767
- Connecting Mathematical Ideas IntroductionUploaded byhafaba
- Ant Colony Optimization for Huge GraphsUploaded byjfrchicanog
- Wrting and Graphing InequalitiesUploaded bygebramath
- january 2014 newsletter in wordUploaded byapi-244190788
- Image Analysis MatlabUploaded bysumit2301
- Smoluchowski 1916 Lecture B - Kinetic TheoryUploaded byastroathena219
- Dll Mathematics 4 q2 w1Uploaded byAnepsu Hoho
- 2.pptxUploaded byJean Cuarisma
- math MCUploaded byHazen B. Rayos
- Mesh_Intro_18.0_WS5.3_CFD_Workshop_Instructions_2d_Combustion_Chamber.pdfUploaded byrodrigoq1
- Linear Algebra Assignment 8Uploaded byAdnan Alam Khan
- julie ortegas lesson plan adding with m ms 2Uploaded byapi-435034804
- SolutionsUploaded bySitan Chen
- The Design of Reduced Order Controllers for the Stabilization of Large Scale Linear Discrete-Time Control SystemsUploaded bysipij
- Engineering Mathematics 1Uploaded byZjian Wai
- Recombseq Cmhill 2 DraftUploaded byBrian Huffman
- system engineerng reliaiblity lab experimentsUploaded byRakesh Gothwal
- Dudas BulleUploaded byAlberto Lozano Rivas
- math in sportsUploaded byapi-440622270
- Ateneo Appeal Letter 2Uploaded byJericho Ventanilla
- Mealy and Moore MachinesUploaded bySangam Choudhary
- AssignmentUploaded byfaranimohamed
- ControlUploaded byLuis Atl
- TrimbleGPS_wTerraSync_0.pdfUploaded byLuiz Carlos Spicalski Junior

- LAB - 9(AWT)Uploaded byAnonymous PDGLsjN1Q5
- java test bankUploaded byAnonymous PDGLsjN1Q5
- JAVA TEST BANKUploaded byAnonymous PDGLsjN1Q5
- 14DemoBinarySearch.pdfUploaded byAnonymous PDGLsjN1Q5
- Learn Scratch Lesson 11Uploaded byJessica Chiang
- Impact Computers on Our SocietyUploaded byalilramones
- PhD Dissertation AcknowledgementUploaded byAnonymous PDGLsjN1Q5
- AckUploaded bydhileepan kumarasamy
- Ics Quiz 2018Uploaded byAnonymous PDGLsjN1Q5
- DDoS Quick GuideUploaded byElthon Abreu
- 72768802-Router-vs-Switch.pdfUploaded byAnonymous PDGLsjN1Q5
- CCNA Practice Quiz_ 200-120 Quiz 1Uploaded byAnonymous PDGLsjN1Q5
- Temperature Conversion in GUI.pdfUploaded byAnonymous PDGLsjN1Q5
- 14DemoBinarySearch.pdfUploaded byAnonymous PDGLsjN1Q5
- Java BookUploaded byAnonymous Ahs2nvY
- Readme.txtUploaded byViJaY HaLdEr
- Java_bstUploaded bysowmya225
- html_tables.pdfUploaded byVijay D'souza
- Oman Air - Flight SelectionUploaded byAnonymous PDGLsjN1Q5
- 9706 EthicsUploaded byAnonymous PDGLsjN1Q5
- QueueUploaded byAnonymous PDGLsjN1Q5
- StackUploaded byAnonymous PDGLsjN1Q5
- 4+COMPUTER+NETWORKS+LECTURE+NOTES (1) (1)Uploaded byAnonymous PDGLsjN1Q5
- ole61102_fm (1)Uploaded byReineir Cañada
- Lab1Uploaded byAnonymous PDGLsjN1Q5
- FlashIUploaded byAnonymous PDGLsjN1Q5
- _flash_bouncing_ball_tutorial.pdfUploaded byAnonymous PDGLsjN1Q5
- Session1-Introduction to Electronic CommerceUploaded byAnonymous PDGLsjN1Q5

- Andy Leavitt the Practical Application of Tracer Gas Leak Detection for Air Cooled CondensersUploaded bysanjeevnn
- SurfaceUploaded byMuhammad Irfan Siregar
- ASTM A29 Standard Specification Steel Bars Carbon and Alloy Hot Wrought General RequirementsUploaded byAndres Molina
- PC BASICSUploaded byBritto Ebrington Ajay
- how to downloadUploaded byluis
- D Code Updates Concrete AnchorsUploaded byNono_geotec
- GM 1925Uploaded byShiva R
- Electrochemical Cells LabUploaded byMatthew Runyon
- Anatomy of a Plated HoleUploaded byapi-3864578
- What is Mechatronic EngineeringUploaded byshavindra789
- Investigation - Photosynthesis by Felix DyrekUploaded byFelixxx87
- CV Reni Mita DiwantiUploaded byreni mita
- Leonhardt Cable StayUploaded byTarun Kant Goyal
- Global Telework Survey.pdfUploaded byJean Pierre
- IT SS09D WL - White LightUploaded byIntellisystem Technologies
- LM7812Uploaded byJuan Ramón
- XiaomiUploaded byMark Lee
- 9_Ashwani_Power_System_State_Estimation.pdfUploaded bysf111
- Airco inside engine comp.RHD aaamc29.pdfUploaded bynazar750
- Aero CompaniesUploaded byBandaru Swetha
- FLSD 14-cv-61957 Doc 73-7Uploaded byJ Doe
- Second Annoucement WS25Uploaded byFernandoEnriqueCalveteGonzález
- Corrections to 8th EdUploaded byavner_biblarz
- City Multi Branch JointUploaded byDaniel Lucas Djasibani
- Triturador de Entulho Rubble-master-rm60Uploaded byJoão Santiago
- 2 Family and MotivationUploaded byDouglas Knight
- Buildings With Transfer StructuresUploaded byMahmood Mufti
- Wkm Dynaseal 370d4 Ball Valve IomUploaded byLucho Herrera
- CLSPro600 en 01Uploaded byTablet Bangho
- Section_IX_Customer_Details_and_Specification.pdfUploaded bymrtabieh