Discrete Structures II (COMP 2804)
Winter 2016
Instructor: Anil Maheshwari
Office: Herzberg Building 5125B
E-mail: anil@scs.carleton.ca
Lectures: Monday & Wednesday 08:35 -
09:55 AT 102
Office hours: Monday 10:00 - 11:45
in 5125B HP
FYI: I am away February 11-19 and March 7-11 for
Conferences/Workshops, and hence I will not have office hours during
these periods.
Teaching assistants: The TAs have their
office hours in Herzberg Building 1170.
- A Moni
Office hours: Monday 2-4PM (Starting on Jan 18th)
- Farah Chanchary (NO office hours in the week of March
28-April 1)
Office hours:Tuesday 10-12
- Lei Chen
Office hours: Wednesday 10-11
- Kimberly Crosbie
Office hours: Thursday 10-12
- Ian McEachern
Office hours:Thursday 3-4P M
Course objectives: A second course that is
designed to give students a basic understanding of Discrete
Mathematics and its role in Computer Science. Computers handle
discrete data rather than continuous data. The course presents an
overview of some of the major theoretical concepts needed to analyze
this type of data.
Topics covered include: Counting,
sequences and sums, discrete probability, basic statistics,
recurrence relations, randomized algorithms. Material is illustrated
through examples from computing.
Textbook:
Important dates:
Grading scheme:
- Assignments: 25%
- Midterm: 25%
- Final exam: 50%
What was done in class
in Winter 2016:
Jan 6:
- My Notes
- Course overview. Chapter 1 in the textbook: Ramsey
Theory,
Sperner's Theorem, Quick-Sort.
- You are supposed to be familiar with the following topics from
COMP 1805: basic logical reasoning, sets and functions, proof
strategies (direct proof, proof by contradiction, proof by
induction), Sigma-notation for summations, basic graph theory,
Big-Oh, Big-Omega, Big-Theta. You may take a look at Chapter 2
of the textbook and do some of the exercises at the end of that
chapter.
Jan 11:
- My Notes
- Counting:
Product Rule, Section 3.1.
- Examples: number of
seats in CTC center, number of three digits numbers with
distinct odd digits, number of binary strings, number of
functions and number of one-to-one functions, number of ways
to arrange m books on n shelves.
Jan 13:
Jan 18:
Jan 20:
Jan 25:
Jan 27:
Feb 01:
Feb 03:
- My Notes
- Height and number of
nodes in a Full Binary Tree
- Tower of Hanoi
- Intro to Probability
Feb 08: Assignment 1 is Due.
Assignment 2 is posted.
Feb 10:
- My Notes
- Basic rules of
probability, Section 5.3.
- Several Examples
Feb 15/17: Fall Break
Feb 22:
Feb 24: Assignment 2 is Due.
Feb 29:
Mar 02: Mid-Term (In Class) Here
is the Mid-Term with Solutions
It will include all the material covered
in the months of January and February, excluding the class of
Feb 29th.
It is multiple choice exam, where you to mark the answers on a
Scantron sheet. Please bring a pencil, and a calculator for the
exam.
Please have a look at previous midterms and that will provide a
good practice.
Mar 07: Assignment 3 is
posted.
Carsten Grimm will take this class as I am away for a workshop
Mar 09: Carsten
Grimm will take this class as I am away for a workshop
Mar 14:
- My Notes
- Choosing a random
element in a linked list, Section 5.12.
- Infinite probability spaces, Section 5.14.
- Random
variables, Section 6.1.
Mar 16:
Mar 21: Assignment
3 is Due. Assignment 4 is posted.
Mar 23:
- My Notes
- Analysis of randomized algorithms
- Expected running time of FINDMAX, Section 6.8.2
- Estimating the harmonic
number, Section 6.8.3.
- Expected running time of
Insertion-Sort, Section 6.9.
- Expected running time of Quick-Sort,
Section 6.10.
Mar 28:
Mar 30:
- Skip Lists Continued
- Probabilistic method: large bipartite subgraphs, Section 7.1.
Apr 04: Assignment 4 is due.
Apr 06:
April 21: Final Exam
- 25 Multiple Choice QUESTIONS to be answered on Scantron
Sheet within 2 Hours.
- Please bring appropriate pencil(s) and calculator.
Stuff from Previous Terms (Thanks to
Michiel):
Final Exams:
Assignments from Fall 2015 with
solutions:
-
Assignment 1 from Fall 2015
- Here is Assignment 1
as a pdf file.
- Here is the LaTeX file.
- Here is the figure.
- The marks will be posted on cuLearn; they are out of 50.
Breakdown of the marks: Q2: 3+3=6, Q3: 7, Q4: 5, Q5: 7, Q6:
5, Q7: 1+4+2=7, Q8: 5, Q9: 4+4=8
- Here are the
solutions.
- Assignment 2 from Fall 2015.
- Here is Assignment 2
as a pdf file.
- Here is the LaTeX
file.
- The figures are here, here, and here.
- The marks will be posted on cuLearn; they are out of 50.
Breakdown of the marks: Q2: 5, Q3: 2+4=6, Q4: 5, Q5: 2+5=7,
Q6: 2+4+1+2=9, Q7: 4+5=9, Q8: 3+6=9
- Here are the
solutions.
- Assignment 3 for Fall 2015
- Here is Assignment 3
as a pdf file.
- Here is the LaTeX
file.
- The marks will be posted on cuLearn; they are out of 50.
Breakdown of the marks: Q2: 3+3=6, Q3: 3+3=6, Q4: 4, Q5: 5
for left-hand side, 4 for right-hand side, Q6: 8, Q7: 6, Q8:
4+4+3=11
- Here are the
solutions.
- Assignment 4 from Fall 2015
- Here is Assignment 4
as a pdf file.
- Here is the LaTeX
file.
- The figures are here
and here.
- The marks will be posted on cuLearn; they are out of 50.
Breakdown of the marks: Q2: 4+1=5, Q3: 4+4=8, Q4: 4, Q5:
1+3+1+1+3+2=11, Q6: 5, Q7: 3+2=5, Q8: 2+2+4+2+2=12
- Here are the
solutions
OLD MIDTERMS: (In case these links ae not
working - just go to the directory and look for these (and many
more) files under this directory.
- Fall 2015: Answers: 1D,
2C, 3D, 4B, 5C, 6A, 7C, 8B, 9A, 10D, 11B, 12B, 13C, 14A, 15B,
16A, 17C
- Fall 2013. Answers:
1C, 2B, 3C, 4B, 5D, 6D, 7A, 8C, 9A, 10B, 11D, 12C, 13A, 14C,
15D, 16C, 17B
- Winter 2014.
Answers: 1C, 2D, 3B, 4A, 5A, 6B, 7C, 8B, 9D, 10A, 11B, 12A, 13C,
14D, 15A, 16B, 17B
- Fall 2014. Answers:
1c, 2c, 3d, 4d, 5a, 6c, 7b, 8a, 9b, 10c, 11b, 12c, 13d, 14c,
15a, 16a, 17d
- Winter 2015.
Answers: 1C, 2B, 3B, 4A, 5C, 6B, 7D, 8B, 9A, 10D, 11D, 12C, 13B,
14D, 15B, 16A, 1
Undergraduate Academic Advisor:
The undergraduate advisor for the School of Computer Science is
available in Room 5302C HP, by telephone at 520-2600, ext. 4364 or
by email at undergraduate_advisor@scs.carleton.ca. The advisor can
assist with information about prerequisites and preclusions, course
substitutions/equivalencies, understanding your academic audit and
the remaining requirements for graduation. The undergraduate advisor
will also refer students to appropriate resources such as the
Science Student Success Centre, Learning Support Services and the
Writing Tutorial Services.
University Policies:
Student Academic Integrity Policy: Every student should be
familiar with the Carleton University student academic integrity
policy. A student found in violation of academic integrity standards
may be awarded penalties which range from a reprimand to receiving a
grade of F in the course or even being expelled from the program or
University. Some examples of offences are: plagiarism and
unauthorized co-operation or collaboration. Information on this
policy may be found in the Undergraduate Calendar.
Plagiarism: As defined by Senate, "plagiarism is presenting,
whether intentional or not, the ideas, expression of ideas or work
of others as one's own". Such reported offences will be reviewed by
the office of the Dean.
Unauthorized Co-operation or Collaboration:
- Students are encouraged to collaborate on assignments, but at
the level of discussion only. When writing down the solutions,
they must do so in their own words.
- Past experience has shown conclusively that those who do not
put adequate effort into the assignments do not learn the
material and have a probability near 1 of doing poorly on the
exams.
Equity Statements:
You may need special arrangements to meet your academic obligations
during the term. For an accommodation request the processes are as
follows:
Pregnancy obligation: write to me with any requests for
academic accommodation during the first two weeks of class, or as
soon as possible after the need for accommodation is known to exist.
For more details visit the Equity Services website:
http://www2.carleton.ca/equity/
Religious obligation: write to me with any requests for
academic accommodation during the first two weeks of class, or as
soon as possible after the need for accommodation is known to exist.
For more details visit the Equity Services website:
http://www2.carleton.ca/equity/
Academic Accommodations for Students with Disabilities: The
Paul Menton Centre for Students with Disabilities (PMC) provides
services to students with Learning Disabilities (LD),
psychiatric/mental health disabilities, Attention Deficit
Hyperactivity Disorder (ADHD), Autism Spectrum Disorders (ASD),
chronic medical conditions, and impairments in mobility, hearing,
and vision. If you have a disability requiring academic
accommodations in this course, please contact PMC at 613-520-6608 or
pmc@carleton.ca for a formal evaluation. If you are already
registered with the PMC, contact your PMC coordinator to send me
your Letter of Accommodation at the beginning of the term, and no
later than two weeks before the first in-class scheduled test or
exam requiring accommodation (if applicable). After requesting
accommodation from PMC, meet with me to ensure accommodation
arrangements are made. Please consult the PMC website for the
deadline to request accommodations for the formally-scheduled exam
(if applicable) at
http://www2.carleton.ca/pmc/new-and-current-students/dates-and-deadlines/
You can visit the Equity Services website to view the policies and
to obtain more detailed information on academic accommodation at
 http://www2.carleton.ca/equity/
Medical Certificate: The following is a link to the official
medical certificate accepted by Carleton University for the deferral
of final examinations or assignments in undergraduate courses. To
access the form, please go to
http://www1.carleton.ca/registrar/forms/
Note: This website is taken from Michiel Smid. He is the only one
who has taught this course since its creation a couple of years ago.
I will essentially follow what he has done previously in this
course.