Chapter 9
Structured Data--Intermediate Techniques
9.0 Chapter Goals
9.1 Structured Data Revisited
Part A--Sets
9.2 Representation and Membership
9.2.1 Set Union
9.2.2 Set Intersection
9.2.3 Set Difference
9.2.4 Symmetric Set Difference
9.2.5 One Element at a Time
9.3 Set Comparisons
9.3.1 Set Equality and Inequality
9.3.2 Subset
9.3.3 Superset
9.4 Sets and the I/O Library
9.5 Sets at the Low Level
9.5.1 Bitsets
9.5.2 Packed Sets
9.6 An Extended Example
Part B--Records
9.7 Declaring and Assigning to Records
9.8 Using Records
9.9 Records and Arrays--Which, or Both?
9.10 Getting Physical With Records
9.10.1 RawIO in Non-Standard Modula-2
9.11 Records and Random Access Files
9.12 An Extended Example (Inventory)
9.12.1 Inventory with Raw Sequential I/O
9.12.2 Inventory with Raw Random I/O
9.13 Chapter Summary
9.14 Exercises
Contents