Algorithms
and
Data
Structures

Spring 2022
course
site
-->

May 16

Questions about anything?

I hope you're hard at work on your final projects ...

This week: a few classic problems, looking at code and discussing the details. Today, the "N queens problem" (several different sorts of searching); Thursday some "dynamic programming" with the "making change" problem and perhaps others.

N queens

We'll work through my code/n_queens, perhaps adding in some diagnostic print statements to see what's going on.

Here are some places to read about this.

We talked a bit about python's "generator" syntax, and I showed a short example ... which is attached.

https://cs.bennington.college /courses /spring2022 /algorithms /notes /may16
last modified Mon May 16 2022 3:02 pm

attachments [paper clip]

  last modified size
TXT generator.py Mon May 16 2022 03:02 pm 261B