This is the ground-floor page for the Working Set & Thrashing topic. We assume you have never seen any of this notation. We define each symbol in plain words, draw the picture it stands for, and say why the topic needs it — in an order where each idea rests on the one before.
Before any symbol, picture the two places your program's data can live.
RAM (physical memory) — the fast desk right in front of you. Small.
Disk (the swap area) — the slow shelf across the room. Huge.
Both are chopped into equal-sized chunks so the operating system can shuffle them cheaply.
Why the topic needs this: the whole working-set model is a story about which pages sit in which frames. Without the page/frame split there is no "should this stay in RAM?" question to answer. This connects directly to Demand Paging.
Every symbol later counts these, so we define it first.
Picture a program executing:
load X -> touches the page holding X
add Y -> touches the page holding Y
store X -> touches the page holding X again
Each arrow above is one reference. A reference is not a second, not a byte — it is one access event.
Why the topic needs it: the working-set window Δ is measured in these events, not in clock time. Getting this straight now prevents the classic "Δ is in seconds" mistake later.
Each number is which page that reference hit. The position in the list is the virtual time: the "5" in the fifth slot happened at t=5.
Why the topic needs it: this list is the raw input to every calculation in the parent note — computing ∣W∣, tracing faults, spotting locality. It is the program viewed purely through the lens of "what did it touch, and when?"
Now the first Greek symbol. Δ is spelled "delta" and here it is just a whole number.
Picture Δ as a sliding window of fixed width gliding along the reference string. It always covers exactly Δ entries (once we're past the start), and it moves right by one every time a new reference happens.
Two pieces of notation arrive together: the curly-brace set and the vertical-bar size.
Put together:
Worked micro-trace. Reference string 261577751, take Δ=5.
At t=5: the window holds pages 2,6,1,5,7 → all distinct → W={2,6,1,5,7}, so ∣W∣=5.
At t=7: the window holds 1,5,7,7,7 → distinct pages are 1,5,7 → ∣W∣=3.
Why the topic needs it:∣W∣ is the process's frame demand. Every allocation decision downstream is built on this single number.
Read it top-down: an access event defines virtual time and the reference string; page/frame gives the vocabulary of what moves; the window Δ slides over the string to build the set W; the set's size is the frame demand; summing demands gives D; comparing D to m is the whole topic.