Algorithms

Spring 2019
course
site

Thu Jan 31

Continue the discussion we started Tuesday of "abstract data types" (APIs) and "data structures" (implementations).

Discuss the homework assignment for Tuesday.

Look at related topics in the online text Problem Solving with Algorithms and Data Structures using Python.

We'll look at some code and work some examples in python for linked lists and trees.

And we'll at least start to talk about hash tables (dictionaries) and (probably) heaps. My current plan is to finish those topics next week.

in class

I worked up two examples of data structure implementations and APIs in python, a linked list and a dictionary. Both are attached. (The dictionary one didn't work in class, but is now fixed - I'd just left out the "return" in "return result").

https://cs.marlboro.college /cours /spring2019 /algorithms /notes /data1
last modified Thu April 25 2024 3:45 pm

attachments [paper clip]

  last modified size
TXT dictionary.py Thu Apr 25 2024 03:45 pm 1.1K
TXT linkedlist.py Thu Apr 25 2024 03:45 pm 1.3K