Use correct notation and definitions - Discrete Math
- A computer science student is modeling a social network where each person can be friends with at most 5 others, and friendship is always mutual. If the network has 20 people and exactly 35 friendships, which notation correctly expresses the constraint that person has at most 5 friends? Answer: for all In an adjacency matrix representation, if persons and are friends, 0 otherwise. The sum counts all of person 's friendships by summing across row . Choice A correctly expresses this constraint. Choice B sums down column , which would constrain how many people are friends with person . Choices C and D are mathematically correct but use graph theory notation rather than the discrete modeling notation typically expected in this context.
- A scheduling algorithm uses a priority queue implemented as a binary heap. Jobs arrive with priorities and the algorithm always processes the job with minimum priority value first. If the current heap contains jobs with priorities [2, 5, 3, 8, 7, 9, 4] arranged in a valid min-heap structure, what is the correct notation for the heap property that must be satisfied? Answer: For any node at index : when In a min-heap with 1-based indexing, the heap property requires that every node's priority is less than or equal to its children's priorities. This is equivalently stated as: every node's priority is greater than or equal to its parent's priority. Choice B correctly expresses this using parent-child relationships where gives the parent of node . Choice A states the property correctly but assumes children exist (doesn't handle boundary cases). Choice C incorrectly uses instead of . Choice D only describes a property of the root, not the general heap property.
- A database designer uses the notation to indicate a relationship transformation where relation with attributes maps to relation with attributes . If she defines and then writes , what operation sequence does this represent in relational algebra? Answer: Project onto columns and , then perform theta join with where equals The notation represents projection (selecting specific columns), creating relation with only columns and from . The notation represents a theta join with the specific condition that attribute from the left relation equals attribute from the right relation. Choice A is wrong because specifies a condition, not a natural join. Choice C confuses projection with selection. Choice D describes the implementation of join as filtered cartesian product, but the notation specifically indicates a theta join operation.
- A game theory student models a scenario using the notation where , , , and . When analyzing Nash equilibria, she writes . What constraint must satisfy to be a Nash equilibrium? Answer: For each player , no unilateral deviation from can improve given that other players maintain their strategies When you encounter game theory notation like , you're looking at a normal-form game with players , strategy sets , and utility functions . The key concept being tested is your understanding of Nash equilibrium's fundamental definition. A Nash equilibrium occurs when each player is making their best possible choice given what all other players are doing. This means no player can unilaterally change their strategy and improve their payoff. Answer C captures this perfectly: for each player , no unilateral deviation from can improve given that other players maintain their strategies. This is the mathematical essence of Nash equilibrium. Answer A is incorrect because it suggests each player maximizes their utility over all possible strategy profiles in the entire game, which ignores the strategic interdependence that defines Nash equilibrium. Answer B confuses Nash equilibrium with Pareto optimality – these are completely different solution concepts, and Nash equilibria are often not Pareto optimal. Answer D incorrectly describes some notion of fairness or equal payoffs, but Nash equilibrium has nothing to do with equal utilities across players. Remember this key distinction: Nash equilibrium is about mutual best responses (no player wants to deviate unilaterally), while Pareto optimality is about collective efficiency. Many students confuse these concepts, so always focus on the "no profitable unilateral deviation" criterion when identifying Nash equilibria.
- In a formal verification system, an engineer writes the temporal logic formula where represents "system receives input" and represents "system produces output." What system property does this formula specification require? Answer: Whenever the system receives input, it must eventually produce output, though the timing of output is not constrained The formula means "always, if then eventually ". The operator means "always" (globally), is implication, and means "eventually" (finally). So whenever the system receives input (), it must eventually produce output (), but there's no constraint on timing. Choice A incorrectly adds immediacy requirement. Choice C misinterprets the formula as requiring continuous output during input. Choice D reverses the causality and adds requirements not present in the formula.
- A bioinformatics researcher models DNA sequences as strings over the alphabet . She defines a 'valid gene segment' as a substring that starts with 'ATG', ends with one of \{TAA, TAG, TGA\}, and has length divisible by 3. If represents the set of all valid gene segments, which formal definition correctly captures this language? Answer: A valid gene segment must have total length divisible by 3. Since ATG has length 3 and each stop codon (TAA, TAG, TGA) has length 3, the middle portion must also have length divisible by 3 to maintain the overall divisibility. Choice C correctly ensures this by requiring , meaning is a concatenation of 3-character blocks. Choice A allows any and checks total length, but doesn't ensure proper codon structure. Choice B only checks but the total length constraint is implied, not explicit. Choice D is similar to A but uses requiring non-empty .
- A database designer models user permissions using a relation where is the set of users and is the set of permissions. The designer states: 'Every user must have at least the basic permission , and no user can have permission without also having permission .' Which logical expression correctly captures both constraints? Answer: The first constraint 'every user must have at least the basic permission ' translates to . The second constraint 'no user can have permission without also having permission ' means if a user has , then they must have , which is . Choice B reverses the implication direction. Choice C uses existential quantification for the first constraint and bidirectional implication for the second. Choice D is equivalent to A but uses a more complex negated existential form.
- In formal language theory, a student defines an automaton and writes for a string . She then claims that . What does the extended transition function compute that differs from the basic transition function ? Answer: Function processes entire strings by composing individual symbol transitions, while handles only single symbol transitions The basic transition function defines transitions on single symbols, while the extended transition function processes entire strings by applying repeatedly: with . Choice B incorrectly suggests determines acceptance - it just computes the final state. Choice C incorrectly introduces nondeterminism not specified in the definition. Choice D incorrectly suggests ε-transitions, which aren't implied by the standard DFA definition given.
- A network security analyst models intrusion detection as a Markov chain with states . The system transitions between states based on a transition matrix where represents the probability of moving from state to state in one time step. If the analyst wants to compute the probability of being in the Breach state after exactly 3 time steps starting from Normal, which notation correctly expresses this quantity? Answer: where is the matrix multiplied by itself 3 times When you encounter Markov chain problems asking about probabilities after multiple time steps, you're dealing with matrix powers and the Chapman-Kolmogorov equations. The key insight is that to find probabilities after n steps, you need the n-th power of the transition matrix. To find the probability of being in the Breach state after exactly 3 steps starting from Normal, you must account for all possible paths through the state space. This requires computing (the transition matrix multiplied by itself three times) and then selecting the entry . Each matrix multiplication incorporates one additional time step, properly weighting all intermediate paths. Option A incorrectly sums probabilities across different path lengths from 0 to 3 steps, which would give you the probability of ever reaching Breach within 3 steps, not the probability of being there at exactly step 3. Option B misunderstands matrix notation—you can't raise a single matrix entry to a power and expect meaningful results about multi-step transitions. Option D simply multiplies the one-step probability by 3, which ignores the complex path dependencies inherent in Markov chains and would often exceed 1 (impossible for a probability). The correct answer is C: properly captures the 3-step transition probability. Study tip: Remember that for n-step transition probabilities in Markov chains, always think "matrix to the nth power, then extract the relevant entry." The matrix power handles all the path complexity automatically.
- A cryptography application models message authentication using a hash function . The system is said to be 'collision-resistant' if finding two different messages with the same hash is computationally infeasible. Given that the function processes approximately messages daily, which statement correctly describes the collision resistance requirement in formal notation? Answer: For any polynomial-time algorithm , Collision resistance is a computational security property, not a mathematical impossibility. Since maps an infinite domain to a finite codomain, collisions must exist by the pigeonhole principle. Choice D correctly captures that no polynomial-time algorithm can find collisions with non-negligible probability, where is the security parameter. Choice A describes a collision-free function, which is impossible. Choice B is imprecise about the adversary model. Choice C focuses on a specific daily limit rather than the general computational hardness requirement.
- A combinatorics researcher analyzes a generating function where counts certain combinatorial objects of size . She discovers that and wants to find a recurrence relation for the coefficients. Using the equation , what recurrence relation governs the sequence ? Answer: for , with appropriate initial conditions determined by the generating function From , expanding the left side gives . Collecting coefficients of for : , giving . Choice B incorrectly adds a constant term that doesn't appear in the coefficient equation. Choice C incorrectly involves derivatives. Choice D gets the wrong signs in the recurrence relation.
- In a formal logic system, the statement is being evaluated, where means " divides ". A student claims this statement is true and provides the construction as justification. What is the most precise assessment of this approach? Answer: The construction demonstrates the existential quantifier correctly and constitutes a complete proof of the statement The statement says for every positive integer , there exists a positive integer such that divides and . The construction works for every positive integer : clearly and for all . This single construction is sufficient to prove the existential statement for all . Choice A misses that this is about existence, not universality over . Choice B incorrectly suggests the proof is incomplete. Choice C misunderstands that one construction proving existence for all is sufficient for an existential statement.
- An algorithm designer analyzes a recursive function that satisfies the recurrence for with . Using the Master Theorem, she needs to compare with . Which comparison correctly determines the applicable case? Answer: , so , applying Case 2 In this recurrence, , , so . We have . Since , this matches Case 2 of the Master Theorem exactly. Choice B incorrectly treats as a polynomial factor. Choice C incorrectly suggests is polynomially smaller than . Choice D incorrectly claims the Master Theorem doesn't apply when it clearly does.
- In a distributed computing model, a researcher uses the notation to represent state transitions, where and are system configurations and is an action. When she writes , what does this sequence notation formally specify? Answer: A sequence of valid state transitions showing one possible execution trace through the system's state space When you encounter formal transition notation in discrete mathematics or computer science, you're looking at a way to describe how systems change state over time. The notation is a standard way to express "configuration CONF can transition to configuration CONF' by performing action α." The sequence shows a chain of transitions, representing one possible path the system could take through its state space. Each transition is valid (the symbol confirms this), but this is just one of potentially many possible execution traces from the initial state . This makes D correct. A is wrong because the notation doesn't imply determinism—other actions might also be possible from each configuration. The sequence shows what happened, not what must happen. B misunderstands the temporal nature of the notation. The actions occur sequentially, not simultaneously, and only needs to be enabled in . C incorrectly suggests parallel execution. The chain notation explicitly shows sequential transitions where each action transforms one configuration into the next. Remember that formal transition systems describe all possible behaviors of a system. When you see a specific sequence like this, it's documenting one particular execution trace—a single path through the larger space of possible system behaviors. Focus on the sequential, one-step-at-a-time nature of these transition chains.
- In a discrete optimization problem, a researcher defines the constraint set and the objective function . When she writes , what computational challenge does this notation specifically indicate? Answer: The optimization must evaluate integer points only, requiring enumeration of feasible lattice points within bounds The constraint set restricts to integer points () in the first quadrant within a circle of radius 5. This creates a finite set of lattice points that must be enumerated: (0,0), (0,1), ..., (0,5), (1,0), ..., (4,3), (5,0), etc. This is an integer programming problem requiring discrete optimization. Choice A is wrong because there are only finitely many integer points in the bounded region. Choice C is wrong because the constraint set is convex (intersection of convex sets). Choice D is wrong because the bounded constraint set makes the linear objective function bounded.
- A logistics company models package routing using a directed graph where edge weights represent travel times in hours. The company defines as the shortest path distance from vertex to vertex . If , , and , which statement about the graph structure is necessarily true? Answer: The shortest path from to does not pass through vertex Since , the path is longer than the shortest path from to . Therefore, the shortest path from to cannot pass through . Choice A is incorrect because there might be no direct edge, or it could have weight exactly 7. Choice C is incorrect as the given distances don't imply any cycles. Choice D contradicts our analysis since cannot be on any shortest -to- path.
- In complexity theory, a researcher defines to denote polynomial-time many-one reducibility between languages and . She then states: "If is -complete and , then is -hard." What does this logical statement require about ? Answer: Language must be at least as hard as any language in , though itself need not be in When you encounter complexity theory problems involving reductions and completeness, focus on the precise definitions: NP-complete means a language is both in NP and NP-hard, while NP-hard means every language in NP reduces to it in polynomial time. The key insight here is understanding what polynomial-time many-one reducibility preserves. Since is NP-complete, every language in NP reduces to (that's what NP-hard means). When we have , we can compose reductions: for any language , we get , which gives us by transitivity. Therefore, every NP language reduces to , making at least as hard as any NP problem—this is exactly the definition of NP-hard. Choice C captures this correctly. Choice A incorrectly requires . Being NP-hard doesn't require membership in NP— could be much harder, even undecidable. Choice B demands bidirectional reducibility, but we only know reduces to , not vice versa. Choice D makes an unwarranted connection to the question that doesn't follow from the given information. Study tip: Remember that NP-hard is about being "at least as hard as NP" without requiring membership in NP itself. Many NP-hard problems are actually much harder than NP.
- In a discrete probability model, events satisfy , , and . If , which expression correctly represents using the inclusion-exclusion principle? Answer: The inclusion-exclusion principle states: . Choice D correctly applies this formula. Choice A incorrectly substitutes union probabilities for individual event probabilities. Choice B has the wrong signs. Choice C attempts to use but this sum could exceed 1 due to overlaps, making the approach invalid.