Docsity

Analysis of Algorithms - Study Notes | CECS 428, Study notes of Algorithms and Programming

Toggle sidebar
bg1
CECS 428: Analysis of Algorithms Spring 2009
Darin Goldstein
1 Contact info
•Instructor: Darin Goldstein
•Phone: 562.985.1507
•Office: ECS 546
•Phone: (562)985-1507
•Office hours: MW 6:00-6:30pm, TTh 3:00-3:30 pm, 6:00-6:30 pm (How-
ever, expect to be kicked out of my office 5 minutes beforehand so that
I can make it to class on time. You will have priority during the office
hours just before lecture.)
•Web page: http://www.cecs.csulb.edu/∼daring/ (Many of the lectures
for this class come from the CECS 528 material and can be found by
navigating to their page. You can find them by looking at the syllabus at
the end of this handout.)
•Textbook: Introduction to Algorithms, Cormen, Leiserson, Rivest, and
Stein, McGraw-Hill, 2001, Edition 2
2 Course Description
Credits: Credit for this course (syllabus, course materials, etc.) all
go to Todd Ebert, the course coordinator for CECS 428.
2.1 Course Objectives
•Mathematical functions and analysis techniques- an ability to use direct,
indirect, and inductive proof strategies; knowledge of basic mathematical
functions such as ceiling, floor, log, exponentials, roots, and series.
1
pf3
pf4
pf5

Partial preview of the text

Download Analysis of Algorithms - Study Notes | CECS 428 and more Study notes Algorithms and Programming in PDF only on Docsity!

CECS 428: Analysis of Algorithms Spring 2009

Darin Goldstein

1 Contact info

  • Instructor: Darin Goldstein
  • Phone: 562.985.
  • Email: [email protected]
  • Office: ECS 546
  • Phone: (562)985-
  • Email: [email protected]
  • Office hours: MW 6:00-6:30pm, TTh 3:00-3:30 pm, 6:00-6:30 pm (How- ever, expect to be kicked out of my office 5 minutes beforehand so that I can make it to class on time. You will have priority during the office hours just before lecture.)
  • Web page: http://www.cecs.csulb.edu/∼daring/ (Many of the lectures for this class come from the CECS 528 material and can be found by navigating to their page. You can find them by looking at the syllabus at the end of this handout.)
  • Textbook: Introduction to Algorithms, Cormen, Leiserson, Rivest, and Stein, McGraw-Hill, 2001, Edition 2

2 Course Description

Credits: Credit for this course (syllabus, course materials, etc.) all go to Todd Ebert, the course coordinator for CECS 428.

2.1 Course Objectives

  • Mathematical functions and analysis techniques- an ability to use direct, indirect, and inductive proof strategies; knowledge of basic mathematical functions such as ceiling, floor, log, exponentials, roots, and series.
  • Master method and recurrences- an ability to solve recurrence relations using recurrence trees and the Master method. Basic understanding of the Master Theorem.
  • Asymptotic Analysis
    • Compare two growth rates, determining if one is smaller than, equal to, or greater than another; determine when a growth rate is poly- nomial, super-polynomial, or exponential.
    • Knowledge of big-O notation.
  • Sorting
    • Analyze the running time of numerous basic sorting algorithms.
  • Divide and Conquer Algorithms- knowledge of algorithms for order statis- tics.
  • Dynamic-programming algorithms
    • An ability to identify when a problem has a dynamic-programming solution; an ability to identify optimal substructures within a prob- lem.
    • Knowledge of a variety of problems that can be solved using a dynamic- programming solution.
    • Understanding the difference between recursive algorithms and dynamic- programming algorithms.
  • Greedy Algorithms- knowledge of a variety of problems that can be solved using a greedy algorithm; an ability to prove that a greedy algorithm yields an optimal solution.
  • An ability to provide an algorithm in natural language and pseudocode and to establish its correctness via an analytical argument
  • An ability to analytically establish that a given algorithm has some stated property.
  • Graph Algorithms
    • Understand the importance of the depth first search via interesting example algorithms such as Tarjans strongly connected components algorithm and perform these algorithms on examples.
    • Perform the Ford-Fulkerson max-flow algorithm on examples.
    • Perform Prims, Kruskals, and Dijkstras algorithms for minimum spanning trees on examples.
    • Perform Dijkstras single source shortest path algorithm on examples.
    • Understand the reasons behind the necessity for good graph algo- rithms.
  • Partial credit will only be given out for steps LEADING TO THE COR- RECT ANSWER. The answer itself is meaningless without clear reason- ing. This means that if your reasoning is incorrect or not explicitly on the page, the ANSWER BY ITSELF WILL NOT BE COUNTED AS CORRECT.
  • Write out every step of your reasoning. If it is not on the page, you will not get credit for it.
  • Clearly mark out anything you don’t want graded. If it is on your page and not crossed out, it will be graded as if it’s part of your answer. If there is more than one answer on your page, I WILL GRADE THE INCORRECT ANSWER. Points will be deducted for anything incorrect written on the page that is not crossed out even if the final answer is correct.

For multiple choice questions, you are required to get the answer entirely correct. (In other words, if the answer is B and D and you choose only B or B,C,D or anything other than B,D, then your answer is incorrect.) No partial credit is given for multiple choice questions.

5 Homework, Quizzes, Exams, Programming As-

signments

Homework will not be turned it. However, I highly recommend doing it if you want to do well on the exams. If you choose not to do the homework, you will not be explicitly penalized, but you should plan on not doing well in the course. The tentative breakdown for grading is as follows:

  1. Midterm # 1: 1/
  2. Midterm # 2: 1/
  3. Final Exam: 1/

The class will be graded on a curve. Independent of the curve, if you get 90% of the total points or above, you get an automatic A; 80% of the total points or above, you get an automatic B; and so on. (I do not round points.) The curve can only help your grade. Usually, independent of the actual score, the top person/people get A’s. I then go down the grades and determine where the first big break in the grades is and, after the first big break, we start the B’s. This continues all the way down. Generally speaking, office hours are pretty crowded the day before exams. I was a college student once and am very familiar with the concept of cramming for an exam. During office hours, I will try to help as many people as I can. However, the chances are pretty good that if you leave all of your questions for the last minute, they may go unanswered. Please take this into account when you start your studying.

6 Cheating

You may not leave the room during any in-class exam. You may not use any communication device (cell phones, etc.) during any in-class exam. For take-home exams, you are allowed to use calculators and any nonhuman help you need. If you receive help in any way from any human being (including any help at all from the Internet; human help using an electronic or other intermediary is still considered “human help”), it will be considered cheating and will be dealt with as outlined below. If you have any questions about whether or not something is considered “human help,” it is your responsibility to come see me before you receive such help. You will not receive any leniency after the fact; please consider this one of the rare occasions when it is easier to get permission than forgiveness. Failure to observe these rules will result in an F in the course. Cheating on any graded material in the course will lead to an automatic grade of F in the course. I don’t give warnings.

7 The final word

If there is anything on this page that you have a question or comment about, it is very important to let me know about it on the FIRST DAY OF CLASSES. After the first day of classes, I will assume that you are aware of the grading policies. Any grading misunderstandings you have after the first day of classes are your responsibility. Good luck.

8 Syllabus

  1. Asymptotic Analysis (bigo.pdf)
  2. Mathematical functions and analysis techniques (recurrence.pdf)
  3. Sorting (bubble, insertion, selection)(quicksort, randomized quicksort, qsort)
  4. Binary Heaps (insertion,deletion)(implementation and applications)
  5. Midterm # 1
  6. Algorithm Analysis and Complexity (DandC.pdf: order statistics with probability)
  7. Greedy Algorithms (greedy.pdf without MST,SSSP)
  8. Divide and Conquer Algorithms (DandC.pdf: order statistics without probability)
  9. Graph Algorithms (DFS, Ford-Fulkerson max-flow)(SCC)
  10. Midterm # 2