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 May 2 2024 3:40 pm

attachments [paper clip]

  last modified size
TXT dictionary.py Thu May 02 2024 03:40 pm 1.1K
TXT linkedlist.py Thu May 02 2024 03:40 pm 1.3K