Unit 7 explained answers · unfinished learning resource · TMP-SCI-074. Attempt the Unit 7 tasks before using these keys. A valid witness proves existence; a complete case argument or independently checked enumeration supports an exact count. A failed attempt is not a negative certificate. Keep allowed relations, selected functions, labelled outcomes and model versions distinct. Formative scoring is not calibrated assessment or a decision about real people.
Readiness
R1. In worker order p,q, all functions are (1,1),(1,2),(2,1),(2,2). The middle two are injective. They differ at both labelled workers, so count as different functions even if p and q have identical available sets. Dividing by two would change the outcome definition.
R2. An injective function would give three distinct images in a two-element set, impossible. Each worker's nonempty set is a local fact; simultaneous distinctness creates the obstruction. The unused existence of another declared slot outside the allowed union would not help.
R3. One allowed pair is only a partial choice. Other workers may require its same slot, or remaining slots may be incompatible with their allowed sets. One must extend it to a complete injective allowed function or prove such an extension exists.
R4. Every full completion must occur in one branch, and no full completion may occur in two. Fixing the next worker's distinct slot values makes branches disjoint; including all allowed unused values makes them exhaustive. Each subcount must describe the resulting remaining problem correctly.
Guided practice
G1. Tuples (A,B,C,D) and (B,A,C,D) each assign all four workers once, use only listed pairs and have four distinct slot values. Example bad tuple (A,A,B,C) is counted by the product of individual option counts but assigns A twice. The two feasible tuples differ at p and q and therefore are distinct labelled functions. A count of edges or unordered slot sets would answer a different question.
G2. Without rC, p,q,r all have allowed slots in {A,B}; neighborhood size two is smaller than worker-subset size three. This pigeonhole obstruction proves no complete assignment. Every singleton still has at least one option, so singleton checks pass while the larger subset fails. The displayed certificate is enough; one need not test all subsets after finding a failure.
G3. If s=C, then r cannot use C and must use B. That leaves p and q only A between them, impossible. Equivalently, p/q's tight set forces both A,B, then r=C, then s=D. The supplied edge sC remains allowed locally; it just appears in no complete assignment of this original model. Removing it from a data table and changing the problem are conceptually different from proving it unused here.
G4. Branch r=B has zero completions because p,q then share only A. Branch r=C forces s=D, while p,q can take A,B in either order, giving two completions. These branches are disjoint and exhaustive because r's only options are B,C. Thus total zero plus two equals two, matching the p-first search. An r-first greedy run that stops after r=B would miss the successful branch.
G5. F(3,{C,D})=1: r=C then s=D. F(3,{B,D})=1: r=B then s=D. F(5,{D})=1 because all four workers have been processed and the empty remaining function has one realization; unused D is not assigned or permuted. The last state need not arise from the equal-sized initial Birch packet to have a well-defined base. Contrast F(3,{A,D})=0: r has no allowed slot there. The number of free slots alone is not a sufficient state.
G6. In order p,q,r,s, valid tuples are (1,2,4,3),(2,1,3,4),(2,1,4,3). The fourth unconstrained tuple (1,2,3,4) violates the conditional rule. Deleting r=3 globally would also remove valid (2,1,3,4). The rule depends on the combination p=1 and r=3, not on r=3 by itself.
Independent practice
I1. If p=1, q=2 forces r=3 and succeeds; q=3 leaves r with neither allowed unused value because r permits only 1,3. If p=2, q cannot be2 and must be3, leaving r=1. Hence tuples (1,2,3) and (2,3,1) are the two feasible assignments. Filtering all six permutations independently rejects the other four by at least one forbidden pair. The cases explicitly cover both p options and all subsequent q choices.
I2. Take X as all three workers. N(X)={1,2}, so three distinct required images cannot fit. Slot3 is isolated from workers in the relation graph and cannot be used by any allowed assignment. Equal declared group sizes alone do not supply allowed edges.
I3. r=3 and s=4 are forced; p/q fill 1,2 in two orders. Tuples (1,2,3,4),(2,1,3,4) are complete witnesses. They are different because worker labels matter. Identical domains do not make the workers one mathematical input.
I4. First worker has four choices, second three unused choices, third two, for 24. The recurrence branches identically and ends with F(4,{unused slot})=1. Multiplying by an extra factor for the unused slot would recount the same worker function. The unused slot's identity is already determined by the three selected values.
I5. Components are {p,q,1} and {r,2,3}. The first has two workers but only one slot; X={p,q} has neighborhood{1}, proving impossibility. All six vertices have positive degree. Total sizes are balanced, but local allowed capacity is not. Component counts and degree positivity are useful structural information, not a matching existence theorem.
I6. Histories p=1,q=2 and p=2,q=1 both leave free set{3,4}; their remaining completion counts are one and two. Use state (i,U,h), with h=true exactly when p=1 was selected. When r is processed, prohibit3 only if h is true. Update h on p's branch and otherwise retain it. After every worker is assigned, the empty completion contributes one provided the rule has not been violated; violated branches are pruned to zero. This state stores the specific past fact needed by the new constraint.
I7. Adding sA gives no new complete assignment. p and q still must consume A,B, leaving r=C and s=D. Thus sA cannot be used globally, and count remains two. Monotonicity says the old feasible set is contained in the new one; containment may be equality. It does not require a strict increase for every added pair.
I8. With only p2 unknown and q1 forbidden, q is forced to 2, so p must be1 regardless of whether p2 is allowed. Both lower and upper counts are one. If q1 is unknown too, the confirmed lower model still has one tuple(1,2), while the upper model with all four pairs has two: (1,2),(2,1). Actual count lies between one and two. The second tuple is feasible only if both uncertain pairs are allowed. The logical range does not assign probabilities to them.
Homework
H1. For next worker w_i, each complete assignment has a unique value x∈A(w_i)∩U. Removing that pair yields a completion of the remaining workers using U without x. Adding the pair back reverses the operation and preserves distinctness because x is excluded from the smaller completion. Different x values cannot describe the same full function. Their union includes every feasible completion. The empty assignment is a single function on an empty domain, so the terminal count is one. Induction on remaining worker count, applying this bijection to each branch, proves the recurrence. No local-choice product is used without collision control.
H2. All workers have options. The graph is connected: c joins every slot; a,b connect through slot 1; d connects through slots 2,3,4. Nevertheless X={a,b} has neighborhood{1}, so two workers cannot receive distinct allowed values. Connectedness describes alternating paths in the relation graph, not independent selected edges covering all workers. A spanning tree of that graph would not repair the shortage.
H3. A zero branch needs a stated partial assignment and an obstruction applying to its residual problem. A worker with no allowed unused slot is a singleton shortage; a larger subset with fewer residual neighbors than workers is a pigeonhole certificate. Either proves no completion of that branch. It proves global impossibility only if the branch represents all remaining cases, or every exhaustive branch is also certified impossible. An inconvenient branch has no such justification and cannot be silently assigned zero. A ledger should preserve branch choices, free set and witness subset or exhaustive subcase results.
Quiz key and anchors
Each item totals four. Credit correct reasoning even if written differently; do not infer omitted constraints from a matching final number.
Q1. Two assignments, (1,2,3) and (2,1,3). p,q form a tight subset consuming1,2, so r must take3. If r=2, p,q would have only1 available and could not both be assigned. Points: count/list2; tight/shortage reasoning2.
Q2. Exhibit worker subset X of size 4 with |N(X)|≤3; injectivity would need four distinct images there, contradicting pigeonhole. This proves the necessary direction and impossibility for this packet. It does not supply a proof of the general converse, which is outside the unit. Points: exact subset/neighborhood2; pigeonhole1; scope1. Do not claim that the all-subsets condition is mathematically false or insufficient; only its sufficiency is not proved/used here.
Q3. Terminal F(n+1,U)=1 even with two free slots: no workers remain, and the empty function is unique. A nonterminal state with no allowed unused value has an empty sum and contributes zero because the next worker cannot be assigned. Points: two values2; two explanations2.
Q4. Birch branch r=B blocks p,q from distinct slots, but r=C with p=A,q=B,s=D succeeds. Failure of one commitment does not eliminate other allowed commitments. Points: dead branch with obstruction2; valid alternative1; scope1.
Q5. No inconsistency. Adding pairs can leave the feasible set unchanged. In I7, p/q still consume A,B, so new sA never occurs in a complete assignment; count remains two. Points: monotonicity distinction2; complete example/reason2.
Q6. Check that both methods use the exact same correctly transcribed packet and labelled outcome convention; then ensure the second method independently covers possibilities and tests membership/distinctness rather than copying the first's branch list or filtering errors. Other relevant checks include independent base/boundary cases. Count agreement supports this finite mathematical result, not fairness, workload, legality or actual suitability. Points: two substantive checks2; verification limit and practical distinction2.
Project P1 explained audit
(a) Relation and meaning
Allowed pairs are A1,A2,B1,B2,C2,C3,C4,D3,D4,E4,E5. Worker degrees in A–E order are 2,2,3,2,2. Slot degrees in1–5 order are 2,3,2,3,1. Each side sums to 11, the allowed-edge count; combined degree sum 22 counts both endpoints per edge. A complete assignment is an allowed injective function from all five labelled workers to the five labelled slots, hence a bijection. Different worker values give different outcomes. Eleven edges is not eleven assignments.
(b) Exhaustive original count
X={A,B} is tight with neighborhood{1,2}. Thus A,B use1,2 in two orders. C must then use3 or4; D uses the other. E cannot use4 after C,D have filled3,4, so E=5. Two independent residual orders give2·2=4 assignments, and the reasoning proves every feasible assignment has this form.
In worker order A,B,C,D,E: (1,2,3,4,5) (1,2,4,3,5) (2,1,3,4,5) (2,1,4,3,5)
A distinct check would enumerate all 5!=120 slot permutations in that fixed worker order and retain a tuple exactly when its five entries belong to their corresponding allowed sets. Distinctness and coverage already hold for every permutation; the membership filter checks the relation. Do not prefilter to the four claimed tuples, which would make the check circular. A manual case proof remains the explanation even if a checker supplies corroboration.
(c) Local versus global
Allowed pairs C2 and E4 occur in no complete original assignment. C2 consumes a slot needed by the tight A/B pair, leaving both with only1 if C=2. E4 would prevent C,D from filling their necessary distinct3,4 slots after A,B fill 1,2. Every other listed pair occurs in at least one of the four displayed witnesses; check those witnesses explicitly rather than assuming it.
The greedy first choice C=2 is a legal single pair but leaves residual subset{A,B} with only slot 1. It has zero completions. This is not a contradiction to the four solutions, all of which use C=3 or4. Marking C2 as unusable in this original full model does not mean its input pair was forbidden, or that it remains unusable after a model change.
(d) Three carefully separated changes
Remove C3 only: A,B still consume1,2, so C must use4, D3 and E5. Count two, tuples(1,2,4,3,5),(2,1,4,3,5).
Also remove D3 from that reduced packet: now A/B have1,2; C has2,4; D only4. For X={A,B,C,D}, neighborhood is{1,2,4}, size 3 for four workers. This proves zero assignments. Every worker individually has an option; the subset certificate exposes the collective failure. E's options cannot add a slot usable by X.
Return to original packet and add A5 only. All four old assignments remain. If A uses 5, E must use4, D then3, C then2, and B then1. This gives exactly one new tuple(5,1,2,3,4). If A does not use5, it uses 1 or2 and the earlier four-case reasoning applies, so no other new assignments exist. Total five. Previously unusable C2 and E4 now both occur in the new tuple. Their original nonextendability was a fact about a specific complete model, not an intrinsic property of those pairs.
(e) Unknown A5
Confirmed lower relation has four assignments; upper relation adding A5 has five. Hence logical count range 4–5. Any of the four old tuples, for example(1,2,3,4,5), is a robust witness using confirmed pairs only. New tuple(5,1,2,3,4) is conditional on A5 being allowed. No likelihood or uniform randomness follows. If this were a real task, the missing fact would need verification before using that new pair; no such external action is assigned here.
(f) Example ledger
Model/version: original complete packet. First claim checked: “Eleven allowed edges means eleven assignments.” Evidence: assignments select five noncolliding edges, and tight-subset reasoning plus an independent permutation filter yields four functions. Repair: eleven relation edges, four complete labelled assignments. Changed test: adding A5 produces twelve relation edges but only five assignments. Remaining limit: counts describe the specified finite constraints, not fairness or actual operational suitability.
A learner who initially distinguished those counts can record a justified retention and a different cross-check. Do not invent a wrong draft. A good ledger identifies exactly which version supplied a count, keeps missing facts marked unknown, and names the certificate rather than reporting an unexplained number.
Project rubric anchors
- Relation/model,6: complete pair list2; worker/slot degree check2; precise labelled function and model conventions2.
- Original count/proof,9: tight subset3; residual exhaustive argument3; full tuple list2; independent-filter design1.
- Extendability/greedy,5: C2/E4 with reasons3; branch/global distinction2.
- Changed packets,8: deletion count 2; four-worker shortage2; added-edge five-count and unique new tuple 3; newly usable pairs1.
- Uncertainty/ledger/scope,8: correct logical bounds and robust witness3; honest traceable ledger2; changed test1; mathematical/practical scope2.
Illegal pairs, duplicate slots or omitted workers require repair even if the total happens to match. Partial credit identifies correct subarguments, not a certification threshold. No grade or course-completion state is stored.
Delayed transfer
D1. If x=1, then y=2 permits z=3 or4; y=3 permits only z=4. If x=2, y must be3 and z=4. The four injective tuples in x,y,z order are(1,2,3),(1,2,4),(1,3,4),(2,3,4). These cases exhaust both x choices and legal y choices. The unused stand is determined by the tuple and is not another independently chosen outcome.
Removing z4 leaves only(1,2,3), so count one. If z4 is unknown instead, confirmed lower count is one and upper count four. This logical range reflects a single unresolved pair, not four equally likely scenarios or a claim that every intermediate count can occur. Indeed this particular binary uncertainty permits only counts one or four. Neither a relation nor a valid injection supplies physical measurements, installation permission or accessibility evidence.