Summer 2022 - CMPT 307 D100

Data Structures and Algorithms (3)

Class Number: 3429

Delivery Method: In Person


  • Course Times + Location:

    Tu 12:30 PM – 2:20 PM
    SWH 10041, Burnaby

    Fr 12:30 PM – 1:20 PM
    SWH 10041, Burnaby

  • Exam Times + Location:

    Aug 13, 2022
    8:30 AM – 11:30 AM
    SSCC 9001, Burnaby

  • Prerequisites:

    CMPT 225, MACM 201, (MATH 150 or MATH 151), and (MATH 232 or MATH 240), all with a minimum grade of C-. MATH 154 or MATH 157 with a grade of at least B+ may be substituted for MATH 150 or MATH 151.



Design and analysis of efficient data structures and algorithms. General techniques for building and analyzing algorithms (greedy, divide & conquer, dynamic programming, network flows). Introduction to NP-completeness.


The objective of this course is to introduce concepts and problem-solving techniques that are used in the design and analysis of efficient algorithms. This is done by studying various algorithms, algorithmic techniques, and data structures.


  • Introduction and Mathematical Preliminaries (Review): Models of Computation, Big-O Analysis
  • Searching and Sorting: Divide & Conquer Paradigm, Analysis of Recurrences, Master Method
  • Sorting and Order Statistics: Heapsort, Quicksort, Non-comparison sorts, Lower bounds, Median
  • Randomized algorithms, Average case analysis
  • Simple Data Structures: Lists, Stacks, Queues, Trees
  • Dictionaries and Priority Queues: (Balanced) Binary search trees, Heaps
  • Graphs: Representations, Path Searching, Spanning Trees
  • Amortized Analysis: Aggregate, Accounting, Potential Methods
  • Optimization Problems: Dynamic programming, Greedy algorithms
  • NP-Completeness



The course has a final examination, homework assignments, and quizzes or midterm. The grade distribution will be announced during the first week of classes.
Students must attain an overall passing grade on the weighted average of exams in the course in order to obtain a clear pass (C- or better).



Reference Texts:

Algorithm Design 

  • J. Kleinberg, E. Tardos
  • Addison-Wesley
  • 2006
  • 9780321295354


Introduction to Algorithms (3rd Edition) 

  • T.H. Cormen, C.E. Leiserson, R.L. Rivest, C. Stein
  • MIT Press
  • 2009

ISBN: 9780262033848

Registrar Notes:


SFU’s Academic Integrity web site is filled with information on what is meant by academic dishonesty, where you can find resources to help with your studies and the consequences of cheating.  Check out the site for more information and videos that help explain the issues in plain English.

Each student is responsible for his or her conduct as it affects the University community.  Academic dishonesty, in whatever form, is ultimately destructive of the values of the University. Furthermore, it is unfair and discouraging to the majority of students who pursue their studies honestly. Scholarly integrity is required of all members of the University.


Teaching at SFU in summer 2022 will involve primarily in-person instruction.  Some courses may be offered through alternative methods (remote, online, blended), and if so, this will be clearly identified in the schedule of classes. 

Enrolling in a course acknowledges that you are able to attend in whatever format is required.  You should not enroll in a course that is in-person if you are not able to return to campus, and should be aware that remote, online, or blended courses study may entail different modes of learning, interaction with your instructor, and ways of getting feedback on your work than may be the case for in-person classes.

Students with hidden or visible disabilities who may need class or exam accommodations, including in the context of remote learning, are advised to register with the SFU Centre for Accessible Learning ( or 778-782-3112) as early as possible in order to prepare for the summer 2022 term.