GPA Guarantee: Score A+ under Finals

Lecture Transcription |LMS sync |Live Tutor Q&A
50% OFFAll plan

FIT1058 Cheatsheet · Foundations of Computing

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

A4 landscape · 7pt · six columns per side · revision and self-test2 sides · FIT1058 · Monash
FIT1058
Foundations of Computing
Monash University · Semester 2, 2026 · Undergraduate
FIT1058 cheatsheet QR code – open the full FIT1058 study guide
Full guide + ask Sia about FIT1058
SIDE 1/2   DEFINITIONS → FORMULAS → DECISION RULES → CHECKSEXAM REVISION SHEETFinal assessment 40% · component threshold 45%

0 · Exam MapCOURSE · BRIEF

Q 10A1 10MST 15A2 25Final 40%

Quizzes 10% · Assignment 1 10% · Mid-semester test 15% · Assignment 2 25% · Final assessment 40%

Permitted materials: not confirmed for this offering in the course materials we hold — check the exam instructions on the LMS.

ThresholdWhereConsequence
45%Final assessmentFailed hurdle: NH; maximum unit mark 45
45%In-semester total
50%Overall unit markRequired to pass

The final is an examination-period assessment. Operational details remain controlled by the current institutional instructions.

1 · Universal Answer PathCOURSE STRATEGY

declaredomaintranslatesymbolschoosemethodjustifystepstest +interpretedge case · negationcounterexample · conclusion
Figure 1. The recurring source-grounded solution path.
Prompt signalFirst moveLast check
Collection / overlapName sets and universeDisjointness, finiteness
Mapping / relationState domain and codomainDefinition for arbitrary elements
“For every” claimChoose proof structureBoundary or counterexample
Counting / chanceDeclare outcomesOrder, repetition, conditioning
NetworkDeclare graph conventionDirectedness, loops, weights

What a complete line earns

Definition: identify the object and its declared universe or domain. Translation: separate quantities supplied by the prompt from quantities derived. Operation: write the rule before substituting. Justification: preserve direction, indices and conditions line by line. Stress-test: try the boundary, negation or a counterexample. Interpretation: answer in the language of the prompt, not merely with a symbol or number.

The final rewards the same transferable discipline across topics: declare → translate → choose → justify → test → conclude. If a later line fails, repair the first unsupported move rather than copying a complete solution.

Exam cue Marks are lost when natural language, symbols and proof drift apart. Definitions do the checking.

2 · Sets & Inclusion–ExclusionC1

Set: well-defined collection of distinct objects. Subset: every element of one set belongs to another. Power set: all subsets, including ∅ and the set itself.

Two-set inclusion–exclusion|A ∪ B| = |A| + |B| − |A ∩ B|
Subtract the intersection once: it was counted in both cardinalities.

SETsubsetpower setjustifiedresult
Figure 2. Source figure redrawn for one-column recall.
TaskWriteCheck
TranslateUniverse; membership; named setsEvery element is eligible
Operate∪, ∩, subset relationOverlap counted once
RefuteOne valid counterexampleState corrected condition

Control the universe, finiteness and disjointness assumptions. A numerical answer without those conditions can invoke the wrong counting identity.

3 · Functions & RelationsC2

Function: each domain element is assigned exactly one codomain element. Injective: distinct domain inputs map to distinct outputs. The declared domain and codomain control injectivity and surjectivity.

Composition(g ∘ f)(x) = g(f(x))
Apply f first, then g; the intermediate codomain/domain must be compatible.

each inputone outputdistinct indistinct outdomain ↔codomainrelation: reflexive + symmetric+ transitive ⇒ partition
Figure 3. Function and equivalence-relation definition tests.

An equivalence relation is reflexive, symmetric and transitive; therefore it partitions a set. To earn the conclusion, check all three laws for arbitrary eligible elements—not only examples.

PropertyDefinition-led test
FunctionEvery domain input receives exactly one codomain output.
InjectiveDistinct domain inputs must have distinct outputs.
ReflexiveEach eligible element is related to itself.
SymmetricReverse every related pair.
TransitiveChain two related pairs through the middle element.

4 · Pick the Proof MethodC3

MethodUse whenNon-negotiable
DirectDefinitions turn assumptions into conclusionName the final definition
Contrapositive¬Q gives a cleaner route to ¬PIt is equivalent to P → Q
ContradictionNegating the claim exposes an impossibilityIdentify the contradiction
InductionUniversal statement indexed by successive integersBase + hypothesis + step
shape of claim?definitionsalignimplicationawkwardindexeduniversaldirect / contra.induction
Figure 4. Let the claim’s structure choose the proof.

Induction checkpointBase: verify P(first index).
Hypothesis: assume P(k) for an arbitrary eligible k.
Step: use that assumption to prove P(k+1).
Conclusion: the stated range follows.

P(k) ⇒ P(k+1) is not enough alone. Checking several cases, asserting the hypothesis, or restating the target does not prove a universal statement.

Induction line-by-line

Write the first eligible index and verify it. State the induction hypothesis exactly, including its range. In the step, begin with the P(k+1) expression and show where P(k) is used; do not assume the line being proved. Finish by stating that the base case and implication cover the declared range.

FailureWhy it fails
Checks k=1,2,3 onlyFinite evidence is not a universal proof.
Assumes P(k+1)The target has been smuggled into the premise.
Algebra ends without definitionThe conclusion is not connected back to the claim.

5 · Proof Quality AuditC3 FAQ

AuditQuestion to ask
DomainAre all variables and eligible values declared?
DirectionDid I prove the requested implication, not its converse?
GeneralityAre the elements arbitrary rather than hand-picked?
DependencyDoes each line follow from a definition, assumption or established result?

6 · Propositional LogicC4

Proposition: a declarative statement assigned a truth value. Logical equivalence: expressions match under every valuation. Normal form: a standardised form such as conjunctive or disjunctive normal form.

Implication eliminationp → q ≡ ¬p ∨ q
The implication is false only when p is true and q is false.

pqp → q¬p ∨ q
TTTT
TFFF
FTTT
FFTT
translateclaimeliminate→compareall rowsstateequiv.implication ≠ converse ≠ biconditional
Figure 5. Equivalence demands every truth row.

Do not swap implication, converse and biconditional. Their truth conditions differ even if the same propositions appear.

7 · Predicates & QuantifiersC5

Predicate: an open statement whose truth depends on variables from a declared domain. ∀ claims every object; ∃ claims at least one object.

Quantifier negation¬∀x P(x) ≡ ∃x ¬P(x)
A universal claim fails exactly when a counterexample exists in the declared domain.

negationmoves inswitch∀ ↔ ∃negatepredicatepreserve variable domains
Figure 6. Negate scope, quantifier and predicate together.

Moving or swapping quantifiers can change meaning even when the same predicates appear. Write the domain beside the first translation.

ReadWrite / test
“Every object has…”Start with ∀ over the declared object domain.
“There exists…”Start with ∃; one valid witness establishes it.
“Not every…”Use ∃ and negate the predicate; seek a counterexample.
Nested claimKeep the original order until negation switches each quantifier.

8 · Sequences & SeriesC6

Sequence: a function from an ordered integer index set to values. A recurrence relation defines terms from earlier terms plus initial conditions. A geometric series has a constant ratio.

Finite geometric sumΣ from i=0 to n−1 of arⁱ = a(1−rⁿ)/(1−r)

sequencegeometric seriesrecurrence + baseindex first
Figure 7. Index and base conditions define the object.
Before summingState explicitly
Index rangeFirst and last exponent; number of terms
Geometric structureFirst term a; common ratio r
RecurrenceInitial value(s) and valid index
AuditGenerate early terms and compare

Count terms separately from reading the largest exponent. Off-by-one indexing or a missing initial value defines a different sequence.

Fast verification: expand the first two or three terms from the stated index and compare them with the prompt. For a recurrence, confirm every required initial condition before generating a later term. For a geometric sum, identify a, r and n independently; only then substitute.

9 · Combinatorial CountingC7

The multiplication principle multiplies options at sequential independent stages. A permutation is ordered; a combination is an unordered selection of fixed size.

CombinationC(n,k) = n!/[k!(n−k)!]

does order matter?YES: arrangeNO: choosepermutationcombination
Figure 8. Name sameness before selecting a rule.

Then ask: repetition? exclusions? overlap? Never divide or multiply by factorials without identifying the symmetry; that is the source’s stated over-/under-counting trap.

Counting auditQuestion
OutcomeWhat exactly counts as one distinct result?

10 · Number TheoryC8

Divisibility: a divides b when b = ak for some integer k. The greatest common divisor is the largest positive integer dividing both. Congruence: equal integer remainders modulo a positive modulus.

Euclidean recurrencegcd(a,b) = gcd(b, a mod b)
Repeat until remainder 0; take the last non-zero remainder.

dividea by breplace(a,b)remainderzero?
Figure 9. Each remainder preserves common divisors.

Modular cancellation is conditional. Division and cancellation rules over integers do not always transfer unchanged modulo composite numbers.

11 · Discrete ProbabilityC9

Sample space: all outcomes in the model. Conditional probability: restrict attention to cases where another event occurs. Independence: learning one event does not change the probability of the other.

Bayes’ ruleP(A | B) = P(B | A)P(A) / P(B)

prior P(A)likelihoodtotal P(B)posterior P(A | B)direction matters
Figure 10. Prior × likelihood, then normalise.
Do not confuseDefinition check
DisjointCannot occur together
IndependentOne does not change the other’s probability
P(A|B) vs P(B|A)The restricted population reverses

12 · Graphs & TreesC10

A graph is vertices plus edges under a stated convention. A path obeys its movement rules. A tree is connected and acyclic; equivalently, every vertex pair has a unique simple path.

connected · acyclic · unique simple paths
Figure 11. Tree tests need graph conventions first.
asksia.ai/cheatsheet/monash-fit1058 · Full FIT1058 study guide →
Forward this to your tutorial group · Shared by ________
AskSiav2 · 2026-10-25
Monash Semester 2 final assessment period, 2–18 November 2026 (check your personal exam timetable).
Check your exam instructions on the LMS for what you may bring; use this sheet to revise and self-test.
FIT1058
Worked Drills, Traps & Rapid Recall
Foundations of Computing · Monash University · Semester 2, 2026
FIT1058 cheatsheet QR code – open the full FIT1058 study guide
Full guide + ask Sia about FIT1058
SIDE 2/2   FIVE WORKED ROUTES · IF YOU SEE X → DO Y · CLASSIC TRAPS · EXAM-MORNING PLANSELF-TEST SIDEAnswers stay hidden until your final line

W1 · Inclusion–ExclusionC1 WORKED

Prompt. 28 coding students, 19 robotics students, 7 in both. How many are in at least one?

CR2171228 + 19 − 7 = 40
Figure 12. Overlap is counted once, not twice.
  1. Name sets C and R.
  2. Use |C ∪ R| = |C| + |R| − |C ∩ R|.
  3. Compute 28 + 19 − 7 = 40.
  4. Audit: 21 only coding + 7 both + 12 only robotics = 40.

Answer40 students are in at least one club.

Trap 28 + 19 = 47 double-counts the seven students in the intersection.

Rapid Set / Relation ChecksC1–C2

If you see…Do this
“always” + set identityTry overlap, ∅ and equal sets; one counterexample refutes.
Mapping diagramFirst test: each input has exactly one output.
“Injective?”Test whether distinct inputs can share an output.
“Equivalence?”Prove reflexive, symmetric and transitive separately.
a ~ areflexivea ~ b ⇒ b ~ asymmetrica~b,b~c⇒ a~call three ⇒ equivalence classes
Figure 13. Three obligations, one partition conclusion.

Relation audit: divisibility by 3

On integers define a~b when 3 divides a−b. Reflexive: a−a=0 is divisible by 3. Symmetric: if 3 divides a−b, it also divides b−a. Transitive: if 3 divides a−b and b−c, it divides their sum a−c. Therefore the relation is reflexive, symmetric and transitive and partitions the integers into three residue classes.

Use arbitrary integers throughout. Checking 1~4 or 2~5 illustrates the rule but does not prove a relation law.

Set errorDiagnostic repair
Union answer exceeds |A|+|B|Recheck signs and the declared universe.
Overlap not visibleSketch two regions and label intersection first.

W2 · Direct ProofC3 WORKED

Prompt. Prove: if n is odd, then n² is odd.

n oddn=2k+1square +expandfactor as2m+1definition closes proof:n² is odd
Figure 14. Algebra earns meaning only at the definition.
  1. Let n = 2k + 1 for integer k.
  2. n² = (2k + 1)² = 4k² + 4k + 1.
  3. n² = 2(2k² + 2k) + 1.
  4. Since 2k² + 2k is an integer, n² has the form 2m + 1.

AnswerTherefore n² is odd by the definition of odd.

Logic & Quantifier DrillsC4–C5 WORKED

PromptAnswer path
Rewrite p implies q using only ¬ and ∨.It fails only at T,F → compare four rows → p → q ≡ ¬p ∨ q.
Negate: every user remembers some password.Switch ∀ user to ∃ user; switch ∃ password to ∀ password; negate remembers.
∀ user ∃ password : remembersoriginal scope and domains∃ user ∀ password : does not remembernegated statement
Figure 15. Switch each quantifier; negate the predicate.

Proof and logic failure modes

Faulty moveRepair
Proves several examplesReturn to arbitrary eligible elements or give a counterexample if refuting.
Uses converse of P→QWrite P, Q and the requested direction before choosing a method.
Declares “equivalent” after one rowCompare all four valuations.
Negates predicate onlyMove negation through scope, switching every crossed quantifier.
Forgets base caseState and verify the first eligible index.

Self-test: cover the answer column. For each faulty move, explain whether it is a translation, calculation or interpretation error, then write the first corrected line. Repair the earliest failure.

Trap Negating words but leaving ∀/∃ unchanged changes the intended statement incorrectly.

W3 · Geometric SumC6 WORKED

Prompt. Find 1 + 2 + 4 + … + 2⁹.

2⁰2¹2²2³2⁴2⁵2⁶2⁷2⁸2⁹10 terms · a=1 · r=2(1−2¹⁰)/(1−2)=1023
Figure 16. Largest exponent 9 still means ten terms.
  1. Recognise a = 1, r = 2.
  2. Indices 0 through 9 give n = 10 terms.
  3. Apply a(1−rⁿ)/(1−r).
  4. (1−2¹⁰)/(1−2) = 2¹⁰−1 = 1023.

Answer1023

Counting Judgement CardsC7

If you see X→ Do Y
Stages with independent choicesMultiply the number of options at each stage.
Ordered arrangement without replacementUse a permutation structure.
Unordered k-person groupUse C(n,k).
Restrictions / forbidden casesDefine valid outcomes before counting.
Possible symmetrySay what makes two outcomes identical before using factorials.
8 studentschoose 3order doesnot matter8!/(3!5!)= 5656 distinct teams
Figure 17. Guide check: C(8,3)=56 teams.

Trap 8×7×6 counts the same three-person team in multiple orders; the combination denominator removes that symmetry.

Changed-scenario checks

For the series, change only the last exponent and recount the indices before touching the formula. For the team prompt, ask whether roles are introduced: once outcomes are distinguished by role, the “order does not matter” decision must be reconsidered. For either problem, state the object being counted or summed before choosing notation.

CheckSeriesCounting
ObjectOrdered indexed termsDistinct outcomes
StructureConstant ratioStages / arrangement / selection
BoundaryFirst and last indexSmall n or k
Primary trapOff-by-oneUnstated symmetry

W4 · Euclid’s AlgorithmC8 WORKED

Prompt. Find gcd(252,105).

252 = 2×105 + 42105 = 2×42 + 2142 = 2×21 + 0last non-zero remainder = 21
Figure 18. Remainders descend to zero.
  1. 252 = 2×105 + 42.
  2. 105 = 2×42 + 21.
  3. 42 = 2×21 + 0.
  4. The last non-zero remainder is 21.

Answergcd(252,105) = 21

Audit 21 divides 252 and 105. Every remainder step preserves the common-divisor set.

Modular & Relation TrapsC2 · C8

TrapRepair
Cancel a common factor modulo a composite number automatically.Return to the definition of congruence; ordinary integer cancellation rules do not always transfer.
Check a~b on selected examples only.Use arbitrary eligible integers for each relation law.
Forget the modulus or change it mid-solution.State the positive modulus with each congruence chain.
Stop Euclid before remainder 0.Continue; report the last non-zero remainder.
…−3,0,3…class 0…−2,1,4…class 1…−1,2,5…class 2a ~ b when 3 divides a−b
Figure 19. Modulo 3 partitions integers into three classes.

Euclid self-checks

At every line, the dividend equals quotient×divisor + remainder. The remainder must be smaller than the divisor. When the remainder reaches zero, the current divisor—not zero—is the gcd. Verify the reported gcd divides both original integers.

Congruence discipline: retain the positive modulus beside the statement, translate congruence into equality of remainders, and resist importing ordinary division or cancellation without checking that it remains valid for the modulus. Composite moduli are the stated warning case.

LineInvariant / decision
a = qb + rReplace (a,b) by (b,r).
r ≠ 0Continue the algorithm.
r = 0Previous non-zero remainder is the gcd.

W5 · Bayes / Base RateC9 WORKED

Prompt. 1% of files are malicious. A detector catches 90% of malicious files and falsely flags 5% of benign files. Find P(malicious | flag).

M 0.01B 0.99flag 0.90no flag 0.10flag 0.05no flag 0.950.0090.0495P(M|flag)=0.009/0.0585≈15.4%
Figure 20. Both paths contribute to the flag total.
  1. Malicious and flagged: 0.01×0.90 = 0.009.
  2. Benign and flagged: 0.99×0.05 = 0.0495.
  3. Total flagged: 0.009 + 0.0495 = 0.0585.
  4. Posterior: 0.009 / 0.0585 ≈ 0.154.

AnswerP(malicious | flag) ≈ 15.4%

Trap P(flag | malicious)=90% is not P(malicious | flag). The base rate changes the denominator.

Graph Rapid CheckC10 WORKED

Claim. A connected undirected graph has 9 vertices and 8 edges. Is it necessarily a tree?

9 vertices · 8 edges · connected · acyclic
Figure 21. Edge count works with connectivity.

Answer: yes, under the stated undirected graph convention: n=9 and m=8=n−1, while connectivity excludes separate cyclic and isolated structure. Never use the edge count without the stated condition.

Graph wordWhat must be visible
PathA sequence obeying the graph’s movement rules.
ConnectedEvery relevant vertex pair is reachable.
AcyclicNo cycle occurs under the declared convention.
TreeConnected + acyclic; unique simple paths.
Weighted / directedState what edge direction or weight changes.

Graph audit order: declare directed or undirected, then loops/parallel edges/weights, then test the requested property. The theorem comes after the convention.

Method ChooserC1–C10

Question stemMethodMandatory check
“How many in either set?”Inclusion–exclusionIntersection subtracted once
“Is this a function / injective?”Apply definitions to domain and codomainAll eligible inputs
“Prove P→Q”Direct or contrapositiveDirection preserved
“For all n…”Induction if successor structure fitsBase and step
“Equivalent?”Compare every truth valuationNot just one row
“Negate ∀/∃”Switch quantifiers; negate predicateDomains unchanged
“Sum a, ar, …”Finite geometric sumIndex count
“Select k, order irrelevant”CombinationOutcome sameness
“Find gcd”Euclidean algorithmLast non-zero remainder
“Probability after evidence”Bayes’ ruleCondition direction + total evidence
“Tree?”Connectivity / acyclicity / edge testGraph convention
retrieveclassifyexecuteverifycounter-caserevise
Figure 22. Retrieval improves through changed counter-cases.

Classic TrapsALL FAQ

  • Domain omitted: truth, function properties and quantifiers become ambiguous.
  • Evidence mistaken for proof: checked examples do not establish a universal.
  • Converse drift: proving Q→P does not prove P→Q.
  • Index drift: exponent 9 can coexist with ten terms when indexing begins at 0.
  • Counting by reflex: factorials appear before order and symmetry are defined.
  • Conditional reversal: likelihood is reported as posterior.
  • Graph convention omitted: a theorem is applied despite directedness, loops, parallel edges or weights.

Exam-Morning PlanCOURSE STRATEGY

PassAction
1 · ReciteTen definitions and ten displayed formulas without notes.
2 · ClassifyFor each prompt, name method before calculating.
asksia.ai/cheatsheet/monash-fit1058 · Full FIT1058 study guide →
Forward this to your tutorial group · Shared by ________
AskSiav2 · 2026-10-25
Monash Semester 2 final assessment period, 2–18 November 2026 (check your personal exam timetable).
Check your exam instructions on the LMS for what you may bring; use this sheet to revise and self-test.

Want one for YOUR exact syllabus?

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

↓ Download Sia · Free