Math 3134 Applied Combinatorics Comprehensive Practice Test 1 Notes
Evaluation Rules & Closed-Form Expressions
- Numerical answers on Applied Combinatorics assessments may be submitted in closed-form expression format unless explicitly stated otherwise.
- Examples of acceptable closed-form numerical expressions include:
- Binomial coefficients such as
- Rational or transcendental constants such as
- Evaluation of :
- Formula:
- Computation:
Basic Combinatorics & Selection Problems
- Problem configuration: A pizza parlor provides distinct pizza toppings. A customer orders a -topping pizza.
- Case (a): All three toppings must be distinct (order does not matter).
- Selection type: Unordered combination without replacement.
- Calculation:
- Case (b): Repeating toppings is permitted.
- Selection type: Unordered combination with replacement (Multiset / Stars and Bars).
- Formula for choosing items from types with repetition:
- Parameters: ,
- Calculation:
Casting and Rule of Product Applications
- Production context: The play Huis Clos by Jean-Paul Sartre features a small cast of characters: Estelle, Inès, and Joseph.
- Audition outcomes:
- auditioners are suitable for Estelle.
- auditioners are suitable for Inès.
- auditioners are suitable for Joseph.
- Assumption: All auditioners are distinct individuals; no auditioner is suitable for more than one role.
- Total casting combinations calculation:
- By the Rule of Product (Fundamental Counting Principle), the total number of ways to cast the play is:
Non-Negative Integer Solutions & Team Configurations
- Governing rules: Under International Football Association rules, a soccer team consists of players.
- Exactly player is assigned as the goalkeeper.
- The remaining outfield players consist of defenders, midfielders, and strikers.
- There is no minimum or maximum restriction on any outfield position, provided the sum of outfield players equals .
- Combinatorial model:
- Equivalent to finding the number of non-negative integer solutions to:
- Here represents defenders, represents midfielders, and represents strikers.
- Stars and Bars formula with categories and elements:
- Simplified form:
Restricted Sequence Permutations & Alphabet Problems
- Alphabet specifications:
- Total characters:
- Consonants: (with 'y' treated explicitly as a consonant)
- Vowels:
- Sequence specification: Count the number of -letter sequences containing exactly vowels.
- Construction steps:
- Choose positions out of for the vowels:
- Assign a vowel to each chosen position (with repetition allowed):
- Assign a consonant to each of the remaining positions:
- Total unique sequences:
Permutations of Multisets (Repeated Letters)
- Word analyzed: DEFENSIVENESS
- Letter frequencies:
- D:
- E:
- F:
- I:
- N:
- S:
- V:
- Total length
- Multinomial coefficient formula for multiset permutations:
- Calculation:
Combinatorial Identity Proofs
Identity 1: Prove
- Algebraic Proof:
- Left-Hand Side (LHS):
- Right-Hand Side (RHS):
- Since LHS = RHS, the identity is proven.
- Combinatorial Proof:
- Consider choosing elements from a set of size , split into two disjoint sets and , each of size .
- Total ways to pick elements: .
- Alternative selection cases:
- Pick elements from set :
- Pick elements from set :
- Pick element from and element from :
- Summing the cases gives: .
Identity 2: Prove
- Algebraic Proof:
- LHS:
- RHS:
- LHS = RHS =
- Combinatorial Interpretation:
- Consider choosing elements from a set of items partitioned into a group of items and a group of items.
- Selecting both from the group of :
- Selecting both from the group of :
- Selecting one from each group:
- Total combinations:
String Naming Constraints & Language Grammars
- Java legal variable name specifications:
- First character allowed set: Uppercase letters (), Lowercase letters (), Dollar sign \ (), Underscore ().
- Total valid first characters:
- Subsequent character allowed set: All valid first characters plus numeric digits ().
- Total valid subsequent characters:
- Reserved three-character Java words:
for,int,new,try( words).
- Calculation of legal 3-character variable names:
- Unrestricted combinations:
- Subtracting reserved words:
Election Combinatorics with District Constraints
- Unconstrained Election (Part a):
- candidates running for identical seats on a town council.
- Total valid selections:
- District-Constrained Election (Part b):
- total candidates: from District 1, from District 2.
- Goal: Fill seats with at least representative from each district.
- Complementary Counting Approach:
- Total unrestricted ways:
- Invalid selections (0 candidates from District 1):
- Invalid selections (0 candidates from District 2): (impossible since only 3 are from District 1)
- Valid choices:
- Direct Summation Approach:
- from District 1, from District 2:
- from District 1, from District 2:
- from District 1, from District 2:
- Total:
Combinations with Repetition Applications
- Scenario: A florist supplies red, pink, and white roses. A customer orders a bouquet of a dozen () roses in any combination of those colors.
- Combinatorial Structure: Unordered selection with repetition (Stars and Bars).
- Parameters: types, selections.
- Expression:
Card Combination Counting
- Deck structure: standard cards across ranks and suits.
- Full House Definition: cards of one rank and cards of a different rank.
- Step-by-Step Counting:
- Choose rank for the three-of-a-kind:
- Choose suits out of for that rank:
- Choose rank for the pair from remaining ranks:
- Choose suits out of for that rank:
- Total possible full houses:
Fixed-Point Free Permutations (Derangements) & Graph Structures
- Neighborhood emergency phone tree scenario with homes where no person calls themselves:
- Standard Derangement Model ():
- A permutation with no fixed points.
- Formula:
- Exact derangement expression for homes:
- Single Cycle / Directed Hamiltonian Cycle Model:
- If the phone tree requires a single continuous loop containing all households:
- Total cyclic permutations:
Circular Permutations & Adjacency Constraints
- Context: Seating the members of the band Maroon 5 at a symmetrical round table.
- Case (a): Unconstrained circular seating.
- Formula for items in a circle:
- Computation:
- Case (b): Adam Levine and James Valentine must NOT sit next to each other.
- Complementary Counting Method:
- Total circular seatings:
- Treat Adam Levine and James Valentine as a single block:
- Internal arrangements of the block:
- Circular seating of effective units:
- Restricted seatings where they are adjacent:
- Valid seating arrangements:
Principle of Inclusion-Exclusion (PIE)
- Survey Data ( Computer Science majors total):
- Java ():
- C++ ():
- Python ():
- C++ and Java ():
- Java and Python ():
- C++ and Python ():
- All three ():
- Union calculation using PIE:
- Students not proficient in any of the three languages:
- Total students minus proficient students:
Binomial Theorem & Power Series Expansions
Expansion 1: Coefficient of in
- Binomial Theorem general term:
- For , setting :
- Coefficient:
Expansion 2: Coefficient of in
- Binomial Theorem general term:
- Setting :
- Coefficient:
Expansion 3: Generalized Binomial Theorem for
- Formula:
- Generalized coefficient:
- For , set and :
- Term :
- For , set :
- Coefficient:
Expansion 4: Coefficient of in
- Term :
- For , set :
- Coefficient:
Expansion 5: Coefficient of in
- Term :
- For , set :
- Coefficient:
Ordinary Generating Functions in Discrete Problems
- American Football Scoring Play Values:
- Safety: points
- Field goal: points
- Touchdown: points
- Touchdown plus extra point: points
- Touchdown plus two-point conversion: points
- Conversion safety: point (Historical note: achieved in the NFL in 1940)
- Generating Function Construction:
- Assuming unrestricted repetition of scoring plays where order of scoring does not matter, each scoring play value contributes a factor of
- Primary generating function (excluding conversion safety):
- Generating function including conversion safety (1 point play):
- The number of ways to score exactly points corresponds to the coefficient of in .
Recurrence Relations Formulation & Solution
Recurrence Construction for Substring Avoidance:
- Goal: Construct a recurrence relation for , the number of ternary strings (using digits , , and ) of length that do NOT contain the exact substring "12".
- Analysis by starting character:
- If string starts with : Remaining characters form a valid string ( ways).
- If string starts with : Remaining characters form a valid string ( ways).
- If string starts with :
- Second digit cannot be
- If second digit is : Remaining characters form a valid string ( ways).
- If second digit is : String starts with "11", remaining characters start with ( effectively when solved via system).
- System Derivation:
- Let be valid strings of length .
- A valid string ending in or can be formed by appending or to any valid string of length ( ways).
- A valid string ending in can only be formed by appending to a valid string of length that does NOT end in .
- Since valid strings of length ending in are formed by appending to any valid string of length ( ways), the number of length valid strings not ending in is .
- Therefore:
- Final Recurrence Relation: for
- Initial Conditions: , (and )
Linear Recurrence Solution 1:
- System: , with
- Characteristic equation:
- Roots:
- General solution:
- Apply initial conditions:
- Solve linear system:
- Closed-form solution:
Linear Recurrence Solution 2 (Repeated Root):
- System: , with
- Characteristic equation:
- Repeated root: (multiplicity 2)
- General solution:
- Apply initial conditions:
- Closed-form solution:
Linear Recurrence Solution 3 (Complex Roots):
- System: , with
- Characteristic equation:
- Polar representation:
- General solution form:
- Apply initial conditions:
- Closed-form solution: