FIT5202 Cheatsheet · Data Processing for Big Data

Monash University · Cheatsheet for the final exam. Monash Semester 2 final assessment period, 2–18 November 2026 (check your personal exam timetable). Full FIT5202 study guide →

A4 landscape · 7pt · 6 columns · ink + yellow · memory sheet2 sides · FIT5202 · Monash
FIT5202
Data Processing for Big Data
Faculty of Information Technology · Monash University · Semester 2, 2026
FIT5202 cheatsheet QR code – open the full FIT5202 study guide
Full guide + ask Sia
about FIT5202
SIDE 1/2   WHAT MUST BE IN YOUR HEAD · Volume → Complexity → VelocityClosed-book memory sheet45% final · Q1 MCQ + Q2–Q6 written

0 · Exam Mapcourse.json · brief

A1 15A2A 15A2B 15Q 5L 5FINAL 45
Assignment 1 — Analysing Road Safety Data15%
Assignment 2 Part A — Building ML Models15%
Assignment 2 Part B — Streaming Application15%
Weekly Quizzes (Weeks 2–11)5%
Lab Attendance (Sessions 2–11)5%
Final Examination45%

“Type: Closed Book” — FIT5202 Week 12 Recap 2026 slides, exam format (PDF_FIT5202_12_Recap_2026).

Final: e-assessment · 2h10m · scientific calculator · Weeks 1–12 · Q1 MCQ + Q2–Q6 written. Recite the rule, write the formula, show the path, interpret the output.

1 · Performance + PartitioningCh 1–2

same task, more processorsSpeed-up Sₚ = T₁/Tₚ · ideal linear Sₚ = p
Amdahl: Sₚ = 1 / [s + (1−s)/p]

bigger task + proportionally more resourcesScale-up = Tsmall / Tlarge · ideal = 1

QUERY → PARTITIONexact keyHASH → 1rangeRANGE → fewfull scanRR → allwrong attribute → ALL processors
Source redraw: partitioning × query determines processor activation.
MethodWinsLoses
Round-robineven loadno locality; all nodes
Hashexact match → 1range → all; skew
Rangeordered/range → selectedpopular range skews

Elapsed time is set by the slowest processor. Start-up, consolidation, interference, communication and skew make speed-up sub-linear. Zipf θ: 0 = no skew; 1 = highly skewed. Ordered partition → binary search; unordered → linear search.

Why parallel at all?

The five V’s are Volume (size), Variety (structured, semi-structured, unstructured), Velocity (batch to continuous streams), Veracity (trust) and Value (useful insight). FIT5202’s three themes are Volume (Weeks 1–4), Complexity/ML (Weeks 5–8) and Velocity/streaming (Weeks 9–11).

2 · Parallel JoinCh 3 · written

PARALLEL JOIN = MOVE → LOCAL JOINONE TABLE SMALLdivide Rbroadcast SBOTH LARGEhash both on keyRᵢ ⋈ Sᵢunion local results · watch skew
Source redraw: broadcast the small side; co-partition two large sides.

cost model — where it bites: choose planCtotal = CCPU + CI/O + Cnetwork
network/shuffle usually dominates

Local joinRuleUse
Nested loopcompare pairscostly fallback
Sort-mergesort both; mergealready sorted / large
Hashbuild smaller; probe largerequijoin workhorse

Divide-and-broadcast: split R into Rᵢ; replicate all S to each processor; Rᵢ ⋈ S is complete because every R row meets every possible S match. Per processor, an evenly split S sends and receives |Sᵢ|(N−1) records. If both sides are large, hash-partition both on the same join key instead.

Say it “I choose ___ because it minimises network traffic; then each processor performs ___ locally.” Named outer-join methods: ROJA, DOJA, DER; OJSO targets skew.

3 · External SortCh 4

pass counter — calculationN₀ = ⌈F/B⌉ sorted runs
Nⱼ₊₁ = ⌈Nⱼ/(B−1)⌉ until 1
Total passes = 1 sort pass + merge passes

Parallel sortBottleneck / move
Merge-allone final K-way merge bottleneck
Binary-mergepairwise pipelined merge
Redistribution variantsspread merge load; shuffle
Partitionedrange-redistribute → local sort; no merge; skew risk

Reserve one output buffer: fan-in is B−1, never B. Parallel partitioned sort: round-robin load for balance → range redistribute → independent local sort.

Five forms: merge-all; binary-merge; redistribution binary-merge; redistribution merge-all; partitioned sort. Redistribution spreads merge work but shuffles. Partitioned sort needs no final merge because ranges establish global order; bad boundaries create skew.

4 · Group-ByCh 4 · method choice

TWO-PHASE SUM GROUP-BYP1A:30 B:5partialsP2A:15 B:8C:3P3A:5 B:2C:7SHUFFLE PARTIALS BY KEY ↓A = 50B = 15C = 10ship summaries, not raw rows
Source redraw: local combine → key shuffle → final combine.
MethodFlowDecision
Traditionallocal → coordinatorsingle-node finish
Two-phaselocal partial → shuffle partials → finalbest when local reduction is large
Redistributionshuffle raw → local aggregatefew groups / little reduction

AVG trap: never average partial averages. Carry (sum,count); final AVG = Σsum/Σcount. The same network-cost logic used for joins decides which group-by wins.

5 · Featurisation PipelineCh 5

RAW ROW → NUMERIC FEATURESextracttransformselectassembleTransformer: transform(), no learningEstimator: fit() → fitted Transformerfit train; reuse identical stages on new data
Source redraw: ordered Spark ML Pipeline stages.
JobTools / output
Extract textCountVectorizer counts; TF-IDF weights; Word2Vec vectors; FeatureHasher
TransformTokenizer, stop-word removal, StringIndexer, OneHotEncoder
AssembleVectorAssembler → one features vector

tf-idf — feature weightingIDF(t,D)=ln[(|D|+1)/(DF(t,D)+1)]
TFIDF = TF × IDF

StringIndexer orders labels by frequency; One-Hot removes the false numerical order. Spark uses an N−1-dimensional vector for N categories. Train/test roles stay distinct: fit on training data; evaluate on held-out data.

Task gate: supervised data have labels—classification predicts a discrete label; regression a continuous value. Unsupervised data have none—clustering finds groups; association finds co-occurrence. Featurisation is Extraction + Transformation + Selection; the pipeline preserves the same order for training and later records.

6 · Decision TreesCh 6 · core calc

S: 9 Yes / 5 NoH = 0.2833Y / 2NH .2924Y / 0NH 0 · pure2Y / 3NH .292weighted H .209 → IG .074
Source redraw: the taught base-10 entropy split.

id3 — split scoringH(S)=Σ pᵢ log₁₀(1/pᵢ)
H(S,A)=Σ(|Sⱼ|/|S|)H(Sⱼ)
IG(S,A)=H(S)−H(S,A) → choose largest

  1. Compute parent entropy.
  2. For every attribute: child entropies → weighted entropy → information gain.
  3. Split on maximum gain; recurse until pure or stopped.

Depth judgement: too deep memorises noise (overfit); too shallow underfits. Limit maxDepth or prune. Random forest = bootstrap trees + feature subsets + majority vote; reduces one tree’s variance. Data parallelism partitions records; result parallelism grows tree nodes across processors.

7 · Classifier EvaluationCh 6

Pred +Pred −
Actual +TPFN
Actual −FPTN

Accuracy=(TP+TN)/all
Precision=TP/(TP+FP) — false alarms
Recall=TP/(TP+FN) — misses
F1=2PR/(P+R)

Fix the positive class first. On imbalanced data, accuracy can look excellent while the rare positive class is missed. Report precision, recall and F1, then state the FP/FN trade-off.

8 · k-MeansCh 7 · trace

INITIALISEk centroidsASSIGNnearestUPDATEmeanstop: no membership change
Source redraw: assign → update → convergence.

d(a,b)=√Σ(aᵢ−bᵢ)² · 1-D: |a−b|
centroid = Σ cluster points / count

9 · Collaborative FilteringCh 8

RATING MATRIX RMEMORY-BASEDcosine → weightneighbour scoreMODEL-BASEDR ≈ U×VALS factorsboth: cold start with no ratings
Source redraw: direct similarity versus learned latent factors.

user similarity — co-rated items onlysim(u,u′)=Σ rᵤᵢrᵤ′ᵢ / [√Σrᵤᵢ² √Σrᵤ′ᵢ²]

predict unseen ratingr̂ᵤᵢ = k Σ sim(u,u′)rᵤ′ᵢ
k = 1/Σ|sim(u,u′)|

  1. Restrict each user pair to co-rated items.
  2. Compute similarities.
  3. Use only neighbours who rated the target item; weight and normalise.
  4. Rank predicted unseen ratings for top-N.
ChoiceMeaning / scaling
User-basedsimilar users → borrow item ratings
Item-basedsimilar item columns → recommend
Matrix factorisationR(N×M) ≈ U(N×r)V(r×M)
ALSfix U solve V; fix V solve U; minimise squared error/RMSE

Sanity check: prediction must stay in the rating scale. Forgetting k can push it outside. New user/item → too few ratings: cold start.

10 · Method ChooserComplexity

labelled + discrete targetclassification
labelled + continuous targetregression
unlabelled groupsclustering
sparse user–item preferencesCF / ALS

Written move Name the task, define inputs/output, state the selection metric, show the update, give the stop/evaluation rule.

ALS + cold-start recall

model objectivemin Σ(rᵤᵢ − uᵤ·vᵢ)² over observed ratings

R is N users × M items; U is N×r and V is r×M, with r latent features. ALS makes the joint problem manageable by fixing U while solving V, then fixing V while solving U, alternating to reduce error. A predicted cell is the user-profile/item-profile dot product. Memory-based CF re-scans neighbours; factorisation learns compact profiles for scale.

11 · Kafka + WindowsCh 9

PRODUCERpublishTOPICP0: 0 1 2 3P1: 0 1 2append-onlyUSERfetchaddress = (topic, partition, offset)
Source redraw: Kafka offsets are per-partition sequence IDs.
TermRecall line
Topicnamed feed
Partitionparallel append-only log
Offsetunique increasing ID within partition
Brokerserver storing/replicating partitions
Consumertracks its own position; reads do not delete

Event time = produced at source; processing time = reaches processor. Delay/bursts separate them. Spark Structured Streaming follows producer → processor → consumer.

TUMBLING: slide = size[1–2][3–4][5–6]SLIDING: slide < size1–22–33–44–5
Source redraw: overlap controls reuse and output rate.

12 · Stream Join + ReductionCh 10–11

shj arrival ruleexpire old → probe OTHER table → emit → insert OWN

Two tables preserve partners arriving in either order. A window or watermark bounds otherwise unbounded state; older event-time state can be discarded. M-Join: expire, probe all other tables, then hash into own.

slide s vs window wclass
s = 1 recordoverlap, no reduction; moving average
1 < s < woverlap, with reduction
s = wtumbling, with reduction

Sensor arrays: same thing → Reduce over time then Merge sensors, or reverse. Different things require Normalize around the merge. Sampling and load shedding trade detail/accuracy for throughput.

State logic: stream–static buffers the streaming side; stream–stream retains both because either partner may arrive later. Window expiry bounds the two tables; a watermark advances an event-time threshold while tolerating some lateness.

https://www.asksia.ai/cheatsheet/monash-fit5202
v2 · 2026-10-24
Forward this to your tutorial groupShared by ________
Your exam is closed book: nothing printed goes in. Use this sheet to revise and self-test, not to carry.
Monash Semester 2 final assessment period, 2–18 November 2026 (check your personal exam timetable).
FIT5202
Self-Test Drills · Answer Paths + Traps
Data Processing for Big Data · Monash University · Semester 2, 2026
FIT5202 cheatsheet QR code – open the full FIT5202 study guide
Full guide + ask Sia
about FIT5202
SIDE 2/2   FIVE WORKED PATHS · judgement cards · classic traps · exam-morning planCover the answers firstSay → write → calculate → check → interpret

13 · Rapid Volume ChecksCh 1–4 drills

60 min · 10% serial · p=4 · 20% overheadserial6parallel54/4overhead+2.7total22.2speed-up = 60/22.2 ≈ 2.7sub-linear: 2.7 < 4
Source redraw: separate serial work before dividing.
If you see…Do / say
same workload; more nodesT₁/Tₚ → speed-up
task + resources grow togetherTsmall/Tlarge → scale-up
exact key on hash keyactivate 1 processor
range on hash partitionactivate all
query on non-partition attributeactivate all
one slow partitionskew controls elapsed time

Check: 4 processors, hash on customer_id. Equality =5051 → 1; range 2000–3000 → all 4; round-robin equality → all 4. Justify with grouping, not guesswork.

14 · Sort + Join ChecksCh 3–4

external sort: F=150 pages, B=8Pass 0: ⌈150/8⌉ = 19 runs
fan-in = B−1 = 7
Pass 1: ⌈19/7⌉ = 3
Pass 2: ⌈3/7⌉ = 1 → 3 passes

broadcast: N=4, |Sᵢ|=1000, |S|=4000send each = 1000(4−1)=3000
receive each = 4000−1000=3000
all transfers = 4×3000=12 000

Completeness comes from each Rᵢ meeting all S. Cost grows with N−1, so choose this only when S is small. Two large sides → hash both on the join key.

Trap scan B-way merge ✗; broadcasting the large side ✗; counting only sends, not receives ✗; claiming CPU dominates a shuffle-heavy join ✗.

14b · Group-By + Sort RecallCh 4 topic map

PromptFull-credit skeleton
two-phase SUMlocal partial sums → shuffle (key,sum) → final sum
two-phase AVGlocal (sum,count) → shuffle → Σsum/Σcount
partitioned sortround-robin load → range redistribute → local sort
merge-all weaknessone coordinator performs final K-way merge
redistribution benefitspreads merge load; pays network cost

15 · Worked 1 — Entropy + IGCh 6 worked

Given: S has 9 Yes, 5 No. Outlook branches: Sunny 3Y/2N, Overcast 4Y/0N, Rainy 2Y/3N. Use log₁₀.

PARENT → CHILDREN → GAINH(S)=(9/14)log₁₀(14/9)+(5/14)log₁₀(14/5)=0.283Hchildren=(5/14).292+(4/14)0+(5/14).292=0.209IG=0.283−0.209=0.074
Recomputed source values; pure Overcast contributes zero entropy.
  1. Parent: (9/14)(0.1924)+(5/14)(0.4472)=0.1237+0.1597=0.283.
  2. Sunny H=(3/5)log₁₀(5/3)+(2/5)log₁₀(5/2)=0.292. Rainy mirrors it; Overcast is pure → 0.
  3. Weighted entropy = (10/14)(0.292)=0.209.
  4. Gain = 0.074. Compute for every attribute; choose the largest.

Trap Base 2 rescales the numbers. In this course’s taught example, state and use base 10.

16 · TF-IDF + Pipeline RecallCh 5 worked

Three documents. “the” appears in all 3: IDF = ln(4/4)=0. “spark” appears in 1: IDF = ln(4/2)=0.693. In d1, TF=2 → TF-IDF = 2(0.693)=1.386. Rare across corpus + frequent in document = useful.

See XDo Y
common termIDF tends to 0
nominal categoryStringIndexer → One-Hot
mixed feature columnsVectorAssembler
learned vocabulary/modelEstimator.fit()
fixed row mappingTransformer.transform()

16b · Featurisation DecisionsCh 5 topic map

Raw field / needTool → result
token countsCountVectorizer → vocabulary-aligned sparse vector
discriminating textTF-IDF → common corpus terms down-weighted
semantic word relationWord2Vec → fixed-size word vectors; average for document
unordered labelStringIndexer then One-Hot to remove ordinality
many feature columnsVectorAssembler → one features vector

17 · Worked 2 — Classifier MetricsCh 6 worked

Given: spam positive; TP=40, FP=10, FN=5, TN=45; total 100.

PREDICTEDACTUALTP 40+ / +FN 5+ / −FP 10− / +TN 45− / −P uses FP · R uses FN
Source-derived confusion matrix; label the positive class first.

Accuracy=(40+45)/100=0.85
Precision=40/(40+10)=0.80
Recall=40/(40+5)=0.889
F1=2(.80)(.889)/(.80+.889)=0.842

Interpret: recall exceeds precision: the model catches most spam but accepts more false alarms. Accuracy alone can hide imbalance.

18 · Judgement CardsCh 6–7

If you see…Do / state
pure decision-tree branchH=0; leaf
candidate attributeslargest IG wins
tree perfect on train, weak on testoverfit → prune / reduce maxDepth
imbalanced labelsprecision, recall, F1; not accuracy alone
unlabelled numeric pointsk-Means; choose k by elbow
parallel centroid updatecombine sums and counts, not local means
single-tree high variancerandom forest: bootstrap trees + feature subsets; majority vote
parallel tree learningvertical = data parallelism; horizontal = result parallelism by tree nodes

Metric denominator Precision asks “of predicted positives?” → FP. Recall asks “of actual positives?” → FN.

18b · Tree + Cluster Oral CheckCh 6–7 FAQ

ID3 recital: entropy of current set → for each candidate, branch entropies → size-weighted average → parent minus average → split on maximum gain → recurse. A pure node has H=0. Pruning removes subnodes that do not improve generalisation; a random forest votes across bootstrap-trained trees and feature subsets.

19 · Worked 3 — k-MeansCh 7 worked

Given: D={2,3,8,10,15,18}, k=2, m₁=3, m₂=15; distance |x−m|.

238101518m₁=3m₂=15C1={2,3,8}C2={10,15,18}
Source redraw: nearest-centroid assignment on a 1-D line.
  1. Assign: 2,3,8 → C1; 10,15,18 → C2. At 8: 5<7; at 10: 7>5.
  2. Update: m₁=(2+3+8)/3=4.33; m₂=(10+15+18)/3=14.33.
  3. Reassign. At 8: 3.67<6.33; at 10: 5.67>4.33. Nobody moves → converged.

Trap “One update” is not proof of convergence: run the membership check after updating.

20 · Worked 4 — User CFCh 8 worked

UserMatrixInceptionInterstellarDune
Alice534?
Bob4255
Carol5334

alice–bobnumerator=5·4+3·2+4·5=46
denominator=√50·√45≈47.43
sim≈0.97

alice–carolnumerator=46; denominator=√50·√43≈46.37
sim≈0.99

k=1/(.97+.99)=0.510
r̂Dune=.510[(.97·5)+(.99·4)]
=.510(8.81)=4.49≈4.5

Both highly similar neighbours rate Dune well → recommend. Use only co-rated items for similarity, then neighbours who rated the target item.

SIMILARITY → NORMALISE → PREDICT.97, .99k=.5104.49must remain inside rating scale
Answer check: normalisation keeps the prediction in range.

20b · CF Judgement CardsCh 8 FAQ

If you see…Choose / explain
similar rating rowsuser-based CF

21 · Worked 5 — Windows + SHJCh 9–10 worked

Window data: t=1…6 values 10,20,30,40,50,60.

WindowIntervalsAverages
Tumbling size 2[1–2],[3–4],[5–6]15,35,55
Sliding size 2, slide 1[1–2],[2–3],[3–4],[4–5],[5–6]15,25,35,45,55

Write intervals before calculating. Tumbling has three outputs from six inputs; sliding overlaps and has five.

SHJ: r1, r2, s1, s3, r3r1r2s1s3r3each: probe other → emit → insert ownafter s1emit key 1after r3emit key 3final outputs: orderID 1 and 3
Source redraw: arrival order does not lose a match.
  1. r1: probe HTS ∅; insert HTR {1}.
  2. r2: probe HTS ∅; insert HTR {1,2}.
  3. s1: probe HTR → emit 1; insert HTS {1}.
  4. s3: no match; insert HTS {1,3}.
  5. r3: probe HTS → emit 3; insert HTR. Outputs: 1,3.

Why two tables? Whichever partner arrives first waits in its own table for the later tuple.

23 · Classic Trapsall chapters

WrongRepair
divide whole time by pseparate serial fraction first
“hash makes ranges local”hash localises equal keys only
fan-in Bfan-in B−1
average partial AVGscarry sum + count
entropy in base 2use taught log₁₀ example
accuracy onlyP/R/F1 for imbalance
centroids updated, stopreassign; check membership
cosine over missing cellsco-rated items only
omit CF normaliserdivide by Σ|sim|
insert then probe SHJprobe other, then insert own

Velocity quick-fire

Kafka: topics split into partitions; offsets increase only within one partition; address = (topic, partition, offset). Reads do not delete records; consumers track position. Brokers store/replicate partitions.

Windows: time-based windows fix duration while tuple count varies with arrival rate; tuple/count windows fix how many records enter. Tumbling has slide=size and no overlap. Sliding has slide<size, so a record can contribute to several outputs. List the intervals before aggregating.

22 · Reduction DrillCh 11 worked

REDUCE TIME → MERGE SENSORSA: 20,22,24mean = 22°CB: 21,23,25mean = 23°Cmerge = 22.5°C
Source redraw: same-thing sensor array, Reduce then Merge.

Window classification: 6-month rolling average sliding one record → overlap and no granularity reduction; outputs equal inputs. For sensors, Reduce A=(20+22+24)/3=22°C; Reduce B=(21+23+25)/3=23°C; Merge=(22+23)/2=22.5°C. For plain aligned averages, Merge-then-Reduce matches; rate, reliability or units can make order matter.

If you see…Do / say
same measured thingReduce/Merge in either taught order
different things/unitsNormalize around merge
arrival exceeds capacityload shed: accuracy ↔ throughput
late event-time tupleswatermark bounds tolerated lateness/state
unbounded stream joinwindow expiry bounds memory

24 · Exam-Morning Recitalstudy strategy

  1. Volume: speed-up vs scale-up; partitioning × query; join strategy + dominant network cost; sort pass recurrence; two-phase group-by.
  2. Complexity: pipeline roles; log₁₀ entropy/IG; confusion metrics; k-Means assign/update/stop; cosine + normalised prediction.
  3. Velocity: Kafka address; event vs processing time; tumble vs slide; SHJ probe-then-insert; watermark; reduction class.
  4. Cover every answer here. Recite the method, reproduce the formula, redo the numbers, then explain the result in one sentence.

Last check Direction words earn marks: same vs bigger task; exact vs range; small vs both large; partial vs raw shuffle; predicted vs actual; event vs processing time.

Closed-book retrieval sequence

For every method, say five things without looking: input → decision rule → calculation/update → stop condition → interpretation. For every comparison, name both alternatives and the switching condition: hash/range/round-robin; broadcast/disjoint; two-phase/redistribution; classification/clustering; memory/model CF; tumbling/sliding; same-thing/different-thing sensor arrays.

https://www.asksia.ai/cheatsheet/monash-fit5202
v2 · 2026-10-24
Forward this to your tutorial groupShared by ________
Your exam is closed book: nothing printed goes in. Use this sheet to revise and self-test, not to carry.
Monash Semester 2 final assessment period, 2–18 November 2026 (check your personal exam timetable).

Want one for YOUR exact syllabus?

Sia is your free desktop study agent. Drop your Monash University FIT5202 slides — Sia builds a sheet tailored to YOUR exam. Better than this library because it knows YOUR materials.

↓ Download Sia · Free