Introduction to Algorithms

Similar documents
Introduction to Algorithms 6.046J/18.401J

Introduction to Algorithms 6.046J/18.401J/SMA5503

Exam 2. Name: UVa ID:

CS 4349 Lecture August 21st, 2017

Problem Set 5. MIT students: Each problem should be done on a separate sheet (or sheets) of three-hole punched paper.

Introduction to Computer Systems

Introduction to Algorithms 6.046J/18.401J

ECE573 Introduction to Compilers & Translators

In this course, you need to use Pearson etext. Go to "Pearson etext and Video Notes".

Problem Set 9 Solutions

In this course, you need to use Pearson etext. Go to "Pearson etext and Video Notes".

Introduction to Computer Systems

Please indicate EDM in the subject box

COSC 115A: Introduction to Web Authoring Fall 2014

CS 3030 Scripting Languages Syllabus

CS150: Exam 2 Due: Mon Apr 20th by 3:30pm (in class) or by 6:30pm (OLS 219) UVA ID: Directions

CS 3030 Scripting Languages Syllabus

Introduction to Algorithms October 12, 2005 Massachusetts Institute of Technology Professors Erik D. Demaine and Charles E. Leiserson Quiz 1.

INFS 2150 (Section A) Fall 2018

Compilers. Computer Science 431

CSC 172 Data Structures and Algorithms. Fall 2017 TuTh 3:25 pm 4:40 pm Aug 30- Dec 22 Hoyt Auditorium

ISM 324: Information Systems Security Spring 2014

CS 241 Data Organization using C

/ Cloud Computing. Recitation 2 January 19 & 21, 2016

COSC 115: Introduction to Web Authoring Fall 2013

Introduction to Algorithms April 16, 2008 Massachusetts Institute of Technology Spring 2008 Professors Srini Devadas and Erik Demaine Quiz 2

CONCORDIA UNIVERSITY DEPARTMENT OF CHEMISTRY AND BIOCHEMISTRY CHEM 293 SPECTROSCOPY AND STRUCTURE OF ORGANIC COMPOUNDS. SYLLABUS Winter 2018

Without fully opening the exam, check that you have pages 1 through 11.

Interlude: Problem Solving

COMP251: Algorithms and Data Structures. Jérôme Waldispühl School of Computer Science McGill University

CSC148H Week 1 >> COURSE INFORMATION, RECAP, OOP. Sadia Rain Sharmin Week of May 7, 2018

CMPSCI 187 / Spring 2015 Sorting Kata

CSCI 4250/6250 Fall 2013 Computer and Network Security. Instructor: Prof. Roberto Perdisci

EECE.2160: ECE Application Programming Spring 2017

CS583 Lecture 01. Jana Kosecka. some materials here are based on Profs. E. Demaine, D. Luebke A.Shehu, J-M. Lien and Prof. Wang s past lecture notes

Theory and Algorithms Introduction: insertion sort, merge sort

CPSC 311: Analysis of Algorithms (Honors) Exam 1 October 11, 2002

Introduction to Programming System Design CSCI 455x (4 Units)

CIS 101 Introduction to Computers Online Section About This Course and Getting Started Online Instructor Brad Ford

Welcome to CS 241 Systems Programming at Illinois

We don t have much time, so we don t teach them [students]; we acquaint them with things that they can learn. Charles E. Leiserson

Important Project Dates

Programming Languages and Techniques (CIS120)

University of Toronto Department of Electrical and Computer Engineering. Midterm Examination. ECE 345 Algorithms and Data Structures Fall 2010

Introduction to Algorithms Massachusetts Institute of Technology Professors Erik D. Demaine and Charles E. Leiserson.

When does RDBMS representation make sense When do other representations make sense. Prerequisites: CS 450/550 Database Concepts

COMP Analysis of Algorithms & Data Structures

ECE Object-Oriented Programming using C++ and Java

University of Toronto Department of Electrical and Computer Engineering. Midterm Examination. ECE 345 Algorithms and Data Structures Fall 2012

COE428 Lecture Notes Week 1 (Week of January 9, 2017)

CS 3813/718 Fall Python Programming. Professor Liang Huang.

CS 241 Data Organization. August 21, 2018

Object-Oriented Programming for Managers

Cornell University Computer Science 211 Second Preliminary Examination 18 April 2006

INFO-445: Advanced Database Design, Management, and Maintenance

University of Virginia Department of Computer Science. CS 4501: Information Retrieval Fall 2015

Web Programming Fall 2011

Rochester Institute of Technology Golisano College of Computing and Information Sciences Department of Information Sciences and Technologies

Netiquette: Composing

University of Virginia Department of Computer Science. CS 4501: Information Retrieval Fall 2015

EECE.2160: ECE Application Programming Spring 2019

San José State University Department of Computer Science CS-144, Advanced C++ Programming, Section 1, Spring 2018

Introduction to Nate Foster Spring 2018

Spring CISM 3330 Section 01D (crn: # 10300) Monday & Wednesday Classroom Miller 2329 Syllabus revision: #

Instructor: Anna Miller

INF 315E Introduction to Databases School of Information Fall 2015

Course Title: Computer Networking 2. Course Section: CNS (Winter 2018) FORMAT: Face to Face

Spring 2013 CS 122C & CS 222 Midterm Exam (and Comprehensive Exam, Part I) (Max. Points: 100)

CIS*1500 Introduction to Programming

Questions Total Points Score

15-411/ Compiler Design

Syllabus COSC-051-x - Computer Science I Fall Office Hours: Daily hours will be entered on Course calendar (or by appointment)

Introduction to Prof. Clarkson Fall Today s music: Prelude from Final Fantasy VII by Nobuo Uematsu (remastered by Sean Schafianski)

Data Structures and OO Development II

CS 3270 Mobile Development for Android Syllabus

Important Project Dates

cs1120: Exam 1 Due: Wednesday, 06 October at 3:30pm (in class)

Parameters and Objects

You must pass the final exam to pass the course.

CASPER COLLEGE COURSE SYLLABUS BIOL 1000, Introduction to Biology I

COMP 250. Lecture 7. Sorting a List: bubble sort selection sort insertion sort. Sept. 22, 2017

Without fully opening the exam, check that you have pages 1 through 11.

Syllabus. ICS103: Computer Programming in C 2017 / 2018 First Semester (Term 171) INSTRUCTOR Office Phone Address Office Hours

CISN 340 Data Communication and Networking Fundamentals Fall 2012 (Hybrid)

Tips from the experts: How to waste a lot of time on this assignment

Object Oriented Programming Using C++

Comparison Based Sorting Algorithms. Algorithms and Data Structures: Lower Bounds for Sorting. Comparison Based Sorting Algorithms

Introduction to Data Structures

Algorithms Lab 3. (a) What is the minimum number of elements in the heap, as a function of h?

Introduction to Algorithms

Recitation 13. Minimum Spanning Trees Announcements. SegmentLab has been released, and is due Friday, November 17. It s worth 135 points.

CFP Education GTP FAQ

CSCI 201L Syllabus Principles of Software Development Spring 2018

BIO 139 HUMAN ANATOMY AND PHYSIOLOGY II LABORATORY SYLLABUS

Advanced Topics in Database Systems Spring 2016

Introduction to Algorithms 6.046J/18.401J

CSCE 441 Computer Graphics Fall 2018

COMP 117: Internet-scale Distributed Systems Lessons from the World Wide Web

Part 1: Group Brainstorm (NO computers during this time) Part 2: Submit Individual Brainstorm (You can now use a computer)

Algorithms and Data Structures: Lower Bounds for Sorting. ADS: lect 7 slide 1

Transcription:

Introduction to Algorithms 6.046J/18.401J LECTURE 19 Take-home exam Instructions Academic honesty Strategies for doing well Prof. Charles E. Leiserson

Take-home quiz The take-home quiz contains 5 problems worth 25 points each, for a total of 125 points. 1 easy 2 moderate 1 hard 1 very hard 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.2

End of quiz Your exam is due between 10:00 and 11:00 A.M. on Monday, November 22, 2004. Late exams will not be accepted unless you obtain a Dean s Excuse or make prior arrangements with your recitation instructor. You must hand in your own exam in person. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.3

Planning The quiz should take you about 12 hours to do, but you have five days in which to do it. Plan your time wisely. Do not overwork, and get enough sleep. Ample partial credit will be given for good solutions, especially if they are well written. The better your asymptotic running-time bounds, the higher your score. Bonus points will be given for exceptionally efficient or elegant solutions. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.4

Format Each problem should be answered on a separate sheet (or sheets) of 3-hole punched paper. Mark the top of each problem with your name, 6.046J/18.410J, the problem number, your recitation time, and your TA. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.5

Executive summary Your solution to a problem should start with a topic paragraph that provides an executive summary of your solution. This executive summary should describe the problem you are solving, the techniques you use to solve it, any important assumptions you make, and the running time your algorithm achieves. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.6

Solutions Write up your solutions cleanly and concisely to maximize the chance that we understand them. Be explicit about running time and algorithms. For example, don't just say you sort n numbers, state that you are using heapsort, which sorts the n numbers in O(n lg n) time in the worst case. When describing an algorithm, give an English description of the main idea of the algorithm. Use pseudocode only if necessary to clarify your solution. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.7

Solutions Give examples, and draw figures. Provide succinct and convincing arguments for the correctness of your solutions. Do not regurgitate material presented in class. Cite algorithms and theorems from CLRS, lecture, and recitation to simplify your solutions. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.8

Assumptions Part of the goal of this exam is to test engineering common sense. If you find that a question is unclear or ambiguous, make reasonable assumptions in order to solve the problem. State clearly in your write-up what assumptions you have made. Be careful what you assume, however, because you will receive little credit if you make a strong assumption that renders a problem trivial. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.9

Bugs, etc. If you think that you ve found a bug, please send email. Corrections and clarifications will be sent to the class via email. Check your email daily to avoid missing potentially important announcements. If you did not receive an email last night reminding you about Quiz 2, then you are not on the class email list. Please let your recitation instructor know immediately. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.10

Academic honesty This quiz is limited open book. You may use your course notes, the CLRS textbook, lecture videos, basic reference materials such as dictionaries, and any of the handouts posted on the server. No other sources whatsoever may be consulted! 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.11

Academic honesty For example, you may not use notes or solutions from other times that this course or other related courses have been taught, or materials on the server. These materials will not help you, but you may not use them anyhow. You may not communicate with any person except members of the 6.046 staff about any aspect of the exam until after noon on Monday, November 22, even if you have already handed in your exam. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.12

Academic honesty If at any time you feel that you may have violated this policy, it is imperative that you contact the course staff immediately. It will be much the worse for you if third parties divulge your indiscretion. If you have any questions about what resources may or may not be used during the quiz, send email. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.13

Poll of 78 quiz takers Question 1: Did you cheat? 76 No. 1 Yes. 1 Abstain. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.14

Poll of 78 quiz takers Question 2: How many people do you know who cheated? 72 None. 2 3 people compared answers. 1 Suspect 2, but don t know. 1 Either 0 or 2. 1 Abstain. 1 10 (the cheater). 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.15

Reread instructions Please reread the exam instructions in their entirety at least once a day during the exam. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.16

Test-taking strategies Manage your time. Manage your psyche. Brainstorm. Write-up early and often. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.17

Manage your time Work on all problems the first day. Budget time for write-ups and debugging. Don t get sucked into one problem at the expense of others. Replan your strategy every day. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.18

Manage your psyche Get enough sleep. Maintain a patient, persistent, and positive attitude. Use adrenaline productively. Relax, and have fun. It s not the end of the world! 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.19

Brainstorm Get an upper bound, even if it is loose. Look for analogies with problems you ve seen. Exploit special structure. Solve a simpler problem. Draw diagrams. Contemplate. Be wary of self-imposed constraints think out of the box. Work out small examples, and abstract. Understand things in two ways: sanity checks. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.20

Write up early and often Write up partial solutions. Groom your work every day. Work on shortening and simplifying. Provide an executive summary. Ample partial credit will be given! Unnecessarily long answers will be penalized. 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.21

Positive attitude 2001 4 by Charles E. Leiserson Introduction to Algorithms November 17, 2004 L19.22