Unfinished learning resource · TMP-SCI-074. Units 1–8 are available. Whole-course validation remains unfinished. No completed semester, academic credit, accreditation or demonstrated mastery is claimed. The retained week-12 allocation is twelve learner hours, an unpiloted estimate. Specialist, learner, accessibility and assessment-reliability evidence remain outstanding.
This unit connects earlier counting, functions/relations, recursive cases and graphs in a single finite assignment model. All people-like labels below are fictional mathematical objects. No actual staff schedule, employment decision, access permission, account, payment or private data is used. Work locally on paper or in an existing editor. Lists replace every diagram; programming is optional and unnecessary. Attempt tasks before opening the separate explained answers, keeping an honest correction or justified-retention record.
Preparation and outcomes
Use Units 1–2 for labelled outcomes, products, disjoint cases and pigeonhole reasoning; Unit 3 for recursive definitions and state refinement; Unit 4 for relations/functions and equivalence; Units 5–6 for explicit graph carriers, components and constructive certificates. Those prerequisite units are available in this reader. General matching/flow theorems, weighted optimization and runtime guarantees are outside scope.
- O1. Translate a supplied constraint packet into a finite relation and precise assignment function.
- O2. Construct and verify a feasible assignment or a valid impossibility certificate.
- O3. Derive and use an exhaustive disjoint-case recurrence, preserving labels and empty cases.
- O4. Distinguish a failed greedy branch, a local allowed pair and a globally extendable assignment.
- O5. Reconcile independent counts, changed constraints, unknown entries and model limitations.
Readiness
R1. With workers {p,q} and slots {1,2}, list all functions from workers to slots and identify the injective ones. Why are the two injective assignments distinct when workers are labelled?
R2. Three workers each require a different slot from {1,2}. Give a pigeonhole argument for impossibility even though each worker individually has an option.
R3. A relation lists allowed pairs. Why does membership of (p,1) not by itself prove that every worker can be assigned a distinct slot?
R4. If a recursive count partitions completions by the slot chosen for the next worker, what must be shown before adding the subcounts?
Session A. Define the outcomes before counting
1. An allowed relation is not yet an assignment
Let W be a finite labelled worker set and S a finite labelled slot set. An allowed relation R⊆W×S gives every permitted worker-slot pair for this fictional model. For each worker w, write A(w)={s∈S:(w,s)∈R}. A complete feasible assignment is a function f:W→S such that f(w)∈A(w) for every worker and f is injective: different workers receive different slots. Every worker must receive exactly one slot. Some slots may remain unused if |S|>|W|.
When |W|=|S|, an injective assignment uses every slot and is a bijection. This conclusion follows for finite sets of equal size; it is not an extra independent choice. Two functions differ if at least one labelled worker receives a different labelled slot. Swapping p and q is not the same outcome unless a separate quotient rule is explicitly introduced; this unit does not identify workers with equal allowed sets.
The packet concerns one simultaneous allocation. It supplies no durations, capacities greater than one, preferences, authority or uncertain attendance. A slot can serve at most one worker. Changing any of those assumptions changes the mathematical problem. A complete allowed table treats unlisted pairs as forbidden in the model; a partial observation would require a different uncertainty statement.
2. A bipartite graph makes the same relation visible
Represent W and S as two disjoint vertex groups, with an undirected edge between w and s exactly when (w,s)∈R. Such a graph is bipartite: every edge crosses between the groups, never within either. If labels could coincide, tag them as worker or slot so they remain distinct vertices. This representation does not create reverse permission; it encodes the same allowed pair as an undirected adjacency.
A matching is a set of edges with no shared endpoint. A feasible assignment corresponds to a matching covering every worker. If the two groups have equal size, it covers every vertex and is called a perfect matching. These are definitions, not an algorithm or existence theorem. A matching that covers only some workers is not a complete assignment. A large matching found by a trial is not automatically maximum.
Counting worker degrees counts allowed pairs, not assignments. Summing degrees over both groups counts each edge twice, as in Unit 5. Graph connectedness answers whether vertices are linked by alternating worker/slot steps; it does not ensure a complete matching exists.
Session B. A small packet with exact certificates
3. The Birch assignment packet
Workers are p,q,r,s; slots are A,B,C,D. The COMPLETE allowed sets are:
p:{A,B}; q:{A,B}; r:{B,C}; s:{C,D}.
Diagram A, complete text equivalent: put p,q,r,s on one side and A,B,C,D on the other. Edges are pA,pB,qA,qB,rB,rC,sC,sD. There are eight edges; every vertex has at least one incident edge. Nothing is implied beyond this list.
A feasible witness is p→A,q→B,r→C,s→D. Check three things: every worker appears once, every chosen pair is allowed, and the four slot values are distinct. This establishes existence, not uniqueness. Another witness swaps p and q: p→B,q→A,r→C,s→D.
In fact these are the only two. Workers p and q must fill A and B in some order because their sets contain no other slots and they need different values. Then r cannot use B and must use C; s must use D. There are two orders for the first pair and one completion for each, so the count is two. This argument combines a forced-subset observation with a product whose stages have been justified.
The naive product 2·2·2·2=16 counts individually allowed choices before checking collisions. It is not the feasible count. For example p→A,q→A,r→B,s→C belongs to that product but violates injectivity. Conversely, dividing sixteen by a convenient factorial would not repair arbitrary collisions: different bad patterns need not occur with equal multiplicity.
G1. Check both complete Birch witnesses. Give an allowed-choice tuple counted by sixteen that is infeasible, and identify the collision. Explain why the two good witnesses are not duplicates.
4. An impossibility certificate from a subset
For a worker subset X⊆W, define its neighborhood N(X)=the union of A(w) over w∈X. Any injective assignment must send all workers in X to distinct slots inside N(X). Therefore |N(X)|≥|X| is a necessary condition for every X. If you find one X with fewer available slots than workers, the pigeonhole principle proves no complete assignment exists.
We use only this necessary direction. We do not assert or apply the general theorem that all such inequalities suffice; its proof and general matching algorithms lie outside this unit. For our bounded cases, existence comes from an explicit witness and counts come from exhaustive justified cases.
If Birch loses allowed pair rC, then X={p,q,r} has N(X)={A,B}, so three workers would need two slots. This disproves feasibility even though every worker still has a nonempty allowed set. A negative certificate is not merely a long unsuccessful search; its shortage is directly checkable.
A useful equality case is a tight subset: |N(X)|=|X|. In every complete assignment, X must use every slot in N(X), since its |X| distinct values lie in that equally sized finite set. Thus outside workers cannot use those slots. This does not prove a complete assignment exists; it gives a restriction conditional on one existing. Birch's {p,q} is tight and explains why allowed edges rB and sC cannot occur in any complete assignment.
G2. For Birch without rC, verify the shortage certificate. Why is checking only singleton worker sets insufficient?
G3. Prove that sC is not globally extendable in original Birch, even though it is allowed. State the chain of restrictions and distinguish it from removing sC from the supplied relation.
Session C. Exhaustive case search without a hidden theorem
5. A branch that fails is not the whole problem
A greedy choice takes a locally allowed free slot without examining all future effects. Choosing r→B first in Birch looks legal. Then p and q would both need the sole remaining slot A, so that branch cannot finish. But the packet has the two complete witnesses above. The branch failure proves only that this particular commitment is not extendable.
A complete search instead selects a worker, branches over every currently allowed unused slot, and continues. If a branch exhausts the workers it records one complete assignment. If a remaining worker has no allowed unused slot, that branch contributes zero. If several workers share too few remaining slots, a shortage certificate can prune that branch safely. Pruning must follow a proved obstruction, not impatience or an unexamined heuristic.
For counting, use a fixed worker order p,q,r,s. In Birch, p=A forces q=B, then r=C, then s=D; p=B forces q=A, then r=C, then s=D. These two branches are disjoint because p's value differs, and exhaustive because p has only A,B. Each contains exactly one feasible completion. Different worker orders may expose failure earlier but cannot change the underlying set of feasible assignments when the search is exhaustive.
Diagram B, complete text equivalent: root has two branches p=A and p=B. The first continues q=B,r=C,s=D; the second q=A,r=C,s=D. Any branch that repeats a used slot is excluded by the injectivity rule. Both leaves represent one complete labelled function, not the number of edges traversed to find it.
G4. Write a search trace starting with r instead. Account for both r=B and r=C without silently discarding a branch. Reconcile its final count with the fixed p-first trace.
6. A recurrence whose state has a reason
Fix ordered workers w₁,…,w_n and a set U of currently unused slots. Let F(i,U) count feasible assignments of workers w_i,…,w_n using distinct slots from U under the original fixed allowed sets. Then
F(n+1,U)=1,
F(i,U)=sum over x in A(w_i)∩U of F(i+1,U\{x}), for i≤n.
The base value is one because there is exactly one empty assignment of no remaining workers. It stays one even if U has extra unused slots: we do not assign slots to nobody or permute them. An empty sum is zero. If there are fewer free slots than remaining workers, pigeonhole gives zero without further expansion.
Why does the recurrence count exactly? Every completion chooses exactly one x for the next worker. Removing that worker's pair gives a unique completion for the remaining workers with x removed from U. Conversely, such a smaller completion extends uniquely by adding w_i→x. The cases are disjoint because x differs, and exhaust all completions. Induction on the number of remaining workers, with the empty-assignment base, proves the recurrence.
The state (i,U) is sufficient here because all future conditions depend only on the remaining workers, their fixed allowed sets and which slots remain free. Reusing a computed state can avoid recounting identical future problems, but it does not identify different full assignments or divide out their earlier labels. If two earlier histories reach the same state, each history receives that many completions.
G5. In Birch order p,q,r,s, compute F(3,{C,D}), F(3,{B,D}) and F(5,{D}). Explain each result, including the last base case outside the equal-size start.
7. A changed constraint can require more state
Consider p,q allowed {1,2}, and r,s allowed {3,4}. Without other conditions there are four complete assignments: two ways for p,q and two for r,s. Now impose the extra rule: “p=1 and r=3 may not both occur.” This is a condition on two selected pairs, not an independent allowed-set deletion. The pair r=3 remains permitted when p=2; the pair p=1 remains permitted when r=4.
After assigning p,q, both histories p=1,q=2 and p=2,q=1 leave U={3,4}. But the first permits only r=4,s=3, whereas the second permits both orders. Thus F(i,U) alone loses information needed by the new rule. Refine the state with a Boolean h recording whether p=1 occurred, or keep the relevant earlier assignment explicitly. The two branches contribute one and two, giving three assignments.
Do not apply a recurrence after changing the problem without checking its state assumptions. A larger table is not automatically more correct; each remembered quantity should answer an actual future constraint. We introduce this bounded state refinement, not a general constraint-solving software system.
G6. List the three valid assignments in the changed four-worker example. Explain why deleting r=3 from its allowed set would remove a valid assignment and therefore model a stronger, different rule.
Session D. Independent checks and honest uncertainty
8. A second method should have a different failure mode
For small equal-sized sets, independently enumerate all permutations of slots in a fixed worker order, then retain exactly those whose pairs are allowed. This starts with n! bijections and filters individual restrictions. The recursive search instead enforces restrictions while constructing a function. Agreement is useful because one method may catch a missing branch in the other, but two implementations sharing the same mistaken input table can agree incorrectly. Check the actual relation first.
For unequal sizes, enumerate injective tuples rather than permuting only an arbitrary chosen subset. With three workers and four fully available slots, the count is 4·3·2=24. The one unassigned slot is determined by the tuple; it does not supply another factor. Exhaustive enumeration is feasible only in appropriately small packets. We make no general efficiency claim.
A witness demonstrates feasibility, not fairness, cheapest cost, equal chance or suitability. A search that selects the first witness lexicographically is a deterministic convention, not a lottery. Identical allowed sets do not establish identical people or justify an actual employment decision. All labels here are abstractions.
9. Adding, removing and unknown edges
Adding allowed pairs cannot reduce the feasible set: every old assignment still satisfies the expanded relation. Removing pairs cannot increase it. The count need not change strictly. An added edge may never participate in a complete assignment because other restrictions still block its use. A locally allowed edge and an edge appearing in some complete assignment are different concepts.
If some pairs are unknown rather than forbidden, specify a lower relation R_min of confirmed allowed pairs and an upper relation R_max adding all unknown pairs. Every possible completed relation R satisfies R_min⊆R⊆R_max, so its feasible count lies between the two exact counts. This is a logical range, not a probability interval or evidence that each value is equally likely. A witness using only confirmed pairs remains valid under every completion. An impossibility proof even for R_max remains valid under every completion. Otherwise gather the missing information or leave the result unresolved; do not recode unknown as allowed without saying so.
Independent practice
I1. Workers p,q,r; slots 1,2,3. Allowed sets p:{1,2},q:{2,3},r:{1,3}. List all feasible assignments and prove exhaustiveness using cases on p. Independently filter the six permutations.
I2. Three workers all have allowed set {1,2} while the declared slot set is {1,2,3}. Give a subset certificate and explain why an unused isolated slot does not resolve it.
I3. Workers p,q have {1,2}; r has {3}; s has {4}. Count assignments, show a witness and explain why p/q interchange creates two labelled outcomes rather than one.
I4. Three workers have all four slots allowed. Derive the count by sequential choices and by the recurrence's base case. Explain why unused-slot order is not counted.
I5. A bipartite graph has workers p,q,r and slots 1,2,3, with edges p1,q1,r2,r3. Every vertex has a neighbor. Find its components and an impossibility certificate. Does merely balancing the total sizes of the two vertex groups guarantee feasibility?
I6. For the conditional rule in Session C7, give two histories with the same unused set but different completion counts. Specify a sufficient refined state and its base case without claiming an unrelated theorem.
I7. Add allowed pair sA to original Birch. Determine whether its two-assignment count changes. Prove the conclusion and distinguish nondecreasing from strictly increasing.
I8. Two workers p,q and slots 1,2 have confirmed pairs p1,q2; pair p2 is unknown, and q1 is forbidden. Compute lower/upper feasible counts. Then change q1 from forbidden to unknown as well and recompute. Explain what is known in each scenario.
Homework and proof repair
H1. Prove the F(i,U) recurrence by a reversible correspondence and induction on remaining workers. State why cases do not overlap and why the base is one rather than zero.
H2. Audit “All workers have a slot, and the relation graph is connected, so a complete assignment exists.” Use workers a,b,c,d, slots 1,2,3,4 and sets a:{1},b:{1},c:{1,2,3,4},d:{2,3,4}. Verify connectedness and supply a decisive subset obstruction.
H3. Explain what a branch-pruning record must contain to support a zero count. Compare a worker with no free options, a genuine subset shortage, and a branch abandoned because it seems inconvenient. Which establish impossibility, and at what scope?
Retrieval and changed-data quiz
Each item carries four formative points, maximum 24. No pass threshold or stored course grade is supplied.
Q1. With p:{1,2},q:{1,2},r:{2,3} on three slots, count complete assignments and explain why r=2 is not extendable.
Q2. Four workers have neighborhood contained in three slots. State a negative certificate and identify the theorem used. Does this prove the converse existence condition?
Q3. Evaluate F(n+1,U) when U contains two unused slots. Evaluate a nonterminal state where the next worker has no allowed unused slot. Explain the difference.
Q4. Explain why one failed greedy branch does not prove zero assignments; give a Birch example and a feasible alternative.
Q5. An allowed edge is added but no new complete assignment appears. Is this inconsistent with monotonicity? Use I7 or another fully specified example.
Q6. A program and hand search both count four assignments. Name two checks required before calling their agreement independent evidence, and distinguish count verification from real-world suitability.
Project P1. The five-label allocation audit
Workers A,B,C,D,E; slots 1,2,3,4,5. COMPLETE allowed sets:
A:{1,2}; B:{1,2}; C:{2,3,4}; D:{3,4}; E:{4,5}.
(a) Write the relation and its bipartite degree lists. Count allowed edges and verify the two-sided degree sum. State precisely what counts as a different complete assignment.
(b) Find a tight worker subset and use it to constrain all completions. List every complete assignment as a tuple in worker order A,B,C,D,E, and prove the count by disjoint cases. Independently explain how filtering all 120 permutations would test the same result without assuming the conclusion.
(c) Identify allowed pairs that cannot occur in any complete assignment. Analyze the greedy first choice C=2 and give its branch obstruction. Explain why this failed branch does not refute part (b).
(d) First remove C3 only and recalculate. Then also remove D3 from THAT reduced packet and provide an impossibility certificate. Separately return to the ORIGINAL packet and add A5 only; recalculate and list all newly enabled complete assignments. Explain which previously unusable allowed pairs become globally usable.
(e) Treat A5 as UNKNOWN in the original packet. Give exact lower and upper counts, a robust confirmed witness and the limits of the range. Do not assume a probability distribution or select a real person.
(f) Produce a certificate ledger: model/version, witness or shortage/case proof, count, method cross-check and correction or justified retention. Add a changed small example that tests the distinction you found easiest to miss. State which claims are mathematical and which practical questions are not supplied.
Project formative rubric, maximum 36: relation/model 6; original count/proof 9; extendability/greedy 5; changed packets 8; uncertainty/ledger/scope 8. Explained anchors are in the key. An illegal pair or duplicate slot requires repair; a matching count alone does not validate the construction.
Delayed transfer D1
D1. After a break, use three fictional exhibits x,y,z and four labelled stands 1,2,3,4. Allowed sets x:{1,2},y:{2,3},z:{3,4}. Count injective placements by cases on x and list them. Explain why the unused stand adds no extra factor. Now remove z4 and recalculate; then mark z4 unknown instead of forbidden and give a logical count range. State why a valid placement does not establish physical safety, visitor accessibility or permission to install anything.
Exit and next teaching
Create one new small counterexample to “a locally allowed choice must extend.” Explain its complete relation and one valid alternative assignment. Reattempt a failed search on changed data before claiming independent competence. Continue with Unit 8, Integration, changed-context assessment and revision. This bounded assignment study is not a general matching algorithm, a complete allocation service or a completed semester.
Optional references checked 4 November 2026: Norbert Zeh, Dalhousie, Matching definitions, for bipartite graphs, matching and perfect matching terminology; NIST, DLMF §26.15 Permutations: Restricted Positions, for the permutation/zero–one-matrix correspondence; and Oscar Levin, Matching in Bipartite Graphs, the introductory necessary neighborhood condition only. NIST’s board marks forbidden positions, unlike our allowed relation. Levin uses a narrower complete-matching convention; this unit follows Zeh’s general matching definition. Hall’s converse, rook-polynomial machinery, optimization and later algorithms are not assigned or used here. All cases, questions, diagrams and explanations are original. No proprietary problem set, source image or large quotation is reproduced. The whole-course sourceGap remains true.