Towers of Hanoi
(from textbook website)

 

CS432: Algorithms

Dr. Tom Horton. Phone: 982-2217
Office hours: MW 11am-noon, TR1:30-2:30pm, and by appt.
Teaching Assistant: Ben Taitelbaum (btaitelb at virginia.edu)
TA Office Hours: Tu 7.00 - 9.45 pm or by appt., Olsson 236 #5 (map)

Announcements: 12/7: New things!
° HW6 and HW5 solutions:
Posted, see below.
° Final Exam:
Info here.
° HW6 deadline changed:
now Weds., Dec. 7, 4pm!
° Chap. 10 practice problems:
Posted, see that section.

Administration etc.

 

Summary of Problems, Homeworks

  1. Problem Set 1 (on Chapter 2 material).
    Solutions for required problems [PDF].
    Solutions for non-required problems [PDF, Word].
    Solutions for required will be posted soon.
  2. Problem Set 2 (on Ch. 5 & 6 material).
    Due: 5 pm, Tuesday, Sept. 27 at start of class.
    If you've turned them in, look at solutions.
  3. Problem Set 3 (on graph traversals etc.). Due on Tues., 10/25 at end of class. If you've turned them in, look at solutions.
  4. Here are "exam 2 review" problems for you to try!
    Here are solutions to these.
  5. Problem Set 4 Due on Tues., 11/1 at end of class.
    Here are solutions to these.
  6. Problem Set 5. Due on Tues., 11/29, at the end of class.
    Here are solutions to these.
  7. Problem Set 6. Due on Weds., Dec. 7, 4 pm.
    Here are solutions to these.

Unit 1: Introduction and Principles:

  • Slides: (1) Course Intro (8/25, 8/30) [PPT, PDF 6-per-page]
    (2) Principles (8/30 or so) [PPT, PDF 6-per-page]
    (3) Principles Order Classes (9/1, 9/6) [PPT, PDF 6-per-page]
  • Here's a "Big-Oh Cheat Sheet" on order-class definitions that the TA prepared.
  • Other: (1) On the Wall of Fame below, read entries for Euclid, Al-Khwarizmi, and Lovelace.
    (2) Here's the in-class self-assessment quiz from 9/1 with answers. [PDF, Word]
  • Expectations:
    • Think back or review topics listed in the Course Intro slides or on the wiki.
    • Read over Sections 2.1, 2.2, 2.5, and 2.6 in the text and ask about materials that's not review for you or not clear. No lectures on these sections.
    • Read the slides and the associated sections of the book, Sections 2.3 and 2.4.

Unit 2: Divide and Conquer, Recurrences

  • Slides: (1) Recurrences, Divide and Conquer (9/8, 9/13) [PPT, PDF 6-per-page] 9/27, slide 27
    (2) More Divide and Conquer, Chap. 5 (9/13, 9/15) [PPT, PDF 6-per-page]
  • Expectations:
    • Chapter 5. (All sections.)
    • Look over work through HW 1 problems not required for turn-in.

Unit 3: Sorting

  • Slides: (1) Sorting from Chapter 6 (9/15, 9/20, 9/22) [PPT, PDF 6-per-page]
    (2) Linear Sorting (not in text) (9/22) [PPT, PDF 6-per-page]
  • Expectations:
    • Chapter 6. (All sections.)
    • Study HW2 and self-assessment quiz given on 9/20 [PDF, Word]
  • Other: (1) On the Wall of Fame below, read entries for Hoare.

Unit 3a: Heaps and Heapsort (logically part of Unit 3 but will be on Exam 2)

  • Slides: Heaps and heapsort (10/4) [PPT, PDF 6-per-page]
  • Expectations:

Unit 4: Graph Traverals and Search

  • Slides: (1) Graphs, BFS, DFS, topological sorting (10/6, 10/11, 10/13) [PPT, PDF 6-per-page]
    (2) Slides on exhaustive and state-space search [PPT, PDF 6-per-page]
  • Expectations:
    • Review Section 2.5 and these CS216 slides
    • Chapter 4 (from 4.2 on)
  • Other:
    • Questions on this material are in the "exam 2 review" problems for you to try!
    • Read the Wall of Fame entry below for Dijkstra.

Unit 5: Greedy Algorithms

  • Readings: Textbook: Chapter 7, except 7.5
  • Slides: Version 0. They may change when given on 10/20 and 10/21 [PPT] [PDF, 6-per-page]
  • Other: Questions on this material are in the "exam 2 review" problems for you to try!

Unit 6: Dynamic Programming

Unit 7: NP-completeness

Unit 8: Algorithms and Intellectual Property



Wall of Fame: Pictures and Brief Information on Famous Figures in Algorithms:

Euclid
(325-265 BCE)
[
St.Andrews] [Euclid's algorithm from Wikipedia]

Al-Khwarizmi
(9th cent. CE)
[
Wolfram] [St.Andrews] [Wikipedia]

Ada Lovelace (1815-1852) First algorithm for a computer.
[
St.Andrews] [Women in Science] [Wikipedia]
 

CAR Hoare
[Short bio]
  Photo of Edsger W. Dijkstra
Edsger Dijkstra
[Wikipedia] [Quotes!]
Photo of Stephen Cook
Steven Cook

[Wikipedia] [Homepage]