TactivergeLite

Lite / Intelligent Robotic Systems / Week 5

Week 5: Search and sorting

Term 1: Engineering Computation

This week you will

Lessons

  1. Halve it again: binary search · about 40 min
    A sorted catalogue lists a million part numbers. How many guesses do you need to find any one, or prove it isn't there?
  2. Insertion sort: tidy as you go · about 40 min
    Parts come off a line nearly in order of mass, with the odd one out of place. Which simple sort hardly has to do any work at all?
  3. Sort once, search many: when sorting pays · about 35 min
    Sorting 10,000 part numbers costs work up front. After how many lookups has it paid for itself?
← Week 4Week 6 →