Fundamental Algorithms CSCI-GA.1170.001 -- Spring 2017


Final Exam

Here is the final exam postscript LaTeX pdf and its solutions postscript LaTeX pdf

Information


Click here postscript LaTeX pdf for syllabus and more info.

Spencer Award

The Spencer Award is given to a student whose enthusiasm and energy make NYU such an exciting place to be. This year's winner is Saniya Lalani. Congratulations Saniya!

Soules Gem

Every couple of years a student knocks my socks off with an ingenious approach. Here is Jeff Soules on Huffman. You are given n numbers (the frequencies) and n-1 times you want to take out the two smallest and replace them with their sum. In class and the text we use Min-Heap. Jeff uses two lists, ALPHABET (the original) and COMPOSITE (the created ones) and, with great cleverness, keeps them ordered. Congrats Jeff! Click here pdf for how he does it.

When and Where

Monday, 5:10-7:000 p.m. ciww 109.

Instructor

Prof. Joel Spencer

Office: 829ciww

Email: {lowercaselastname}@cims.nyu.edu

Text

Introduction to Algorithms by Cormen, Leiserson, Rivest and Stein

Recitation

Do note that recitations are mandatory! The two recitations will cover the same material. You should register for the most convenient time for you. If on RARE occasions you cannot make one recitation you can go to the other.

Instructors: Ojas Deshpande (Thursday 8:10-9:00 p.m. ciww 109) and Vladimir Kobzar (Friday 5:10-6:00 p.m., ciww 312)

Office Hours: Ojas Despande Wednesday 6-7:30 p.m. ciww 412)

Office Hours: Vladimir Kobzar Friday 6-7:00 p.m. ciww 412)

Basic Information

There will be a final exam and a midterm.

There will be assignments to be handed in pretty much every week.

The assignments to be submitted at the start of the next Recitation Section.

Assignments

Assignment 1 postscript LaTeX pdf

Assignment 2, Due Feb 2/3 in Recitation postscript LaTeX pdf

Assignment 3, Due Feb 9/10 in Recitation postscript LaTeX pdf

Assignment 4, Due Feb 16/17 in Recitation postscript LaTeX pdf

Assignment 5, Due Mar 2/3 in Recitation postscript LaTeX pdf

Assignment 6, Due Mar 9/10 in Recitation postscript LaTeX pdf

Assignment 7, Due Mar 23/24 in Recitation postscript LaTeX pdf

Assignment 8, Due Apr 6/7 in Recitation postscript LaTeX pdf

Assignment 9, Due Apr 13/14 in Recitation postscript LaTeX pdf Figures A pdf B pdf Figures C pdf

Notes and OPTIONAL Project postscript LaTeX pdf

Assignment 10, Due Apr 20/21 in Recitation postscript LaTeX pdf

Assignment 11, Due Apr 27/28 in Recitation postscript LaTeX pdf

Assignment 12, Due May 4/5 in Recitation postscript LaTeX pdf

Assignment 13, Not to be submitted postscript LaTeX pdf

Solutions

Assignment 1 postscript LaTeX pdf

Assignment 2 postscript LaTeX pdf

Assignment 3 postscript LaTeX pdf

Assignment 4 postscript LaTeX pdf

Assignment 5 postscript LaTeX pdf

Assignment 6 postscript LaTeX pdf

Assignment 7 postscript LaTeX pdf

Assignment 8 postscript LaTeX pdf

Assignment 9 postscript LaTeX pdf

Assignment 10 postscript LaTeX pdf

Assignment 11 postscript LaTeX pdf

Assignment 12 postscript LaTeX pdf

Assignment 13 postscript LaTeX pdf

Questions?

Send me an email: {lowercaselastname}@cs.nyu.edu

Extras

Notes on Union Find (for Apr 17 class) postscript LaTeX pdf

Notes on distinctions between Opt BST and Huffman postscript LaTeX pdf

Notes on the Euclidean Algorithm postscript LaTeX pdf

Notes on Dijkstra's Algorithm postscript LaTeX pdf

Notes on Text Alignment postscript LaTeX pdf

Film

The film "Counting from Infinity," directed by George Csicsery, will be shown on Public Broadcast in May -- e.g., WNET (channel 13, New York), May 25, 6 p.m. It tells the inspiring story of Yitang Zhang and his great breakthrough on the Twin Prime Conjecture. Don't miss it!!

Midterm

Click here postscript LaTeX pdf for the midterm (one version)

and here postscript LaTeX pdf for the solutions.

Just In Case

academic integrity policies