TactivergeLite

Lite / Intelligent Robotic Systems / Week 4

Week 4: Data structures

Term 1: Engineering Computation

This week you will

Lessons

  1. List, tuple, set or dict? Pick the right container · about 35 min
    Checking whether a part number is in a list of 100,000 parts takes up to 100,000 comparisons. With a set it takes about one. What changed?
  2. Stacks and queues: who goes next? · about 35 min
    A robot cell gets jobs faster than it can do them. Do you serve the newest job first, or the oldest? The answer changes everything.
  3. Breadth-first search: a queue explores a map · about 45 min
    Put a robot in a maze and flood it outwards one step at a time. Why does the first time the flood touches the goal give the shortest route?
← Week 3Week 5 →