Unit 10: Lower Bound Theory - Practice Quiz

ECAP538 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What does an internal node represent in a comparison tree?

Comparison tree Easy
A. A comparison between two elements
B. A memory location used by the algorithm
C. A randomly selected input value
D. A completed output of the algorithm

2 What does a leaf represent in a comparison tree for sorting?

Comparison tree Easy
A. A comparison still to be performed
B. A possible final ordering
C. A temporary storage location
D. A single input element

3 How many branches usually leave a node representing a binary comparison?

Comparison tree Easy
A. Three branches
B. One branch
C. Two branches
D. Four branches

4 What does the height of a comparison tree measure in worst-case analysis?

Comparison tree Easy
A. The amount of auxiliary memory
B. The maximum number of comparisons
C. The number of possible algorithms
D. The number of input elements

5 For sorting distinct elements, how many possible input orderings must a comparison tree distinguish?

Comparison tree Easy
A.
B.
C.
D.

6 What lower bound does the comparison-tree model establish for comparison-based sorting?

Comparison tree Easy
A.
B.
C.
D.

7 Which algorithm is naturally analyzed using a comparison tree?

Comparison tree Easy
A. String concatenation
B. Comparison-based sorting
C. Matrix initialization
D. Direct table lookup

8 In algorithm analysis, what is an oracle?

Oracles Easy
A. A compiler that optimizes programs
B. A device that stores every input
C. A black box that answers queries
D. A tree that sorts all elements

9 How does an algorithm obtain information from an oracle?

Oracles Easy
A. By sorting the oracle
B. By changing its internal state
C. By copying its source code
D. By submitting a query

10 In an oracle model, what resource is commonly counted to prove a lower bound?

Oracles Easy
A. The number of functions
B. The number of variables
C. The number of comments
D. The number of queries

11 Why are oracles useful in lower-bound theory?

Oracles Easy
A. They model limited information access
B. They convert every problem into sorting
C. They remove the need for input
D. They guarantee constant running time

12 What is hidden from an algorithm interacting with a black-box oracle?

Oracles Easy
A. The algorithm's own computation
B. The oracle's internal implementation
C. The returned query answers
D. The allowed query format

13 If each oracle query has two possible answers, what can one query provide at most?

Oracles Easy
A. bits of information
B. bytes of information
C. One bit of information
D. Two bytes of information

14 Which statement best describes an oracle-based lower bound?

Oracles Easy
A. It proves a maximum input size
B. It limits the program's source length
C. It limits the available memory size
D. It proves a minimum query count

15 What is the main purpose of an adversary argument?

Adversary arguments Easy
A. To select random test data
B. To prove a lower bound
C. To reduce the input size
D. To design the shortest source code

16 How does an adversary typically answer an algorithm's queries?

Adversary arguments Easy
A. To end the computation immediately
B. To reveal all information immediately
C. To select the smallest input
D. To preserve many possible inputs

17 What must be true of the answers supplied by a valid adversary?

Adversary arguments Easy
A. They must remain mutually consistent
B. They must reveal the complete input
C. They must always be random
D. They must always favor the algorithm

18 In an adversary argument, when can an algorithm safely stop?

Adversary arguments Easy
A. When every element has been modified
B. When the answer is uniquely determined
C. When it has made one query
D. When the adversary changes the rules

19 An adversary argument usually focuses on which type of algorithm behavior?

Adversary arguments Easy
A. Best-case behavior
B. Undefined behavior
C. Average-case behavior
D. Worst-case behavior

20 In the problem of finding the maximum among elements, what does each non-maximum element need to experience?

Adversary arguments Easy
A. Exactly two comparison wins
B. Exactly two comparison losses
C. At least one comparison loss
D. At least one comparison win

21 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?

Comparison tree Medium
A. comparisons
B. comparisons
C. comparisons
D. comparisons

22 A binary comparison tree has height 12. What is the largest number of distinct input cases it can distinguish?

Comparison tree Medium
A. cases
B. cases
C. cases
D. cases

23 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?

Comparison tree Medium
A.
B.
C.
D.

24 Using only the leaf-count argument, what lower bound is obtained for sorting 6 distinct elements?

Comparison tree Medium
A. comparisons
B. comparisons
C. comparisons
D. comparisons

25 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?

Comparison tree Medium
A. comparisons
B. comparisons
C. comparisons
D. comparisons

26 A comparison-based algorithm must identify the largest among 32 distinct elements. Which lower bound applies to its worst-case number of comparisons?

Comparison tree Medium
A. comparisons
B. comparisons
C. comparisons
D. comparisons

27 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?

Comparison tree Medium
A.
B.
C.
D.

28 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?

Oracles Medium
A. queries
B. queries
C. queries
D. queries

29 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?

Oracles Medium
A.
B.
C.
D.

30 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?

Oracles Medium
A.
B.
C.
D.

31 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?

Oracles Medium
A.
B.
C.
D.

32 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?

Oracles Medium
A. queries
B. queries
C. queries
D. queries

33 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?

Oracles Medium
A.
B.
C.
D.

34 An algorithm makes oracle calls, and each oracle call can be simulated using at most comparisons. What comparison upper bound does the simulation provide?

Oracles Medium
A. comparisons
B. comparisons
C. comparisons
D. comparisons

35 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?

Adversary arguments Medium
A. Exactly two candidates
B. At most half the candidates
C. Exactly one candidate
D. All but one candidate

36 For even , what worst-case comparison lower bound can an adversary establish for finding both the minimum and maximum?

Adversary arguments Medium
A.
B.
C.
D.

37 For 16 distinct elements, what lower bound does the tournament adversary give for finding the second-largest element?

Adversary arguments Medium
A. comparisons
B. comparisons
C. comparisons
D. comparisons

38 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?

Adversary arguments Medium
A. The absent instance remains consistent
B. The algorithm repeats every query
C. The array is assumed to be sorted
D. The oracle can change past answers

39 In a comparison-sorting adversary proof, what strategy most directly supports the lower bound?

Adversary arguments Medium
A. Return equality for every comparison
B. Reveal the final order immediately
C. Force comparisons in index order
D. Preserve many consistent permutations

40 An adversary has maintained a set of inputs consistent with every answer so far. What condition must hold whenever it gives the next answer?

Adversary arguments Medium
A. The updated set remains nonempty
B. The answer changes an earlier response
C. The answer matches every possible input
D. The updated set has one input

41 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?

Comparison tree Hard
A.
B.
C.
D.

42 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?

Comparison tree Hard
A.
B.
C.
D.

43 For distinct elements, what is the exact worst-case number of comparisons needed to find both the largest and the second-largest elements?

Comparison tree Hard
A.
B.
C.
D.

44 When is odd, what is the optimal worst-case number of comparisons required to find both the minimum and maximum of distinct elements?

Comparison tree Hard
A.
B.
C.
D.

45 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 ?

Comparison tree Hard
A. The equality branch duplicates a strict-order leaf
B. The equality branch is unreachable on valid inputs
C. The strict-order branches always have equal depth
D. The comparator must encode outcomes using two bits

46 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?

Comparison tree Hard
A.
B.
C.
D.

47 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?

Comparison tree Hard
A. At least
B. At least
C. At least
D. At least

48 Suppose permutation occurs with probability . For any correct binary comparison tree, which quantity lower-bounds the expected number of comparisons?

Comparison tree Hard
A.
B.
C.
D.

49 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?

Oracles Hard
A.
B.
C.
D.

50 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 ?

Oracles Hard
A.
B.
C.
D.

51 An oracle exposes individual bits of an unknown string . What is the deterministic query complexity of computing the parity ?

Oracles Hard
A.
B.
C.
D.

52 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 ?

Oracles Hard
A. queries
B. queries
C. queries
D. queries

53 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?

Oracles Hard
A.
B.
C.
D.

54 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?

Oracles Hard
A.
B.
C.
D.

55 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?

Adversary arguments Hard
A. comparisons
B. comparisons
C. comparisons
D. comparisons

56 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?

Adversary arguments Hard
A.
B.
C.
D.

57 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?

Adversary arguments Hard
A.
B.
C.
D.

58 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?

Adversary arguments Hard
A.
B.
C.
D.

59 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?

Adversary arguments Hard
A. Each output requires exactly half of all permutations
B. Each comparison must inspect two independent permutations
C. Each accepting leaf must imply one total ordering
D. Each rejecting leaf must identify every duplicate pair

60 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?

Adversary arguments Hard
A.
B.
C.
D.