CS171 Teaching Slides


CS171 Teaching Slides

  1. Introduction

  2. Review of material in CS170

    Assignment 1: (Java Review - programming with arrays)


    End review

  3. Objects and Classes (Chapter 9 in Liang's textbook)

    Assignment 2: (Implement methods and constructors)


  4. Java packages (Chapter 9.8 in Liang's book)

  5. Inheritance and Polymorphism (Chapter 11 in Liang's book)

    Assignment 3: (inheritance, constructor and toString())

    Assignment 4: (polymorphism)


  6. Abstract classes and Interfaces (Chapter 13 in Liang's book)

  7. Generics: parameterized data type (Chapter 19 in Liang's book)

    Assignment 5: (generics and interfaces)



    Data Structures

  8. The Array Data Structure


  9. The stack data structure and its applications (Abbey's material - Liang's book uses linked list, no good)

    Assignment 6: (Infix to postfix conversion using a stack)





  10. The queue data structure and its applications (Abbey's material - Liang's book uses linked list, no good)


  11. Linked list (Chapter 24.4 in Liang's book discusses a slighly different kind of list - it also has a tail variable)) Assignment 7: (Inserting and deleting at position pos in the simple linked list)



    Algorithms

  12. How "good" is this algorithm ? --- Running time/Complexity Analysis (Chapter 22 in Liang's book)

    Assignment 8: (runtime analysis)


  13. Sorting Algorithms and their runtime analysis (Chapter 23 in Liang's book)

    Assignment 9: (implement Comparable<T> in some classes so they can be sorted by BubbleSort and SelectionSort)


  14. Hashing (hash table): implementation and runtime analysis (Chapter 27 in Liang's book)