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 12 MCQsApproximation
ECAP538 ·
60 questions. Pick an option to check it.
What is the main purpose of an approximation algorithm?
Not quite. Try another option.
Answer: To find a near-optimal solution efficiently
An approximation algorithm efficiently produces a solution whose quality is close to the optimal solution.
Question 2 of 60 · Approximation basics · Easy
Approximation algorithms are commonly used for which type of problem?
Not quite. Try another option.
Answer: Optimization problems that are computationally hard
Approximation algorithms are useful when finding an exact optimum is computationally expensive.
Question 3 of 60 · Approximation basics · Easy
What does the approximation ratio describe?
Not quite. Try another option.
Answer: The quality of an approximate solution
The approximation ratio compares the value of an approximate solution with the optimal value.
Question 4 of 60 · Approximation basics · Easy
What is an optimal solution to an optimization problem?
Not quite. Try another option.
Answer: The best feasible solution for the objective
An optimal solution is a feasible solution with the best possible objective value.
Question 5 of 60 · Approximation basics · Easy
Which feature distinguishes an approximation algorithm from an ordinary heuristic?
Not quite. Try another option.
Answer: A guaranteed bound on solution quality
An approximation algorithm provides a proven guarantee on how close its result is to optimal.
Question 6 of 60 · Approximation basics · Easy
What does a -approximation algorithm produce?
Not quite. Try another option.
Answer: A solution equal to the optimal value
An approximation ratio of means that the algorithm always returns an optimal solution.
Question 7 of 60 · Approximation basics · Easy
What does PTAS stand for?
Not quite. Try another option.
Answer: Polynomial-Time Approximation Scheme
A PTAS is a Polynomial-Time Approximation Scheme that can achieve different levels of approximation accuracy.
Question 8 of 60 · Task scheduling · Easy
In task scheduling, what is the makespan?
Not quite. Try another option.
Answer: The completion time of the entire schedule
The makespan is the time at which the last task finishes.
Question 9 of 60 · Task scheduling · Easy
What is a common objective when scheduling independent tasks on identical machines?
Not quite. Try another option.
Answer: Minimize the schedule's makespan
A common scheduling objective is to finish all tasks as early as possible by minimizing the makespan.
Question 10 of 60 · Task scheduling · Easy
In basic list scheduling, where is the next task assigned?
Not quite. Try another option.
Answer: To the currently least-loaded machine
List scheduling assigns each task to the machine with the smallest current load.
Question 11 of 60 · Task scheduling · Easy
Two tasks take and time units. If they run simultaneously on two separate machines, what is the makespan?
Not quite. Try another option.
Answer: time units
Both tasks start together, so the schedule ends when the longer task finishes after time units.
Question 12 of 60 · Task scheduling · Easy
What does the load of a machine represent in task scheduling?
Not quite. Try another option.
Answer: The sum of task times assigned to it
A machine's load is the total processing time of all tasks assigned to that machine.
Question 13 of 60 · Task scheduling · Easy
How does the LPT scheduling rule order tasks before assigning them?
Not quite. Try another option.
Answer: By longest processing time first
LPT stands for Longest Processing Time first, so tasks are sorted from longest to shortest.
Question 14 of 60 · Bin packing · Easy
What is the objective of the bin packing problem?
Not quite. Try another option.
Answer: Minimize the number of bins used
Bin packing seeks to place all items into as few fixed-capacity bins as possible.
Question 15 of 60 · Bin packing · Easy
What condition must items placed in one bin satisfy?
Not quite. Try another option.
Answer: Their total size must not exceed capacity
The sum of the sizes of items in a bin cannot exceed that bin's capacity.
Question 16 of 60 · Bin packing · Easy
How does the First Fit method place a new item?
Not quite. Try another option.
Answer: Into the first existing bin with enough space
First Fit scans bins in order and uses the first one that can hold the item.
Question 17 of 60 · Bin packing · Easy
How does the Next Fit method handle bins?
Not quite. Try another option.
Answer: It keeps only one current bin open
Next Fit considers only the current bin and opens a new one when the item does not fit.
Question 18 of 60 · Bin packing · Easy
How does the Best Fit method choose a bin for an item?
Not quite. Try another option.
Answer: It selects the bin leaving the least space
Best Fit places an item in the feasible bin that will have the smallest remaining capacity.
Question 19 of 60 · Bin packing · Easy
A bin has capacity . Can items of sizes and be packed together?
Not quite. Try another option.
Answer: Yes, because their total is exactly
The item sizes add to , so they exactly fill one bin.
Question 20 of 60 · Bin packing · Easy
What does First Fit Decreasing do before applying First Fit?
Not quite. Try another option.
Answer: It sorts items from largest to smallest
First Fit Decreasing sorts items in non-increasing size order and then applies First Fit.
Question 21 of 60 · Approximation basics · Medium
A minimization algorithm returns a solution of cost , while the optimal cost is . What is the approximation ratio on this instance?
Not quite. Try another option.
Answer:
For minimization, the ratio is .
Question 22 of 60 · Approximation basics · Medium
A maximization algorithm guarantees a value of at least . If , what value is guaranteed?
Not quite. Try another option.
Answer:
The guarantee is .
Question 23 of 60 · Approximation basics · Medium
Which running-time property is required of a polynomial-time approximation scheme (PTAS)?
Not quite. Try another option.
Answer: Polynomial in for each fixed
A PTAS runs in polynomial time with respect to input size when is fixed.
Question 24 of 60 · Approximation basics · Medium
What distinguishes an FPTAS from a PTAS?
Not quite. Try another option.
Answer: It is polynomial in both and
An FPTAS is polynomial in the input size and in the reciprocal of the error parameter.
Question 25 of 60 · Approximation basics · Medium
In the standard -approximation for Vertex Cover, both endpoints of every edge in a maximal matching are selected. Why is the factor obtained?
Not quite. Try another option.
Answer: The algorithm selects vertices while
Every matching edge needs at least one distinct cover vertex, so , while the algorithm selects vertices.
Question 26 of 60 · Approximation basics · Medium
A minimization algorithm produces a feasible solution of cost , and a proven lower bound on is . What approximation factor can be certified?
Not quite. Try another option.
Answer: At most
Since , the ratio is at most ; the exact ratio may be smaller.
Question 27 of 60 · Task scheduling · Medium
List scheduling assigns tasks in the order to three identical machines, always choosing a least-loaded machine. What is the resulting makespan?
Not quite. Try another option.
Answer:
The assignments produce final loads equivalent to , , and , so the makespan is .
Question 28 of 60 · Task scheduling · Medium
For independent tasks on identical machines, what approximation guarantee does basic list scheduling provide for minimizing makespan?
Not quite. Try another option.
Answer:
Graham's list-scheduling algorithm has approximation ratio .
Question 29 of 60 · Task scheduling · Medium
How does Longest Processing Time first (LPT) choose the task order before applying list scheduling?
Not quite. Try another option.
Answer: Nonincreasing processing time
LPT sorts tasks from longest to shortest and then assigns each task to a least-loaded machine.
Question 30 of 60 · Task scheduling · Medium
LPT schedules tasks with processing times on three identical machines. What makespan does it produce?
Not quite. Try another option.
Answer:
After assigning , , and , the tasks and create final loads , , and .
Question 31 of 60 · Task scheduling · Medium
Tasks have processing times and must run on two identical machines. What is the average-load lower bound on the optimal makespan?
Not quite. Try another option.
Answer:
The total processing time is , so the average-load lower bound is .
Question 32 of 60 · Task scheduling · Medium
List scheduling processes tasks on two identical machines in the given order. If the optimal makespan is , what ratio does the produced makespan have to ?
Not quite. Try another option.
Answer:
List scheduling produces a makespan of , giving a ratio of .
Question 33 of 60 · Task scheduling · Medium
The LPT approximation bound is . What does this bound become for three machines?
Not quite. Try another option.
Answer:
Substituting gives .
Question 34 of 60 · Bin packing · Medium
Next Fit processes items with bin capacity . How many bins does it use?
Not quite. Try another option.
Answer:
The bins formed are , , , and , so four bins are used.
Question 35 of 60 · Bin packing · Medium
First Fit processes items with bin capacity . How many bins does it use?
Not quite. Try another option.
Answer:
First Fit forms bins , , and .
Question 36 of 60 · Bin packing · Medium
For items of sizes and bin capacity , what lower bound follows from total item size?
Not quite. Try another option.
Answer: bins
The total size is , so at least bins are necessary.
Question 37 of 60 · Bin packing · Medium
A bin has capacity , and the items are . What lower bound follows specifically from the items larger than half the bin capacity?
Not quite. Try another option.
Answer: At least bins
Each item of size must be placed in a different bin, giving a lower bound of three bins.
Question 38 of 60 · Bin packing · Medium
Which standard worst-case guarantee is associated with the Next Fit bin-packing algorithm?
Not quite. Try another option.
Answer:
Next Fit uses fewer than twice the optimal number of bins, commonly stated as .
Question 39 of 60 · Bin packing · Medium
Which expression is a standard upper bound for First Fit Decreasing (FFD)?
Not quite. Try another option.
Answer:
FFD has the standard bound , up to equivalent integer formulations.
Question 40 of 60 · Bin packing · Medium
Bins have capacity , and items arrive as . Next Fit uses four bins. How many bins does First Fit Decreasing use?
Not quite. Try another option.
Answer: bins
FFD pairs each item with a item, producing three full bins.
Question 41 of 60 · Approximation basics · Hard
For a minimization problem, an algorithm returns a solution of cost , while a valid lower-bound certificate gives . What is the strongest approximation guarantee justified solely by these values?
Not quite. Try another option.
Answer: At most a -approximation
Since , the ratio is at most . The actual ratio may be smaller, so equality is not established.
Question 42 of 60 · Approximation basics · Hard
For a maximization problem, a feasible solution has value , and a relaxation proves . Under the convention that a -approximation satisfies , what factor is certified?
Not quite. Try another option.
Answer: A factor of
The upper bound gives , equivalently .
Question 43 of 60 · Approximation basics · Hard
An algorithm returns a -approximation in time . How should this scheme be classified from the stated bound?
Not quite. Try another option.
Answer: A PTAS, but not an FPTAS or EPTAS from this bound
For every fixed , the runtime is polynomial in , so this is a PTAS. The exponent depends on , which does not satisfy EPTAS or FPTAS runtime requirements.
Question 44 of 60 · Approximation basics · Hard
Suppose an L-reduction from minimization problem to minimization problem has constants and . If has an -approximation, which ratio follows for ?
Not quite. Try another option.
Answer:
The relative error transferred from is at most times , yielding ratio .
Question 45 of 60 · Approximation basics · Hard
For a minimization problem, it is NP-hard to distinguish instances with from those with , where . What consequence follows?
Not quite. Try another option.
Answer: A polynomial-time -approximation would imply
On a yes-instance, a -approximation returns cost at most ; on a no-instance, every feasible solution costs more than . It would therefore decide the NP-hard gap.
Question 46 of 60 · Approximation basics · Hard
A minimization algorithm guarantees for every instance, and all instances satisfy . Which multiplicative guarantee follows?
Not quite. Try another option.
Answer:
Dividing by gives .
Question 47 of 60 · Task scheduling · Hard
For list scheduling of independent jobs on identical parallel machines, which worst-case makespan guarantee is valid?
Not quite. Try another option.
Answer:
Graham's list-scheduling analysis uses the average-load and longest-job lower bounds to obtain the factor .
Question 48 of 60 · Task scheduling · Hard
List scheduling is run on three identical machines using the order , always assigning the next job to a least-loaded machine. Which outcome is correct?
Not quite. Try another option.
Answer: , , ratio
The six unit jobs create loads , after which the length- job produces makespan . An optimal schedule places the length- job alone and splits the unit jobs across the other machines.
Question 49 of 60 · Task scheduling · Hard
The LPT rule sorts jobs by nonincreasing processing time and then list-schedules them. What guarantee does LPT provide on three identical machines?
Not quite. Try another option.
Answer:
LPT has ratio . Substituting gives .
Question 50 of 60 · Task scheduling · Hard
LPT schedules jobs with processing times on two identical machines. Which statement describes the resulting approximation ratio?
Not quite. Try another option.
Answer: LPT obtains while the optimum is , giving ratio
LPT produces loads . The jobs can instead be partitioned as and , so the optimum is .
Question 51 of 60 · Task scheduling · Hard
Apply LPT to jobs on two identical machines. Which comparison with the optimum is correct?
Not quite. Try another option.
Answer: LPT gives , while the optimum is
LPT produces loads . The partition and gives two loads of , matching the average-load lower bound.
Question 52 of 60 · Task scheduling · Hard
A precedence-constrained instance on four identical machines has total work and critical-path length . Using for list scheduling, what instance-specific ratio is certified?
Not quite. Try another option.
Answer: At most , because and
The upper bound is . The critical path gives , so the certified ratio is .
Question 53 of 60 · Task scheduling · Hard
Positive integer job lengths sum to . For two identical machines, which condition is equivalent to the existence of a schedule with makespan at most ?
Not quite. Try another option.
Answer: The jobs have a subset whose processing times sum exactly to
Because the total load is , both machines must receive load exactly . Thus such a schedule exists precisely when the job lengths admit an equal partition.
Question 54 of 60 · Bin packing · Hard
Next Fit processes capacity- items in the order . How many bins does it use, and what is the optimum?
Not quite. Try another option.
Answer: Next Fit uses bins; the optimum uses
The second opens a new bin, which the first fills; the final then opens a third bin. Offline, each can be paired with a .
Question 55 of 60 · Bin packing · Hard
Which absolute worst-case bound follows from the fact that every pair of consecutive bins closed by Next Fit has combined load greater than ?
Not quite. Try another option.
Answer:
Pairing consecutive Next Fit bins shows that sufficiently many bin pairs each contain total size greater than . Comparing total size with the optimum yields the bound .
Question 56 of 60 · Bin packing · Hard
Which expression is the tight classical worst-case upper bound for First Fit Decreasing on capacity- bin packing?
Not quite. Try another option.
Answer:
The tight FFD theorem is , with the floor accounting for the integral number of bins.
Question 57 of 60 · Bin packing · Hard
First Fit Decreasing is applied to items . Which result demonstrates its absolute-ratio edge case?
Not quite. Try another option.
Answer: FFD uses bins and the optimum uses
FFD forms loads , , and . An optimum packs each bin as , giving ratio .
Question 58 of 60 · Bin packing · Hard
Every item in a bin-packing instance has size strictly greater than . Which polynomial-time method finds an optimal packing?
Not quite. Try another option.
Answer: Find a maximum matching of compatible item pairs and leave unmatched items alone
No bin can contain three items, so each bin contains either one item or a compatible pair. Maximizing the number of disjoint compatible pairs via matching minimizes the number of bins.
Question 59 of 60 · Bin packing · Hard
An instance contains four items of size and five items of size . What do the volume bound and the count of items larger than establish?
Not quite. Try another option.
Answer: They give lower bound , and a -bin packing is feasible
The total size is , so volume requires four bins; the four items larger than also require distinct bins. A feasible packing distributes the five smaller items among those four bins.
Question 60 of 60 · Bin packing · Hard
A bin-packing algorithm satisfies for every instance. What approximation conclusion follows directly?
Not quite. Try another option.
Answer: Its asymptotic ratio is at most , but an absolute ratio is not proved
The additive constant vanishes relative to as the optimum grows, giving asymptotic ratio . For small optimum values, the additive term can make the absolute ratio larger.
That's unit 12
Answer a few questions and your score shows up here.
Nearly through. Did unit 12 of ECAP538 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 12 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.