
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















This comprehensive 100-question exam bank is designed to prepare candidates for Graded Quiz Unit 6 - Prim's Algorithm, Minimum Spanning Trees & Simplex Linear Programming 6-Question Practice Exam with Answers and Review. Every question is aligned with the latest official content outline and includes a detailed, evidence-based rationale, an explanation of why each remaining option is incorrect, and a supporting reference.
Graded Quiz Unit 6 - Prim's Algorithm, Minimum Spanning Trees & Simplex Linear Programming 6-Question Practice Exam with Answers and Review, exam bank, practice questions, verified answers, detailed rationales, test prep, study guide, review questions, certification exam, latest update, Graded Quiz Unit 6 - Prim's Algorithm, Minimum Spanning Trees & Simplex Linear Programming 6-Question Practice Exam with Answers and Review, exam bank, practice questions, verified answers, detailed rationales
A) It fails to find an MST because negative weights break the cut property. B) It finds an MST if initialized with any vertex, since the cut property holds for all real weights. C) It requires Kruskal's algorithm as a preprocessing step to handle negative weights. D) It finds an MST only if all edge weights are nonnegative; otherwise it may cycle.
' C o r r e c t A n s w e r : B Rationale: The cut property holds for any real edge weights, so Prim's algorithm correctly finds an MST regardless of negative weights, provided the graph is connected. Negative weights do not invalidate the greedy choice; they only affect the total weight. Options A, C, and D are false because the cut property is weight-agnostic and no preprocessing is needed.
A) The LP has multiple optimal solutions. B) The LP is unbounded. C) The current solution is degenerate. D) The LP is infeasible.
' C o r r e c t A n s w e r : A Rationale: A zero reduced cost for a nonbasic variable at optimality indicates that increasing that variable would not change the objective value, implying alternative optimal solutions exist. Unboundedness (B) requires a positive reduced cost with no leaving variable; degeneracy (C) concerns basic variable values, not reduced costs; infeasibility (D) is unrelated to reduced costs.
A) The original LP is unbounded.
B) The original LP is infeasible. C) The original LP has multiple optima. D) The original LP is degenerate.
' C o r r e c t A n s w e r : B Rationale: Phase I minimizes the sum of artificial variables; a positive minimum means no feasible solution exists with all artificials zero, hence the original LP is infeasible. Unboundedness (A) and multiple optima (C) are properties of feasible LPs; degeneracy (D) refers to basic solutions, not feasibility.
A) O(V^2) B) O(E log V) C) O(E + V log V) D) O(V log V + E log E)
' C o r r e c t A n s w e r : B Rationale: With a binary heap and adjacency list, each edge causes at most one decrease-key (O(log V)) and each vertex one extract-min (O(log V)), giving O(E log V). Option A is the array-based implementation; C is for Fibonacci heaps; D is unnecessarily loose and not the standard bound.
A) It changes by the shadow price times the increase. B) It remains unchanged. C) It changes by the reduced cost times the increase. D) It changes unpredictably.
' C o r r e c t A n s w e r : A Rationale: Within the allowable range, the shadow price (dual variable) gives the rate of change of the optimal objective per unit increase in the RHS. Reduced costs (C) pertain to variable coefficients, not RHS; the change is predictable (D false); and it is not generally unchanged (B false).
A) The cut property guarantees that every safe edge chosen by Prim's is in some MST. B) Prim's algorithm may choose an edge not in any MST if ties are broken arbitrarily. C) The cut property holds only for graphs with distinct edge weights. D) Prim's algorithm requires the graph to be a tree to apply the cut property.
' C o r r e c t A n s w e r : A Rationale: The cut property states that the minimum-weight edge crossing any cut is safe, i.e., belongs to some MST; Prim's always selects such an edge. Ties (B) still yield some MST; distinct weights (C) are not required; and the graph need not be a tree (D false).
A) Infeasible B) Degenerate C) Unbounded D) Optimal
' C o r r e c t A n s w e r : B Rationale: A basic feasible solution in a transportation problem should have exactly m+n-1 positive allocations; fewer indicates degeneracy. Infeasibility (A) means no solution exists; unboundedness (C) is impossible in transportation due to fixed supplies/demands; optimality (D) is unrelated to the count of positive allocations.
Rationale: Uniqueness of the lightest crossing edge forces it into every MST; with ties, different MSTs may choose different light edges. The other options overgeneralize the cut property.
A) At least one basic variable equals zero. B) At least one nonbasic variable equals zero. C) The objective row has a zero reduced cost. D) The ratio test yields multiple minimum ratios.
' C o r r e c t A n s w e r : A Rationale: Degeneracy means a basic variable is zero, so the basis has fewer than m positive components. Multiple minimum ratios can cause degeneracy but are not its definition; zero reduced cost signals alternative optima.
A) Prim's always yields a unique MST; Kruskal's may not. B) Both always produce the same MST when edge weights are distinct. C) Kruskal's requires a priority queue; Prim's does not. D) Prim's can handle disconnected graphs by restarting; Kruskal's cannot.
' C o r r e c t A n s w e r : B Rationale: With distinct weights the MST is unique, so any correct MST algorithm returns it. Prim's does not guarantee uniqueness under ties, Kruskal's can use sorting instead of a heap, and both extend to forests.
A) The solution is degenerate. B) The problem is unbounded. C) Alternative optimal solutions exist. D) The variable must enter the basis.
' C o r r e c t A n s w e r : C Rationale: A zero reduced cost on a nonbasic variable at optimality permits pivoting it in without changing the objective, yielding an alternative optimum. It does not imply degeneracy, unboundedness, or a required pivot.
A) The row with the smallest index among ties. B) The row with the largest basic variable value. C) The row with the most negative coefficient. D) The row with the largest index among ties.
' C o r r e c t A n s w e r : A Rationale: Bland's rule breaks ties by choosing the smallest-index leaving variable to prevent cycling. The other choices are not standard anti-cycling rules.
A) The MST remains the same. B) The MST changes to the maximum spanning tree. C) The MST may change because relative weights change. D) The MST becomes a shortest-path tree.
' C o r r e c t A n s w e r : A
Rationale: Adding a constant to every edge adds c(V-1) to every spanning tree, preserving the ordering of total weights, so the MST is unchanged. Relative weights are unaffected.
A) Guarantee integer solutions. B) Penalize artificial variables in the objective. C) Ensure the initial basis is optimal. D) Eliminate the need for a ratio test.
' C o r r e c t A n s w e r : B Rationale: Big-M assigns a large penalty to artificial variables so they are driven to zero in any optimal solution. It does not enforce integrality, ensure optimality, or remove the ratio test.
A) Prim's algorithm fails because it assumes nonnegative weights. B) Kruskal's algorithm fails on negative weights. C) Both Prim's and Kruskal's still correctly find an MST. D) No MST exists when negative weights are present.
' C o r r e c t A n s w e r : C Rationale: MST algorithms rely on the cut property, which holds for any real weights, so negative weights do not break Prim's or Kruskal's. Negative cycles are irrelevant to MSTs, which are trees.
A) The problem is infeasible. B) The solution is degenerate. C) The objective is unbounded. D) Multiple optima exist.
' C o r r e c t A n s w e r : C Rationale: If no ratio test can be performed because all coefficients in the entering column are nonpositive, the objective can increase indefinitely, indicating unboundedness. Infeasibility and degeneracy have different tableau signatures.
A) The set of selected vertices forms a tree whose edges are the lightest crossing the cut between selected and unselected vertices. B) The selected edges always form a minimum spanning tree of the subgraph induced by the selected vertices. C) The algorithm maintains a forest where each component is a minimum spanning tree of its vertices. D) The next edge chosen is always the globally lightest edge not yet considered, regardless of cut.
' C o r r e c t A n s w e r : A Rationale: Prim's correctness relies on the cut property: the lightest edge crossing the cut (S, V\S) is safe to add. Option A states this invariant. B is false because the selected edges form a tree but not necessarily an MST of the induced subgraph. C describes Kruskal's forest invariant. D describes a greedy global choice that is not Prim's rule.
D) It replaces the original variables in the objective.
' C o r r e c t A n s w e r : A Rationale: A s l a c k v a r i a b l e c o n v e r t s "d t o e q u a l i t y : 2 x + 3 y + s = 1 2 , w i t h s"e 0 r e p r e s e slack is nonnegative. C misstates its role. D is false: slack does not replace variables in the objective.
A) Kruskal's algorithm with union-find B) Prim's algorithm with binary heap C) Prim's algorithm with adjacency matrix D) Borvka's algorithm
' C o r r e c t A n s w e r : A Rationale: W i t h e d g e s p r e - s o r t e d , K r u s k a l ' s a l g o r i t h m r u n s i n O ( m ± ( n ) ) u s i n g u n i graphs. Prim's heap version is O(m log n) and does not exploit sorted edges. Borvka's is also efficient but not specifically advantaged by sorted edges. Thus A is best.
A) The dual is infeasible. B) The dual is unbounded. C) The dual has an optimal solution. D) The dual has multiple optimal solutions.
' C o r r e c t A n s w e r : A Rationale: By weak duality, if the primal is unbounded, the dual cannot have a feasible solution; otherwise it would bound the primal. Thus the dual is infeasible. B and C contradict duality. D is irrelevant.
A) At least one basic variable is zero. B) All basic variables are positive. C) The objective coefficient of a nonbasic variable is zero. D) The reduced cost of a basic variable is nonzero.
' C o r r e c t A n s w e r : A Rationale: Degeneracy occurs when one or more basic variables equal zero, meaning fewer than m positive variables. B describes nondegeneracy. C relates to alternate optima. D is impossible: basic variables have zero reduced cost.
A) The graph is connected and undirected. B) The graph is a tree. C) All edge weights are positive. D) The graph is complete.
' C o r r e c t A n s w e r : A Rationale: Prim's algorithm requires only a connected, undirected graph with real weights; distinctness is not needed for correctness (only for uniqueness). B is a special case but not the general condition. C and D are unnecessary restrictions.
A) O(E log V) B) O(V^2) C) O(E + V log V) D) O(E log E)
' C o r r e c t A n s w e r : A Rationale: With a binary heap and adjacency list, each edge may cause a decrease-key (O(log V)) and each vertex is extracted once (O(log V)), giving O(E log V). O(V^2) is for the array-based implementation, O(E + V log V) is for Fibonacci heaps, and O(E log E) is not tight since E can be O(V^2).
A) Both algorithms always produce the same MST B) The MST is unique, but algorithms may choose different edges C) The MST may not be unique, and algorithms may produce different MSTs D) Prim's algorithm fails to find an MST
' C o r r e c t A n s w e r : C Rationale: If edge weights are not distinct, multiple MSTs can exist. Prim's and Kruskal's may select different edges of equal weight, yielding different but equally minimal spanning trees. Uniqueness is guaranteed only when all edge weights are distinct.
A) The current solution is optimal B) The problem is infeasible C) The objective can be improved by increasing that variable D) The problem is unbounded
' C o r r e c t A n s w e r : C Rationale: In maximization, a negative reduced cost (coefficient in z-row) means increasing that nonbasic variable increases z, so the current basic feasible solution is not optimal. Optimality occurs when all z-row coefficients are nonnegative (for max). Infeasibility and unboundedness are detected differently.
A) (0, 0) B) (2, 1) C) (3, 1) D) (1, 2)
' C o r r e c t A n s w e r : B Rationale: I n t e r s e c t i o n o f x + y = 4 a n d x + 3 y = 6 : s u b t r a c t g i v e s 2 y = 2 !’ y = 1 ,
A) The problem is unbounded
' C o r r e c t A n s w e r : B Rationale: The array-based O(V^2) implementation is preferable for dense graphs because the binary heap version O(E log V) becomes O(V^2 log V) when E = O(V^2), which is worse. For sparse graphs, the heap version is better. Prim's algorithm requires nonnegative weights? Actually it works with negative weights as long as no negative cycles, but MST algorithms assume undirected graphs; negative weights are allowed. Disconnected graphs have no spanning tree.
A) To select the entering variable B) To maintain feasibility by choosing the leaving variable C) To detect unboundedness D) To check for degeneracy
' C o r r e c t A n s w e r : B Rationale: The ratio test determines the leaving variable by finding the minimum ratio of the right-hand side to the positive coefficient in the pivot column, ensuring the new basic solution remains feasible (nonnegative). The entering variable is chosen by the most negative reduced cost. Unboundedness is detected when no positive entries exist in the pivot column. Degeneracy occurs when the minimum ratio is zero.
A) The set of chosen edges always induces a single tree spanning a subset of vertices, and the next edge is the minimum-weight edge crossing that tree's cut. B) The chosen edges always form a forest with no cycles, and each new edge is the globally minimum-weight edge in the graph. C) The algorithm maintains a partition of vertices into two sets where all crossing edges have equal weight. D) The chosen edges form a spanning tree at every step, and the next edge is the minimum-weight edge in the entire graph.
' C o r r e c t A n s w e r : A Rationale: Prim's algorithm grows a single tree T from a start vertex; at each step it selects the minimum-weight edge crossing the cut (T, V\T), which by the cut property is safe to add. Option B describes Kruskal's forest approach, not Prim's invariant. Option C is false: crossing edges need not have equal weight. Option D is false because the chosen edges do not span all vertices until termination, and the next edge is not necessarily the global minimum.
A) The MST is unique and contains the minimum-weight edge incident to every vertex. B) The MST is unique, but it may omit the minimum-weight edge incident to some vertex. C) The MST is unique and is also a shortest-path tree from any root. D) The MST is unique and contains every edge that is not the maximum-weight edge in any cycle.
' C o r r e c t A n s w e r : B Rationale: With distinct weights the MST is unique, but it need not include the minimum-weight edge incident to every vertex (e.g., a vertex whose cheapest edge leads into a cycle where a heavier edge is required). Option A is false for that reason. Option C is false: MSTs and shortest-path trees differ. Option D describes a property of edges that are safe (not the maximum in any cycle), but the MST does not necessarily contain every such edge-only a subset forming a spanning tree.
A) O(V^2)
B) O(E log V) C) O(E + V log V) D) O(V log V + E log E)
' C o r r e c t A n s w e r : B Rationale: With a binary heap, each edge may cause a decrease-key operation costing O(log V), and each vertex is extracted once costing O(log V), giving O(E log V). Option A is the array-based implementation. Option C is the Fibonacci-heap bound (amortized O(E + V log V)). Option D is not the standard bound; E log E is looser and not tight.
A) Maximize z = 3x + 2y subject to x + y 4, x 0, y 0. B) Minimize z = 3x + 2y subject to x + y 4, x 0, y 0. C) Maximize z = 3x + 2y subject to x + y + s = 4, x 0, y 0, s 0. D) Maximize z = 3x + 2y subject to x + y = 4, x unrestricted, y 0.
' C o r r e c t A n s w e r : C Rationale: Standard form requires all constraints as equalities with nonnegative variables and a nonnegative right-hand side; option C introduces slack variable s to convert x + y 4 into an equality. Option A is in canonical (inequality) form. Option B has a constraint and minimization, not standard maximization form. Option D has an unrestricted variable, violating nonnegativity.
A) The LP is infeasible. B) The LP is unbounded. C) The current solution is optimal. D) The LP has multiple optimal solutions.
' C o r r e c t A n s w e r : B Rationale: In maximization, a negative reduced cost indicates an improving variable; if its column has no positive entries, the variable can increase indefinitely without violating constraints, so the LP is unbounded. Infeasibility (A) is detected by artificial variables remaining positive at optimality. Optimality (C) requires all reduced costs nonnegative. Multiple optima (D) occur when a nonbasic variable has zero reduced cost at optimality.
A) The objective value must decrease in the next iteration. B) A zero ratio test may occur, potentially causing cycling. C) The LP must have alternative optimal solutions. D) The current basis is infeasible.
' C o r r e c t A n s w e r : B Rationale: Degeneracy means at least one basic variable is zero, so the minimum ratio in the ratio test can be zero, leading to a pivot with no objective improvement and possible cycling. The objective never decreases in a valid simplex step (A). Alternative optima (C) require a zero reduced cost for a nonbasic variable, not degeneracy. The basis remains feasible (D).
A) All edge weights are positive. B) All edge weights are distinct. C) The graph is a tree.
A) The MST is unique and every cut's lightest edge belongs to it. B) The MST is unique but some cut's lightest edge may be excluded. C) Multiple MSTs may exist but all have equal total weight. D) Uniqueness requires additionally that the graph be planar.
' C o r r e c t A n s w e r : A Rationale: With distinct weights the MST is unique (cycle property forbids ties), and the cut property guarantees each cut's unique lightest edge is safe and thus in the MST. Option B contradicts the cut property; C is false because distinct weights force uniqueness; D is irrelevant-planarity is not needed.
A) The LP is infeasible; Phase I must be rerun. B) The LP is unbounded in the entering variable's direction. C) The current basis is degenerate; pivot on a different column. D) The LP is optimal despite the negative reduced cost.
' C o r r e c t A n s w e r : B Rationale: A negative reduced cost signals improving direction; if no positive ratio-test entries exist in that column, the entering variable can increase indefinitely, so the LP is unbounded. Infeasibility would be detected in Phase I, degeneracy concerns zero RHS not sign patterns, and optimality requires all reduced costs 0 (for max).
A) The tableau is infeasible and must be discarded. B) The LP is unbounded because a basic variable vanished. C) The basis is degenerate; a pivot may yield no objective improvement. D) The dual is infeasible, so strong duality fails.
' C o r r e c t A n s w e r : C Rationale: A zero-valued basic variable defines a degenerate BFS; the ratio test may select a zero ratio, producing a pivot with objective=0 and possible cycling. Infeasibility and unboundedness are unrelated to a zero basic variable, and strong duality holds for feasible bounded LPs regardless of degeneracy.
A) Increasing that resource by one unit raises the optimum by exactly y=0. B) Small increases of that resource leave the optimal objective unchanged. C) The constraint is redundant and can be deleted without effect. D) The dual variable is infeasible, so the tableau is not optimal.
' C o r r e c t A n s w e r : B Rationale: A zero dual price for a nonbinding constraint means marginal value of extra units is zero within the allowable range, so small increases do not change the optimum. Option A misstates that y=0 gives a positive change; C confuses nonbinding with redundant; D is false since y=0 is feasible in the dual.
A) The graph is connected and undirected with real-valued edge weights. B) The graph is a directed acyclic graph with nonnegative weights. C) The graph is complete and edge weights are all distinct.
D) The graph is bipartite and edge weights are integers.
' C o r r e c t A n s w e r : A Rationale: Prim's correctness relies on the cut property, which requires an undirected connected graph with real weights; starting vertex does not matter. Directed graphs lack the symmetric cut structure (B), while completeness (C) and bipartiteness (D) are unnecessary restrictions that do not characterize correctness.
A) C(6,3)=20 basic solutions; the optimum, if finite, lies at a BFS. B) 3-6=18 basic solutions; the optimum may lie in the interior. C) 2=64 basic solutions; simplex must enumerate all of them. D) 63=3 basic solutions; the feasible region is a simplex.
' C o r r e c t A n s w e r : A Rationale: A basic solution selects m basic variables from n, giving C(6,3)=20 candidates; the fundamental theorem of LP guarantees a finite optimum at a BFS. B miscalculates and misstates interior optimality; C overcounts and mischaracterizes simplex; D confuses dimension with count.
A) The LP must be unbounded because the region is unbounded. B) The LP is infeasible despite terminating with a basis. C) A finite optimum exists at the reported BFS; unbounded region is irrelevant. D) The dual is unbounded, contradicting weak duality.
' C o r r e c t A n s w e r : C Rationale: O p t i m a l i t y c r i t e r i o n ( a l l r e d u c e d c o s t s "e 0 f o r m a x ) c e r t i f i e s a f i n i t e o region unboundedness; unboundedness would require an improving ray, which is absent. A confuses geometric unboundedness with objective unboundedness; B and D contradict the optimality certificate and weak duality.
A) O(1) decrease-key, O(log V) extract-min B) O(log V) decrease-key, O(1) extract-min C) O(log V) decrease-key, O(log V) extract-min D) O(1) decrease-key, O(1) extract-min
' C o r r e c t A n s w e r : C Rationale: A binary heap supports both decrease-key and extract-min in O(log V) via sift-up/sift-down. O(1) decrease-key (A) is a Fibonacci-heap property; O(1) extract-min (B, D) is impossible for comparison-based heaps maintaining order.
A) Negate all edge weights and run Prim's min version. B) Reverse the priority queue to a max-heap on original weights. C) Run Prim's on the graph's complement with original weights. D) Multiply final MST weight by 1 after running min Prim.
' C o r r e c t A n s w e r : A Rationale: Max spanning tree equals min spanning tree on negated weights, preserving the cut-property proof. Using a max-heap on original weights (B) is not the standard reduction and can fail the cut argument as stated;
' C o r r e c t A n s w e r : B Rationale: The number of basic solutions is C(n, m) = C(4, 2) = 6, obtained by choosing which 2 variables are basic. The other choices misapply combinations or powers.
A) The entering variable B) The leaving variable C) The objective coefficient D) The optimal value
' C o r r e c t A n s w e r : B Rationale: The ratio test uses the minimum nonnegative ratio of the right-hand side to the positive pivot-column coefficient to select the leaving basic variable and preserve feasibility. The entering variable is chosen by the most negative reduced cost; the objective and optimal value are not determined by the ratio test.
A) The problem is unbounded B) The current solution is optimal C) The problem is infeasible D) Degeneracy is present
' C o r r e c t A n s w e r : B Rationale: For a maximization problem, nonnegative reduced costs (or nonpositive in minimization) indicate no improving direction exists, so the current basic feasible solution is optimal. Unboundedness requires a negative reduced cost with no positive pivot entry; infeasibility and degeneracy are separate concepts.
A) Unboundedness; add a constraint B) Degeneracy; use Bland's rule C) Infeasibility; use two-phase method D) Multiple optima; use perturbation
' C o r r e c t A n s w e r : B Rationale: Cycling can occur under degeneracy when pivots repeat; Bland's rule (smallest-index entering/leaving) guarantees termination. The other pairings misattribute the cause or remedy.
A) u_i + v_j = c_ij B) u_i - v_j = c_ij C) u_i * v_j = c_ij D) u_i + v_j c_ij
' C o r r e c t A n s w e r : A Rationale: For basic cells, the potentials satisfy u_i + v_j = c_ij, forming a system solved up to a constant. Nonbasic cells require u_i + v_j c_ij for optimality; the other equations are incorrect.
A) Prim's is better for sparse graphs; Kruskal's for dense graphs B) Prim's is better for dense graphs; Kruskal's for sparse graphs C) Both have identical complexity on all graphs D) Kruskal's cannot handle disconnected graphs
' C o r r e c t A n s w e r : B
Rationale: Prim's with an array runs in O(V^2), efficient for dense graphs; Kruskal's O(E log E) is efficient for sparse graphs. They differ in complexity, and Kruskal's can handle disconnected graphs by producing a forest.
A) All edge weights are distinct. B) At least one cycle contains two edges of equal weight. C) The graph is a tree. D) Every cut has a unique lightest edge.
' C o r r e c t A n s w e r : B Rationale: If all edge weights are distinct, the MST is unique (cut property). Two distinct MSTs require a tie in some cycle, allowing an exchange; a tree has only one spanning tree. Option D is the uniqueness condition, contradicting the premise.
A) O(E + V log V) B) O(V log V + E log E) C) O(E log V) D) O(V^2)
' C o r r e c t A n s w e r : A Rationale: Fibonacci heaps support decrease-key in O(1) amortized, reducing Prim’s total to O(E + V log V). Binary heap gives O(E log V); O(V^2) is the array implementation; O(E log E) is Kruskal with sorting.
A) Any interior point of the feasible region. B) A vertex of the feasible polyhedron. C) The centroid of all feasible vertices. D) A point where all constraints are inactive.
' C o r r e c t A n s w e r : B Rationale: Basic feasible solutions correspond to extreme points (vertices) of the feasible polyhedron. Interior points are nonbasic; centroids are not vertices; all-inactive points are interior when feasible.
A) The LP is infeasible. B) The LP is unbounded in that direction. C) The current basis is degenerate. D) The LP has multiple optimal solutions.
' C o r r e c t A n s w e r : B Rationale: If the entering variable’s column has no positive ratio-test entries, the objective can increase without bound, so the LP is unbounded. Infeasibility appears in Phase I; degeneracy involves a zero ratio; multiple optima show a zero reduced cost for a nonbasic variable at optimum.
A) 10 B) 12 C) 8 D) 9
' C o r r e c t A n s w e r : D
Rationale: Objective coefficient changes alter reduced costs and can make a different vertex optimal while the feasible region is unchanged. RHS changes shift the region; redundant constraints and positive scaling leave the region unchanged but do not change the basis.
A) O(E log V) B) O(V^2) C) O(E + V log V) D) O(V log V + E)
' C o r r e c t A n s w e r : B Rationale: F o r d e n s e g r a p h s , E = ˜ ( V ^ 2 ) , s o O ( E l o g V ) b e c o m e s O ( V ^ 2 l o g V ). U s scanning for the minimum key yields O(V^2), which is optimal for dense graphs. The other bounds are either for sparse graphs (A, C, D) or incorrect.
A) The MST is unique. B) The MST contains the heaviest edge of every cycle. C) The MST is a path. D) The MST contains all edges of minimum weight.
' C o r r e c t A n s w e r : A Rationale: Distinct edge weights guarantee a unique MST by the cut property: for any cut, the unique lightest crossing edge must be in every MST. The heaviest edge of a cycle is never in an MST (cycle property), so B is false. The MST need not be a path (C) and may omit some minimum-weight edges if they create cycles (D).
A) 2x x s = 5, s 0; x = x x, x, x 0 B) 2x x + s = 5, s 0; x = x x, x, x 0 C) 2x x s = 5, s 0; x = x x, x, x 0 D) 2x x = 5; x = x x, x, x 0
' C o r r e c t A n s w e r : A Rationale: A "e c o n s t r a i n t i s c o n v e r t e d t o e q u a l i t y b y s u b t r a c t i n g a n o n n e g a t i v e s u variable x is replaced by the difference of two nonnegative variables. Option B adds a slack (wrong direction), C uses a negative surplus (nonstandard), and D omits the surplus variable.
A) All reduced costs are nonnegative (for maximization). B) All reduced costs are nonpositive (for maximization). C) The objective row has no positive entries. D) All artificial variables are zero.
' C o r r e c t A n s w e r : B Rationale: For a maximization problem, optimality occurs when all reduced costs (objective row coefficients in standard form) are 0, meaning no entering variable can improve the objective. Option A is the condition for minimization. Option C is incorrect because positive entries in the objective row indicate improvement possible. Option D relates to feasibility, not optimality.
A) The LP is infeasible. B) The LP is unbounded. C) The LP has multiple optimal solutions. D) The LP is degenerate.
' C o r r e c t A n s w e r : B Rationale: If the entering variable’s column has no positive coefficients, the ratio test fails, meaning the variable can increase indefinitely without violating constraints, so the objective is unbounded. Infeasibility is detected in phase I; multiple optima occur when a nonbasic variable has zero reduced cost at optimality; degeneracy involves zero RHS values.
A) Cut property B) Cycle property C) Greedy choice property D) Optimal substructure
' C o r r e c t A n s w e r : A Rationale: Prim’s algorithm repeatedly adds the lightest edge crossing the cut between the growing tree and the remaining vertices. The cut property ensures that this edge belongs to some MST, guaranteeing correctness. The cycle property is used for correctness of Kruskal's (avoiding cycles), while greedy choice and optimal substructure are more general concepts.
A) min by s.t. Ay c, y 0 B) min by s.t. Ay c, y 0 C) max by s.t. Ay c, y 0 D) min cy s.t. Ay b, y 0
' C o r r e c t A n s w e r : A Rationale: T h e d u a l o f a m a x i m i z a t i o n p r i m a l w i t h "d c o n s t r a i n t s a n d n o n n e g a t i v e problem with constraints and nonnegative dual variables. The objective is by and constraints are Ay c. Option B uses the wrong inequality direction, C maximizes instead of minimizes, and D swaps the roles of b and c.
A) The LP has multiple optimal solutions. B) The LP is degenerate. C) The LP is unbounded. D) The LP is infeasible.
' C o r r e c t A n s w e r : A Rationale: A zero reduced cost for a nonbasic variable indicates that increasing it does not change the objective value, so an alternative optimal solution exists (multiple optima). Degeneracy refers to a basic variable at zero, unboundedness to no leaving variable, and infeasibility to no feasible solution.
A) Degeneracy; Bland's rule B) Unboundedness; perturbation C) Infeasibility; two-phase method D) Multiple optima; lexicographic ordering
' C o r r e c t A n s w e r : A