Save size and write volume for a puzzle game

A puzzle game saves its state as 1200 records of 96 bytes each plus a 128-byte header. A save starts at launch (t=0t = 0 minutes) and every 3 minutes thereafter, recording the state at the moment it starts. Writing each file takes 30 seconds. The game writes each save to a temporary file and replaces the previous save only when the write finishes, so a crash during a write leaves the previous complete save on disk. Consider the first hour to be 0≤t<600 \leq t < 60 minutes. Using 1 MB = 1,000,000 bytes, find: the size of one save in bytes (whole number), the number of saves started during this hour (whole number), the total data written during this hour in MB (to two decimal places), and the worst-case amount of play lost in a crash after the launch save has finished, in minutes (to one decimal place).

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Persistent Data Questions: