Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 10 MCQsLower Bound Theory
ECAP538 ·
60 questions. Pick an option to check it.
What does an internal node represent in a comparison tree?
Not quite. Try another option.
Answer: A comparison between two elements
Each internal node represents a comparison performed by the algorithm.
Question 2 of 60 · Comparison tree · Easy
What does a leaf represent in a comparison tree for sorting?
Not quite. Try another option.
Answer: A possible final ordering
A leaf represents an outcome, such as one possible sorted ordering of the input.
Question 3 of 60 · Comparison tree · Easy
How many branches usually leave a node representing a binary comparison?
Not quite. Try another option.
Answer: Two branches
A binary comparison has two possible outcomes, so its node has two outgoing branches.
Question 4 of 60 · Comparison tree · Easy
What does the height of a comparison tree measure in worst-case analysis?
Not quite. Try another option.
Answer: The maximum number of comparisons
The longest root-to-leaf path gives the maximum number of comparisons made on any input.
Question 5 of 60 · Comparison tree · Easy
For sorting distinct elements, how many possible input orderings must a comparison tree distinguish?
Not quite. Try another option.
Answer:
There are permutations of distinct elements, and sorting must distinguish among them.
Question 6 of 60 · Comparison tree · Easy
What lower bound does the comparison-tree model establish for comparison-based sorting?
Not quite. Try another option.
Answer:
Any comparison-based sorting algorithm requires comparisons in the worst case.
Question 7 of 60 · Comparison tree · Easy
Which algorithm is naturally analyzed using a comparison tree?
Not quite. Try another option.
Answer: Comparison-based sorting
Comparison trees model algorithms whose decisions depend on comparisons between input elements.
Question 8 of 60 · Oracles · Easy
In algorithm analysis, what is an oracle?
Not quite. Try another option.
Answer: A black box that answers queries
An oracle is an abstract black box that provides answers when an algorithm submits queries.
Question 9 of 60 · Oracles · Easy
How does an algorithm obtain information from an oracle?
Not quite. Try another option.
Answer: By submitting a query
The algorithm communicates with an oracle through queries and receives answers.
Question 10 of 60 · Oracles · Easy
In an oracle model, what resource is commonly counted to prove a lower bound?
Not quite. Try another option.
Answer: The number of queries
Oracle lower bounds commonly measure how many queries are necessary to solve a problem.
Question 11 of 60 · Oracles · Easy
Why are oracles useful in lower-bound theory?
Not quite. Try another option.
Answer: They model limited information access
Oracles help analyze how much information an algorithm must request before finding a solution.
Question 12 of 60 · Oracles · Easy
What is hidden from an algorithm interacting with a black-box oracle?
Not quite. Try another option.
Answer: The oracle's internal implementation
The algorithm can observe answers but does not directly access the oracle's internal implementation.
Question 13 of 60 · Oracles · Easy
If each oracle query has two possible answers, what can one query provide at most?
Not quite. Try another option.
Answer: One bit of information
Choosing between two possible answers provides at most one bit of information.
Question 14 of 60 · Oracles · Easy
Which statement best describes an oracle-based lower bound?
Not quite. Try another option.
Answer: It proves a minimum query count
An oracle-based lower bound shows that every algorithm needs at least a certain number of queries.
Question 15 of 60 · Adversary arguments · Easy
What is the main purpose of an adversary argument?
Not quite. Try another option.
Answer: To prove a lower bound
An adversary argument demonstrates that an algorithm must perform a minimum amount of work.
Question 16 of 60 · Adversary arguments · Easy
How does an adversary typically answer an algorithm's queries?
Not quite. Try another option.
Answer: To preserve many possible inputs
The adversary gives consistent answers that keep as many input possibilities unresolved as possible.
Question 17 of 60 · Adversary arguments · Easy
What must be true of the answers supplied by a valid adversary?
Not quite. Try another option.
Answer: They must remain mutually consistent
Adversary answers must be compatible with at least one valid input throughout the interaction.
Question 18 of 60 · Adversary arguments · Easy
In an adversary argument, when can an algorithm safely stop?
Not quite. Try another option.
Answer: When the answer is uniquely determined
The algorithm can stop only when the information obtained determines a correct answer.
Question 19 of 60 · Adversary arguments · Easy
An adversary argument usually focuses on which type of algorithm behavior?
Not quite. Try another option.
Answer: Worst-case behavior
The adversary forces the algorithm into a difficult sequence of decisions, establishing a worst-case bound.
Question 20 of 60 · Adversary arguments · Easy
In the problem of finding the maximum among elements, what does each non-maximum element need to experience?
Not quite. Try another option.
Answer: At least one comparison loss
Every element except the maximum must lose a comparison, which leads to the lower bound of comparisons.
Question 21 of 60 · Comparison tree · Medium
A comparison-based sorting algorithm is applied to 5 distinct elements. What minimum worst-case number of comparisons follows from the comparison-tree leaf-count argument?
Not quite. Try another option.
Answer: comparisons
The tree needs at least leaves. Therefore, its height is at least .
Question 22 of 60 · Comparison tree · Medium
A binary comparison tree has height 12. What is the largest number of distinct input cases it can distinguish?
Not quite. Try another option.
Answer: cases
A binary tree of height has at most leaves. For , this is .
Question 23 of 60 · Comparison tree · Medium
After several comparisons, the resulting partial order is consistent with different total orders. What information-theoretic lower bound applies to the number of additional binary comparisons required?
Not quite. Try another option.
Answer:
The remaining subtree must distinguish among possibilities, so it needs height at least .
Question 24 of 60 · Comparison tree · Medium
Using only the leaf-count argument, what lower bound is obtained for sorting 6 distinct elements?
Not quite. Try another option.
Answer: comparisons
There are permutations. Since , at least comparisons are required.
Question 25 of 60 · Comparison tree · Medium
Two sorted lists contain 3 and 5 distinct elements. Their merged order can correspond to any interleaving that preserves each list's internal order. What lower bound follows from counting these interleavings?
Not quite. Try another option.
Answer: comparisons
There are possible interleavings, giving the lower bound .
Question 26 of 60 · Comparison tree · Medium
A comparison-based algorithm must identify the largest among 32 distinct elements. Which lower bound applies to its worst-case number of comparisons?
Not quite. Try another option.
Answer: comparisons
Every nonmaximum element must lose at least one comparison. Eliminating 31 candidates requires at least comparisons.
Question 27 of 60 · Comparison tree · Medium
Under a uniform distribution over all input permutations, which expression is an information-theoretic lower bound on the average number of comparisons needed for sorting?
Not quite. Try another option.
Answer:
A binary comparison tree distinguishing equally likely permutations has average leaf depth at least .
Question 28 of 60 · Oracles · Medium
A hidden object is one of 100 possibilities, and every oracle query returns one bit. What is the minimum number of queries required in the worst case?
Not quite. Try another option.
Answer: queries
With binary answers, at most possibilities can be distinguished. Since , at least 7 queries are needed.
Question 29 of 60 · Oracles · Medium
An oracle reveals any requested bit of an unknown -bit string. How many queries are required in the worst case to compute the parity of the entire string exactly?
Not quite. Try another option.
Answer:
If any bit is unqueried, changing only that bit changes the parity without changing the observed answers. Thus every bit must be queried.
Question 30 of 60 · Oracles · Medium
Exactly one of positions is marked. A query asks whether a chosen position is marked. What is the deterministic worst-case number of queries needed to identify the marked position?
Not quite. Try another option.
Answer:
After negative answers, the final unqueried position must be marked. An adversary can force this situation.
Question 31 of 60 · Oracles · Medium
An unsorted array has positions and may contain no marked position. A query tests one chosen position. How many deterministic queries are necessary in the worst case to decide whether a mark exists?
Not quite. Try another option.
Answer:
If even one position remains unqueried, it might contain a mark. The all-negative instance therefore requires querying all positions.
Question 32 of 60 · Oracles · Medium
Exactly one of 64 items is defective. An oracle accepts any subset and reports whether that subset contains the defective item. What is the optimal worst-case number of queries?
Not quite. Try another option.
Answer: queries
Six binary answers can distinguish possibilities, and repeatedly testing half of the remaining items achieves this bound.
Question 33 of 60 · Oracles · Medium
A value oracle returns the exact value stored at a requested array index. The values are arbitrary and unrelated. How many value queries are necessary to find the minimum in the worst case?
Not quite. Try another option.
Answer:
An unqueried position could contain a value smaller than every observed value, so all positions must be queried.
Question 34 of 60 · Oracles · Medium
An algorithm makes oracle calls, and each oracle call can be simulated using at most comparisons. What comparison upper bound does the simulation provide?
Not quite. Try another option.
Answer: comparisons
Replacing each of the oracle calls with a simulation using at most comparisons gives at most comparisons.
Question 35 of 60 · Adversary arguments · Medium
In a lower-bound proof for finding the maximum, an adversary declares one compared element smaller while keeping the other as a possible maximum. How many candidates can one comparison eliminate?
Not quite. Try another option.
Answer: Exactly one candidate
Only the element that loses the comparison is certified not to be the maximum, so one candidate is eliminated.
Question 36 of 60 · Adversary arguments · Medium
For even , what worst-case comparison lower bound can an adversary establish for finding both the minimum and maximum?
Not quite. Try another option.
Answer:
Pairing elements first and then maintaining separate minimum and maximum candidates yields the lower bound .
Question 37 of 60 · Adversary arguments · Medium
For 16 distinct elements, what lower bound does the tournament adversary give for finding the second-largest element?
Not quite. Try another option.
Answer: comparisons
Finding the maximum needs 15 comparisons. It defeats 4 elements, and finding the largest of those requires 3 more, totaling 18.
Question 38 of 60 · Adversary arguments · Medium
To prove a lower bound for unsuccessful search in an unsorted array, an adversary answers "not present here" whenever a new position is queried. Why can it continue doing so through all positions?
Not quite. Try another option.
Answer: The absent instance remains consistent
All negative answers remain consistent with an input containing no target, so the algorithm cannot conclude absence before checking every position.
Question 39 of 60 · Adversary arguments · Medium
In a comparison-sorting adversary proof, what strategy most directly supports the lower bound?
Not quite. Try another option.
Answer: Preserve many consistent permutations
The adversary chooses consistent answers that leave many possible permutations, forcing the algorithm to gather enough information to isolate one order.
Question 40 of 60 · Adversary arguments · Medium
An adversary has maintained a set of inputs consistent with every answer so far. What condition must hold whenever it gives the next answer?
Not quite. Try another option.
Answer: The updated set remains nonempty
An adversary answer is valid only if at least one actual input remains consistent with the complete transcript.
Question 41 of 60 · Comparison tree · Hard
A deterministic comparison sort operates on distinct keys. What is the tightest integer lower bound obtained solely by counting leaves in its binary comparison tree?
Not quite. Try another option.
Answer:
Each of the input permutations must reach a distinct leaf. A binary tree with leaves has height at least .
Question 42 of 60 · Comparison tree · Hard
There are labeled records whose ordered key values have known multiplicities , where . If each comparison has outcomes less than, equal to, or greater than, what information-theoretic height bound follows for determining the complete weak order?
Not quite. Try another option.
Answer:
There are distinguishable assignments of records to ordered key groups. A ternary comparison tree with that many leaves requires the stated height.
Question 43 of 60 · Comparison tree · Hard
For distinct elements, what is the exact worst-case number of comparisons needed to find both the largest and the second-largest elements?
Not quite. Try another option.
Answer:
A tournament finds the maximum using comparisons. The second-largest is the largest among the elements that lost directly to the maximum, requiring more.
Question 44 of 60 · Comparison tree · Hard
When is odd, what is the optimal worst-case number of comparisons required to find both the minimum and maximum of distinct elements?
Not quite. Try another option.
Answer:
Pairing elements lets one comparison classify each pair, followed by separate minimum and maximum tournaments. The matching lower bound gives comparisons.
Question 45 of 60 · Comparison tree · Hard
A comparator can return less than, equal to, or greater than. Why does sorting distinct keys still have the leaf-counting lower bound rather than ?
Not quite. Try another option.
Answer: The equality branch is unreachable on valid inputs
Because all keys are distinct, no comparison can return equality. Each reachable internal node therefore has at most two children, so the effective decision tree is binary.
Question 46 of 60 · Comparison tree · Hard
Two sorted sequences have lengths and , and all keys are distinct. What is the strongest direct lower bound obtained by counting all possible interleavings in a binary comparison tree?
Not quite. Try another option.
Answer:
The merged order can be any of interleavings preserving each input's internal order. Distinguishing them requires at least the logarithm of that number.
Question 47 of 60 · Comparison tree · Hard
A randomized comparison sort is correct on every input. If input permutations are uniformly distributed, which lower bound applies to its expected number of comparisons, averaged over both inputs and internal randomness?
Not quite. Try another option.
Answer: At least
Every fixed deterministic tree in the algorithm's random mixture has average depth at least under the uniform distribution. Averaging over the mixture preserves this bound.
Question 48 of 60 · Comparison tree · Hard
Suppose permutation occurs with probability . For any correct binary comparison tree, which quantity lower-bounds the expected number of comparisons?
Not quite. Try another option.
Answer:
Root-to-leaf paths form a binary prefix code for the permutations. The expected code length is at least the Shannon entropy .
Question 49 of 60 · Oracles · Hard
A Boolean oracle hides a string promised to be either all zeros or to contain exactly one . How many queries are necessary in the deterministic worst case to decide which case holds?
Not quite. Try another option.
Answer:
After any zero answers, both an all-zero string and a string whose only is at the unqueried position remain consistent.
Question 50 of 60 · Oracles · Hard
For the same promise problem—an all-zero string versus exactly one —what is the bounded-error randomized query complexity when every valid input must be answered correctly with probability at least ?
Not quite. Try another option.
Answer:
To detect a at every possible position with constant probability, a classical randomized algorithm must query a constant fraction of all positions. Querying all positions gives the matching upper bound.
Question 51 of 60 · Oracles · Hard
An oracle exposes individual bits of an unknown string . What is the deterministic query complexity of computing the parity ?
Not quite. Try another option.
Answer:
If any bit is unqueried, flipping only that bit preserves the transcript but reverses parity. Thus every bit must be queried in the worst case.
Question 52 of 60 · Oracles · Hard
Problem has a lower bound of queries in oracle model . Every query to oracle can be simulated using at most queries to oracle . What lower bound follows for solving in model ?
Not quite. Try another option.
Answer: queries
An algorithm using queries to would yield a -oracle algorithm using at most queries. Since , it follows that .
Question 53 of 60 · Oracles · Hard
For the Boolean OR function, a -input can have a one-bit certificate, while the all-zero input needs an -bit certificate. What deterministic worst-case oracle-query lower bound follows?
Not quite. Try another option.
Answer:
Certifying that OR is zero requires verifying every input bit. Therefore the maximum certificate complexity, and hence deterministic query complexity, is .
Question 54 of 60 · Oracles · Hard
An oracle query has at most possible answers, and every valid hidden object among candidates must be uniquely identified. What general deterministic query lower bound follows?
Not quite. Try another option.
Answer:
A depth- query tree has at most transcripts. Unique identification requires , giving .
Question 55 of 60 · Adversary arguments · Hard
In an adversary proof for finding the maximum, each element initially forms a separate candidate component. A comparison eliminates at most one candidate for maximum. What lower bound results?
Not quite. Try another option.
Answer: comparisons
Initially all elements may be the maximum. Each comparison gives one element a loss and eliminates at most that one candidate, so eliminating candidates requires comparisons.
Question 56 of 60 · Adversary arguments · Hard
For simultaneously finding the minimum and maximum, an adversary initially labels every element as eligible for both roles. Which worst-case lower bound can be forced by making comparisons between two unclassified elements remove only one minimum candidate and one maximum candidate?
Not quite. Try another option.
Answer:
The first comparison involving a pair can eliminate one minimum and one maximum candidate, while later eliminations generally cost separately. This yields the tight bound .
Question 57 of 60 · Adversary arguments · Hard
A target is promised not to equal any of the keys in a sorted array. An adversary keeps every feasible insertion gap consistent with the answers. What comparison lower bound follows?
Not quite. Try another option.
Answer:
There are possible insertion gaps. Equality is excluded, so each comparison has only two feasible outcomes and can distinguish at most two sets of gaps.
Question 58 of 60 · Adversary arguments · Hard
In finding the largest and second-largest among arbitrary distinct elements, a weighted adversary ensures that the final maximum has defeated at least elements directly. What total lower bound does this establish?
Not quite. Try another option.
Answer:
Finding the maximum costs at least comparisons. The direct losers are the only second-largest candidates and require at least additional comparisons.
Question 59 of 60 · Adversary arguments · Hard
Why can an adversary prove an comparison lower bound for deciding whether real numbers are all distinct, despite the problem having only two possible outputs?
Not quite. Try another option.
Answer: Each accepting leaf must imply one total ordering
If an accepting leaf leaves two adjacent elements unordered, they can be made equal without contradicting its comparisons. Thus an all-distinct leaf must determine a total order, requiring at least accepting regions.
Question 60 of 60 · Adversary arguments · Hard
Two nonempty sorted lists of lengths and must be merged. An adversary answers cross-list comparisons so that neither list can be certified exhausted prematurely. What exact worst-case lower bound can it force?
Not quite. Try another option.
Answer:
The adversary can keep the next element of either list feasible until only one output element remains. Hence every earlier output position requires a comparison, totaling .
That's unit 10
Answer a few questions and your score shows up here.
Nearly through. Did unit 10 of ECAP538 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 10 of ECAP538 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.