Homework5 (due Sat 26-Sep at 8pm)


Please note the homework policies in the syllabus.

Exercises

  1. Video-Guided Exercises
    Note that you must first carefully watch the video for each of these exercises. Do not skip the video, or you will spend far too much time on this part of the homework.
    • removeRowAndCol (mutating and nonmutating)(1)
    • isLatinSquare (2)
    • isLegalSudoku (2)

  2. Lecture-Guided Exercises
    We will carefully cover the solutions to these exercises in lecture or recitation. We strongly discourage you from attempting these problems prior to then.
    • wordSearch (1)
    • betterWordSearch1 (2)
    • nQueensChecker (2)
    • isKingsTour (3)
    • isBoxy (3)

  3. Unguided Exercises
    Notes:
    • These exercises do not include any sample solutions.
    • You may find that it is most efficient to not attempt these problems until after Thursday's lecture.
    • Do not just use AI to solve these. While AI is allowed, over-reliance on AI will severely impair your learning.
    • You will have to solve similar free-response problems (or perhaps slightly harder ones) on the quiz, which is on paper and without access to AI.
    Exercises:
    • isRectangular (1)
    • betterWordSearch2 (2)
    • insertRowAndCol (mutating and nonmutating) (2)
    • matrixMultiply (2)