**Ground Rule Index:**

Contacts | Feedback/Questions | Exams and Quizzes |

Prerequisites | Learning Outcomes | Academic Dishonesty |

Textbook | Grading | Class/study Approach |

Communication | Piazza | Cell Phones |

Course Materials | Homework |

Email (aharrin@luc.edu), or preferably communications through Piazza (see below) are always appreciated, and with our online software, Zoom, we can set up separate synchronous times to work individually.

Starting off the semester I have office hours after our classes, 1-2:15PM. See my office hour page for more complete and up-to-date hours.

Particularly since the class is blended, you will certainly have rather flexible access to me online at some times we agree on.

Email is always appreciated. Also we can use online software like Zoom to meet, when getting together on campus does not fit both our schedules. You will need a good broadband connection for synchronous online collaboration. See https://luc.zoom.us. This page links to various help documents.

Anadi Misra, university ID: amisra

- Discrete Structures 163 (induction, formal logic, Boolean algebra, proof techniques, functions and relations, combinations, permutations)
- Data Structures 271, very important! (ADT's, insertion sort, selection sort, merge sort, quicksort, binary search, linked lists, binary trees, binary search trees, heaps, hash tables, finite graph basics, basic run-time analysis, big Oh notation, considerable experience with recursion)
- Calculus 130 or 161 – Limits make order estimates somewhat easier, and some of our standard bounds on sums are based on integrals, but even if your calculus is foggy or missing, you should be able to just use the collected results we have, based on calculus. Still, the logical, symbolic thinking practiced in calculus (and Comp 163) is very important.

All of the above should give you some mathematical sophistication. That is the hardest part, and many of you may need more. Please see me when you have trouble.

**The Design & Analysis of Algorithms**, Third edition, by Anany Levitin,
Pearson/Addison Wesley, ISBN 9780132316811. Note, the second edition is
mostly the same and may be used instead for almost everything. Second
edition users, see the
mapping between the two editions.

We should cover some of all but chapters 10 and 12, with a few sections dropped or added, depending on the time at the end. Levitin has a distinctive format, that works well some of the time, and not others. I adjust the order in many places. See the schedule, with reading and writing assignments.

Piazza is a great course-centered interaction site: social media for courses if you will. Make sure you log in and give it your preferred email address. I will generally send announcements through Piazza, so I strongly suggest that you set up Piazza for frequent updates via email. I may occasionally add important notes and override your email preferences, so you get notified immediately.

- The basic public course materials will all be posted directly on the web under http://anh.cs.luc.edu/363.
- Further announcements, comments, and question solutions will appear in Piazza.
- Some private information between professor/TA and individual students will be handled through the University Sakai system. It will mostly be used for grades and class-wide individual submisisons, like the Math pretest and take-home quiz submissions.

Please let me know, in person or via a message to me in Piazza, when you need something from the course that I have not thought to include, or not included in sufficient detail for you, or not presented from a point of view that you can follow. We are in this together. For me to succeed, I need you to succeed.

For course content questions that are not addressed in person, please post them on Piazza, not email.

You should be looking to help others, too: besides being good for the community, it is good for your grade. You are NOT graded down for expressing needs for help: to be clear about where the holes are in our preparation and to be proactive are positive. Lots of people have lots of questions about this course. Lots of topics need to be spiraled through, with more questions and a bit more understanding in each pass. Do not be shy with questions!

I am still experimenting with the best use of the features in Piazza. Suggestions for optimizing its use in our learning community are highly encouraged. More detailed information on the use of Piazza with this course is below in Homework/Piazza.

Do not forget office hours; Look them up; make a separate appointment if that works better: Sitting down together and discussing an issue in depth, maybe pointing and drawing diagrams, is still very useful! Somtimes students need to loop through a topic many times, gaining a bit each time. With Zoom we can draw pictures online, too.

I hope all of this keeps us in touch well, even when we are mostly online. I do reserve the possiblity of adding a required weekly short private journal/blog entry if I seem to be losing track of people.

Foundation:

- Be able to use order estimates for run times
- in basic situations with loops and decisions
- in recursion (using the Master Recurence Relation Theorem)

- Use basic probability to calculate averages or expected values

Understand important data structures such as

- Graphs, directed graphs, directed acyclic graphs
- Priority queues, heaps
- B-trees

Understand important existing algorithms, such as:

- Merge sort
- Quicksort
- Bucket sort
- Depth-first search
- Breadth-first Search
- Dijikstra's Algorithm for shortest path
- Kruskal's and Prim's algorithms for minimum spanning trees
- Union-find algorithms

**Understand these algorithms at different levels (the central part):**

**Be able to follow the algorithms in simple concrete situations (play computer to illustrate results)****Calculate run times and resource needs****Recognize new scenarios where known algorithms are directly applicable****Given a somewhat novel situation, create solutions using variations or combinations of algorithms discussed**

Understand how many algorithms fit into a larger class of algorithms with common properties and strategies, for example

- All sorts using key comparisons
- Divide and Conquer algorithms
- Greedy algorithms
- Dynamic programming problems
- Classes of problems P, NP (an introduction)

- 25% Piazza and class contributions and edits to homework and other questions
- 24% Total for four take-home quizzes
- 16% Midterm exam
- 35% Final exam

I will enter your raw (not scaled) scores into the Sakai gradebook for you to confirm. I base your final grade on separate percentages for each part above.

I convert to course letter grades with the following minimum requirements:

A 93 A- 90 B+ 87 B 83 B- 80 C+ 77 C 73 C- 70 D+ 67 D 60.

It is hard to convert desired learning outcome straight into grades, with so many course components, but look at the boldface central outcome for different levels of understanding of algorithms: If you quite consistently succeed at the levels listed up through 2, 3 or 4, then it should roughly correspond to a grade of C, B or A, respectively.

We are using Piazza for most all aspects of communication, general questions and comments, discussed here, and in specifically for designated individuals posted homework solutions, in the next section.

Additions to Piazza come in several forms: general comments, questions, answers, discussion on an issue with a problem, edits to previous entries (this is a wiki), and polls. Entries can be directed privately to instructors (the TA and me) or to everyone. Entries for everyone can have your name shown or withheld from classmates. Polls that I put out can be completely anonymous.

Piazza has a very nice mouse-based equation editor, and we will be using a significant amount of mathematical notation. We will discuss it. Learn to use the equation editor. For those who like to write LaTex directly, that is OK, too.

The ways I would like you to handle Piazza entries vary with the situation:

- Before a problem is due
- Questions and comments posted for everyone that would help with a homework problem,
before an answer is posted, need to either be general or conceptual enough
not to give away solution details.
Do look early at the
homework, think, and post such questions, to get early help!
*If you have a question that is directly related to a solution you are thinking of,**it should be a private communication for instructors.* - General comments not addressing a particular problem
- These can be anything useful to the general community. If you found a good web site that addresses a course topic in a way that you like, post the URL with a comment. Of course you can always give your own direct comments! Requests for special emphasis in the next class make sense to go out to the whole class, too. After an initial request, "me, too!" additions are very helpful for me to plan how to make class time best support you!
- Questions
- Other than the restrictions around specific assigned problems, use this community for help. We will discover more ways as we go along! Do organize your materials so you know where to look first for resources. Be aware of the recent course reading and topics. Go to the community second.
- Answers
- Respond to the kinds of questions above! Be helpful within our guidelines.
- Discussion on a question
- There is a provision for discussion of issues separate from answers. If the issue is resolved, the issue can be marked closed (but it is a wiki - it could be reopened by someone else).
- Polls
- If I want quick aggregated responses to multiple choice questions, I may post an anonymous poll. Timely responses are appreciated.
- Announcements
- I will post announcements to Piazza, generally with an email then going immediately to yur inbox to note it.
- Homework problem solutions and solution edits
- See the next section.

Reading, following examples, and absorbing general concepts is a start,
but applying them by doing problems is essential.
Also essentiual is critical evaluation of yours and others logic.
The exercises are designed to give you experience *doing* and engaging with
all the course topics.

The time scale for the class and homework may shift some. I will try to note time and exercise changes just before or very shortly after the class where the subject is introduced.

I have allowed and encouraged students to work together at least in pairs on graded
homework in the past. I am trying to extend that in this class.
Before intial solvers and responders are assign, there will be a place in Piazza where
students can list themselves as a cooperative group of 2-4:
mostly working *together on each*
assigned problem, *not* splitting things up. Be engaged in each problem!

Piazza only records the actual person posting. Each time you make a homework post for a larger group, start by listing the full group.

The problems are intended for your direct thinking and doing. Posted answers, and
edits to an earlier answer, should be from your group's *personal work and thought*,
not from somewhere else, not taken from another resource like the internet,
not from old solutions to one of these homework problems from before this semester.
Using other sources is dishonest.

Always be mindful that particular answers are not the main point of the problems posed: The main thing is to develop the ability to understand and creatively combine and use the ideas behind the problems. If the answer falls in your lap from an outside source, you will likely learn very little. Make sure you are thinking about your process: how you are choosing initial approaches and why the next step is being tried. Students can be in denial, and think that following aj already given solution is a substitute for the learning in creating a solution.

Remember,
exams and quizzes are *individual* work. You have to end up being capable yourself.
Make sure you are an active contributor to all parts of your work with group.
Active collaboration for initial learning is great. Critical evaluation is also important.

**Use my office hours!** A number of past students have indicated they
considered the course to be really hard before they started taking
advantage of office hours or online consultation,
and then they found the work much more
accessible. Take advantage of consultation, for sustained, individualized help!
Let me know if the posted hours do not work for you.

Some guidelines in your answers:

- Where an explanation or proof is required, show logic clearly, using full English and mathematical sentences. I will expect as much on quizzes and exams.
- Use indentation for blocks in algorithms, as in the text.
- When you provide a counter-example, show
*why*it serves as a counter example. - Use the equation editor where needed.

Here is some extra structure around assigned homework problems,
that we are trying as a
*part* of the discussion on the
Piazza
site. We use that fact that Piazza tracks contributions, so I can
give homework credit for all answers and edits:

- Everyone should work on all the problems in the regular homework.
It is
*much*less helpful for learning to only look at completed solutions that others come up with. - For regular assigned homework you may origanize yourselves into small cooperating groups (2-4),
on stay as an individual. I'll refer to both arrangements as a "group".
A single group will be assigned to post a solution to a specified problem in
Piazza
*on*the calendar Due Day (not the day before, not the day after). The solution must be original, not taken from any book or the internet. Larger groups will be assigned such problems more frequently. - For a specific problem one group will be designated as the original reviewer.
Reading a explanation critically os very imoprtant, and it is encorporated
into the course here. This group should agree or correct/replace the original solution
given by midnight of the day
*after*the Due Date. You should have your own solution ready in case you do not like the original submission! And if you use a substantially different approach that illuminates the idea, do post yours as an alternate, along with any critique of the original solver. - Other groups may weigh in after the first review is due, or anytime after it is submitted.
You are expected to read all solutions and edit solutions where they see can
be clarified, corrected, or replaced with something both correct and simpler, or
*add*ypur alternate, substantially different solution. of the problem from a different angle. These edits must also be original. - If nobody get a problem right. I will go over it in class. Then for completeness in Piazza, the original solver gets a day to post a correct solution, then if there is not one yet, the reviewer get the next day, and if there is still no correct solution, I invite anyone to add it.
- I have an initial grading rubric below. I am am open to changing it and the overall process if we see fairer, more effective ways to do it. I need your feedback!

I reserve the right to modify this if other approaches/weights turn out to make more sense.

Working with different sized cooperating teams is more straight-forward with open ended projects, where I just would expect something more involved from a larger group. With discrete specific homework problems, I will assign somewhat more to larger groups: Where an inidividual would get one problem, a group of 2-4 would get roughly an extra 1/2 problem per extra team member. For later reference, I give a one letter abbreviation for each category of graded response. They may help in ultimate grading feedback from the TA.

Let Tot be the full credit your group would get for a full initial solution.

- S: initial assigned Solution
- Tot for fully correct, less for partially correct.
- R: First Responder/Reviewer agreeing
- Tot/5 correctly, -Tot/10 incorrectly or not submitted. If there is no initial solution posted on the due date, you become the intial solver, solution due the next day
- A: any and all other groups Agree after first responder, after opened to class
- Tot/20 correctly, -Tot/20 incorrectly
- Q: Question after opened up to class
- Noting but not fixing a specific incorrect part, or place where important steps are skipped, Tot/10 up
- F: Fix (rather than agree - substantive correction)
- Max of Tot/5, and difference in solution value: (value_after - value_before)
- E: elaboration/clarification of basically correct thing
- Tot/15 generally, up to Tot for a full informative completely alternate solution
- W: Wrap-up - fix incorrect solution after instructor has explained a problem nobody got
- 1/2 of missing points. Original solver gets until midnight the day after class as first crack. After that, reviewer the next day, anyone on the day after that.

While homework answered on Piuazza will be set up to be done collaboratively, if you like, the grading for quizzes and exams will be for individual work.

In-class Exam Schedule (updated in the course schedule and assignments):

Midterm: Weds Mar 14 (tentative)Final Exam: Mon Apr 30, 1PM

I am planning on
four take-home quizzes, tentatively due
**Feb 16, Mar 2, Apr 3 and Apr 20**.

If I want to change this quiz timing, or add any, I will give at least a week's notice before sending out take-home quizzes. I will generally send take-home quizzes out at least 2 days before they are due. I am likely to give a 2-3 hour time limit on quizzes. Tentative due dates are listed in the course schedule and assignments.

Quizzes are not cumulative (except as the material is naturally
cumulative). Exams *are* cumulative. Exams and quizzes will not include
material that is new in the week immediately before the test.

You may prepare notes to use for this graded work. I will allow at least the following number of sides of 8.5 x 11" paper notes: quizzes: 2, midterm: 3, and final: 4. I will distribute copies of the formulas appendix at the end of the book, so you do not need to include those in your notes. Other resources are not allowed.

**Exam Grading**: Do not write down things on exams that you can see are
incomplete or incorrect without making some comment acknowledging this
-- it is better to know you are wrong or incomplete than to be wrong and
think you are right.

**Missed Exams** : If you must miss an exam, let me know well in
advance. Then if you have a good reason we can possibly make other
arrangements. I have little sympathy for people who inform me after the
fact for no good reason. I may completely excuse you from an exam if you
were sick or unable to attend for long enough. Most often if you cannot
take an exam at the usual time, I will want you to take it a little
later, BUT I WILL NOT LET ANYONE TAKE A LATE EXAM AFTER THE NEXT CLASS
PERIOD. If you somehow fail to let me know in a timely fashion that you
have an excuse and want to take the exam late, appear at my office hours
before the NEXT class after the exam, and I may be able to give you the
exam.

**IMPORTANT POLICY**: If you have an excuse for not being prepared to
take an exam, but decide to take it anyway, you don't get to change your
mind after you see a poor grade. In certain circumstances I may allow
you to delay an exam due to illness, but I will not let you be
reexamined due to a poor grade.

The penalty for cheating may be anywhere from a 0 on an assignment to a grade of "F" in this course. The appropriate dean will be informed in writing of any cheating incidents.

Cheating consists of, but is not limited to the following for all graded work:

- Using or copying another person's work in any fashion (other than collaborative work with your group on homework).
- Work includes outlines, algorithms, pseudocode, code, and analyses.
- Allowing your own work to be copied or used by another student.
- Submitting as your own work something that has been written by another person, and people write web pages, so that includes material on the Internet.
- Using any unauthorized reference on an exam or assignment.

Help from any source, particularly from others in Piazza, *is fine*
concerning

- Course prerequisites, necessary math
- The meaning of a problem (not the plan for the solution or the actual solution).
- The restrictions of programming language syntax.

I have unfortunately needed to give out 0's in past semesters, with the accompanying referrals to the students' deans.

As a user of the campus network, you should be aware of your rights and responsibilities in

The class involves basic facts, processes, and analysis methods, plus creative combinations of solution ideas.

As much as possible for the last few years I have been doing my classes *flipped*, ,
with you making contact with the basic data and exposition through the book, web notes, and videos, once or more, on your time. The more you can
read the text and my web notes or look at videos
to get basic facts and process recipes *before* class, the
more time we can spend in class on things you cannot get easily from a
book: asking and answering questions you raise in reading and homework,
the analysis of problems, and creatively applying basic ideas you are
learning to somewhat novel situations.

Please give me feedback on what constitutes the best use of your time for the limited class hours we have.

The algorithms in the book are in pseudo-code. Runnable versions in convenient languages are good. I will supply some algorithms in Python 3 and perhaps some in Java or C#.

The class is also blended: We will start the semester getting toi know each other and getting started in the classroom, with most Fridays online in Zoom. After about 6 weeks, other than for the midterm exam, we move online until the last couple of weeks of the course. Zoom keeps interaction easy. I will also record these online classes.

The following are legal statements you will find for any Loyola class doing class recordings, to assure your privacy:

In this class software will be used to record live class discussions. As a student in this class, your participation in live class discussions will be recorded. These recordings will be made available only to students enrolled in the class, to assist those who cannot attend the live session or to serve as a resource for those who would like to review content that was presented. All recordings will become unavailable to students in the class when the Sakai course is unpublished (i.e. shortly after the course ends, per the Sakai administrative schedule: https://www.luc.edu/itrs/sakai/sakaiadministrativeschedule/). Students who prefer to participate via audio only will be allowed to disable their video camera so only audio will be captured. Please discuss this option with your instructor. The use of all video recordings will be in keeping with the University Privacy Statement shown below:

Privacy Statement: Assuring privacy among faculty and students engaged in online and face-to-face instructional activities helps promote open and robust conversations and mitigates concerns that comments made within the context of the class will be shared beyond the classroom. As such, recordings of instructional activities occurring in online or face-to-face classes may be used solely for internal class purposes by the faculty member and students registered for the course, and only during the period in which the course is offered. Students will be informed of such recordings by a statement in the syllabus for the course in which they will be recorded. Instructors who wish to make subsequent use of recordings that include student activity may do so only with informed written consent of the students involved or if all student activity is removed from the recording. Recordings including student activity that have been initiated by the instructor may be retained by the instructor only for individual use.

This forces the consequence that during the semester you can *stream* class recordings while online, but you *cannot download* them for viewing later when offline.

Only you know the relative importance of any particular cell phone call,
and whether it is important for you to answer a call immediately rather
than later. I *do want* you to be respectful of my class and disrupt it
as little as is practical. If you get cell phone calls with fair
frequency, be sure to have the ring muted before coming to class. If you
rarely get calls, you might not mute it ahead, and your cell phone may
happen to ring. Get rid of the noise as soon as possible, and do not get
flustered. (I'll probably do that at least once.) I assume you will move
outside the classroom for a conversation. If you get fairly frequent
calls that you are likely to consider important answering, sit in a
place where your exit and re-entrance are as unobtrusive as possible.