cs-138 — The Downtime Ledger

FieldValue
idcs-138
difficultyFoundational
topicsreliability, aggregation, data
lecturelecture-14
estimated time5-minute attempt + 10-minute discussion
prerequisiteslecture-09 (aggregation), lecture-13 (dictionaries and sets)
objectiveturn a raw incident log into per-system reliability answers with an explicit double-count decision
solutionheld by the instructor; discussed after the attempt

Problem

The IT helpdesk logged last week's outages, one line per incident:

sys   start  end    cause
W1    Mon 09:10  Mon 09:40  network
W1    Mon 09:30  Mon 10:00  network
W2    Mon 09:20  Mon 09:50  power
DB    Tue 14:00  Tue 14:25  software
W1    Wed 08:00  Wed 08:30  power
W2    Wed 08:10  Wed 08:40  power
DB    Thu 16:45  Thu 17:15  software
W2    Fri 10:00  Fri 10:20  network

Two facts about the log: overlapping incidents on the same system can happen (the Monday W1 pair), and the helpdesk logs the reported cause.

Your deliverables:

  1. Total downtime per system — stating explicitly whether overlapping incidents are counted twice or merged, and why your choice fits the question "how reliable was each system?".
  2. Cause counts, as a small table (system × cause).
  3. Which system you would flag for investigation, justified by your table — one sentence.
  4. One question you would ask the helpdesk about how they log before trusting this table further.

If the problem is ambiguous anywhere, state the assumption you are making and carry on — a stated assumption is part of a good answer.

Examples

  1. — cause table — one flagged system — one logging question

Solve for the worked instance first. Then ask what would change if one number, name, or condition were replaced by something stranger.

What to notice

Discussion starter

After the solution is revealed, the class spends five minutes on this prompt: "Management asks for 'uptime' as a percentage. What extra number do you need beyond this log, and what denominator trap must you avoid?"

Constraints and assumptions

Hints and extension