Introduction
Imagine trying to store a large file on a disk, but the disk space is scattered in small pieces. Contiguous allocation solves this by placing the entire file in one continuous block of storage, making it easier and faster to access.
Think of a bookshelf where you want to place a long book that takes up several shelves in a row. If the shelves are all together, you can place the book easily. But if the shelves are scattered, you can't fit the book without breaking it.
┌─────────────────────────────┐ │ Disk Space │ ├─────────────┬───────────────┤ │ File A │ Free Space │ │ [Contiguous │ │ │ Blocks] │ │ ├─────────────┴───────────────┤ │ Fragmented Free Spaces │ │ [Small scattered blocks] │ └─────────────────────────────┘