A PTAS is a Polynomial-Time Approximation Scheme that can achieve different levels of approximation accuracy.
Incorrect! Try again.
8In task scheduling, what is the makespan?
Task scheduling
Easy
A.The waiting time of the first task
B.The number of available machines
C.The completion time of the entire schedule
D.The duration of the shortest task
Correct Answer: The completion time of the entire schedule
Explanation:
The makespan is the time at which the last task finishes.
Incorrect! Try again.
9What is a common objective when scheduling independent tasks on identical machines?
Task scheduling
Easy
A.Place every task on one machine
B.Minimize the schedule's makespan
C.Maximize the number of idle machines
D.Increase every task's processing time
Correct Answer: Minimize the schedule's makespan
Explanation:
A common scheduling objective is to finish all tasks as early as possible by minimizing the makespan.
Incorrect! Try again.
10In basic list scheduling, where is the next task assigned?
Task scheduling
Easy
A.To every available machine at once
B.To the currently least-loaded machine
C.To the currently most-loaded machine
D.To a newly created machine each time
Correct Answer: To the currently least-loaded machine
Explanation:
List scheduling assigns each task to the machine with the smallest current load.
Incorrect! Try again.
11Two tasks take and time units. If they run simultaneously on two separate machines, what is the makespan?
Task scheduling
Easy
A. time units
B. time units
C. time units
D. time units
Correct Answer: time units
Explanation:
Both tasks start together, so the schedule ends when the longer task finishes after time units.
Incorrect! Try again.
12What does the load of a machine represent in task scheduling?
Task scheduling
Easy
A.The order in which tasks arrived
B.The duration of the smallest task
C.The number of machines in the system
D.The sum of task times assigned to it
Correct Answer: The sum of task times assigned to it
Explanation:
A machine's load is the total processing time of all tasks assigned to that machine.
Incorrect! Try again.
13How does the LPT scheduling rule order tasks before assigning them?
Task scheduling
Easy
A.By random processing time order
B.By shortest processing time first
C.By earliest arrival time first
D.By longest processing time first
Correct Answer: By longest processing time first
Explanation:
LPT stands for Longest Processing Time first, so tasks are sorted from longest to shortest.
Incorrect! Try again.
14What is the objective of the bin packing problem?
Bin packing
Easy
A.Maximize the size of every item
B.Minimize the number of bins used
C.Place each item in a separate bin
D.Make all item sizes identical
Correct Answer: Minimize the number of bins used
Explanation:
Bin packing seeks to place all items into as few fixed-capacity bins as possible.
Incorrect! Try again.
15What condition must items placed in one bin satisfy?
Bin packing
Easy
A.Their sizes must all be equal
B.Their number must match the bin capacity
C.Their total size must equal zero
D.Their total size must not exceed capacity
Correct Answer: Their total size must not exceed capacity
Explanation:
The sum of the sizes of items in a bin cannot exceed that bin's capacity.
Incorrect! Try again.
16How does the First Fit method place a new item?
Bin packing
Easy
A.Into the fullest bin without checking capacity
B.Into the first existing bin with enough space
C.Into the last existing bin with any space
D.Into a new bin regardless of free space
Correct Answer: Into the first existing bin with enough space
Explanation:
First Fit scans bins in order and uses the first one that can hold the item.
Incorrect! Try again.
17How does the Next Fit method handle bins?
Bin packing
Easy
A.It places every item in two bins
B.It sorts all bins by remaining space
C.It checks every previously opened bin
D.It keeps only one current bin open
Correct Answer: It keeps only one current bin open
Explanation:
Next Fit considers only the current bin and opens a new one when the item does not fit.
Incorrect! Try again.
18How does the Best Fit method choose a bin for an item?
Bin packing
Easy
A.It selects the bin opened most recently
B.It selects the bin having the most space
C.It selects a random bin with free space
D.It selects the bin leaving the least space
Correct Answer: It selects the bin leaving the least space
Explanation:
Best Fit places an item in the feasible bin that will have the smallest remaining capacity.
Incorrect! Try again.
19A bin has capacity . Can items of sizes and be packed together?
Bin packing
Easy
A.No, because their total is greater than
B.Yes, because item sizes are always ignored
C.Yes, because their total is exactly
D.No, because both exceed half the capacity
Correct Answer: Yes, because their total is exactly
Explanation:
The item sizes add to , so they exactly fill one bin.
Incorrect! Try again.
20What does First Fit Decreasing do before applying First Fit?
Bin packing
Easy
A.It doubles the capacity of each bin
B.It divides every item into equal parts
C.It sorts items from largest to smallest
D.It removes all items smaller than one
Correct Answer: It sorts items from largest to smallest
Explanation:
First Fit Decreasing sorts items in non-increasing size order and then applies First Fit.
Incorrect! Try again.
21A minimization algorithm returns a solution of cost , while the optimal cost is . What is the approximation ratio on this instance?
Approximation basics
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
For minimization, the ratio is .
Incorrect! Try again.
22A maximization algorithm guarantees a value of at least . If , what value is guaranteed?
Approximation basics
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The guarantee is .
Incorrect! Try again.
23Which running-time property is required of a polynomial-time approximation scheme (PTAS)?
Approximation basics
Medium
A.Constant in for every
B.Polynomial in for each fixed
C.Linear in both and
D.Polynomial in for each fixed
Correct Answer: Polynomial in for each fixed
Explanation:
A PTAS runs in polynomial time with respect to input size when is fixed.
Incorrect! Try again.
24What distinguishes an FPTAS from a PTAS?
Approximation basics
Medium
A.It applies only to maximization problems
B.It always finds an exactly optimal solution
C.It is polynomial in both and
D.It has a fixed approximation ratio of
Correct Answer: It is polynomial in both and
Explanation:
An FPTAS is polynomial in the input size and in the reciprocal of the error parameter.
Incorrect! Try again.
25In the standard -approximation for Vertex Cover, both endpoints of every edge in a maximal matching are selected. Why is the factor obtained?
Approximation basics
Medium
A.The algorithm selects vertices while
B.Every optimal cover contains both endpoints of each edge
C.Every selected vertex covers exactly two graph edges
D.The algorithm selects vertices while
Correct Answer: The algorithm selects vertices while
Explanation:
Every matching edge needs at least one distinct cover vertex, so , while the algorithm selects vertices.
Incorrect! Try again.
26A minimization algorithm produces a feasible solution of cost , and a proven lower bound on is . What approximation factor can be certified?
Approximation basics
Medium
A.At least
B.At most
C.At most
D.Exactly
Correct Answer: At most
Explanation:
Since , the ratio is at most ; the exact ratio may be smaller.
Incorrect! Try again.
27List scheduling assigns tasks in the order to three identical machines, always choosing a least-loaded machine. What is the resulting makespan?
Task scheduling
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The assignments produce final loads equivalent to , , and , so the makespan is .
Incorrect! Try again.
28For independent tasks on identical machines, what approximation guarantee does basic list scheduling provide for minimizing makespan?
Task scheduling
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Graham's list-scheduling algorithm has approximation ratio .
Incorrect! Try again.
29How does Longest Processing Time first (LPT) choose the task order before applying list scheduling?
Task scheduling
Medium
A.Increasing task identifier
B.Decreasing machine capacity
C.Nonincreasing processing time
D.Nondecreasing processing time
Correct Answer: Nonincreasing processing time
Explanation:
LPT sorts tasks from longest to shortest and then assigns each task to a least-loaded machine.
Incorrect! Try again.
30LPT schedules tasks with processing times on three identical machines. What makespan does it produce?
Task scheduling
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
After assigning , , and , the tasks and create final loads , , and .
Incorrect! Try again.
31Tasks have processing times and must run on two identical machines. What is the average-load lower bound on the optimal makespan?
Task scheduling
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The total processing time is , so the average-load lower bound is .
Incorrect! Try again.
32List scheduling processes tasks on two identical machines in the given order. If the optimal makespan is , what ratio does the produced makespan have to ?
Task scheduling
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
List scheduling produces a makespan of , giving a ratio of .
Incorrect! Try again.
33The LPT approximation bound is . What does this bound become for three machines?
Task scheduling
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Substituting gives .
Incorrect! Try again.
34Next Fit processes items with bin capacity . How many bins does it use?
Bin packing
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The bins formed are , , , and , so four bins are used.
Incorrect! Try again.
35First Fit processes items with bin capacity . How many bins does it use?
Bin packing
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
First Fit forms bins , , and .
Incorrect! Try again.
36For items of sizes and bin capacity , what lower bound follows from total item size?
Bin packing
Medium
A. bins
B. bins
C. bins
D. bins
Correct Answer: bins
Explanation:
The total size is , so at least bins are necessary.
Incorrect! Try again.
37A bin has capacity , and the items are . What lower bound follows specifically from the items larger than half the bin capacity?
Bin packing
Medium
A.At least bins
B.At least bins
C.At least bins
D.At least bins
Correct Answer: At least bins
Explanation:
Each item of size must be placed in a different bin, giving a lower bound of three bins.
Incorrect! Try again.
38Which standard worst-case guarantee is associated with the Next Fit bin-packing algorithm?
Bin packing
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Next Fit uses fewer than twice the optimal number of bins, commonly stated as .
Incorrect! Try again.
39Which expression is a standard upper bound for First Fit Decreasing (FFD)?
Bin packing
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
FFD has the standard bound , up to equivalent integer formulations.
Incorrect! Try again.
40Bins have capacity , and items arrive as . Next Fit uses four bins. How many bins does First Fit Decreasing use?
Bin packing
Medium
A. bins
B. bins
C. bins
D. bins
Correct Answer: bins
Explanation:
FFD pairs each item with a item, producing three full bins.
Incorrect! Try again.
41For 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?
Approximation basics
Hard
A.At most a -approximation
B.Exactly a -approximation
C.At most a -approximation
D.At most a -approximation
Correct Answer: At most a -approximation
Explanation:
Since , the ratio is at most . The actual ratio may be smaller, so equality is not established.
Incorrect! Try again.
42For a maximization problem, a feasible solution has value , and a relaxation proves . Under the convention that a -approximation satisfies , what factor is certified?
Approximation basics
Hard
A.A factor of
B.A factor of
C.A factor of
D.A factor of
Correct Answer: A factor of
Explanation:
The upper bound gives , equivalently .
Incorrect! Try again.
43An algorithm returns a -approximation in time . How should this scheme be classified from the stated bound?
Approximation basics
Hard
A.An EPTAS, because the ratio approaches one with
B.A PTAS, but not an FPTAS or EPTAS from this bound
C.A constant-factor scheme, but not a PTAS under this bound
D.An FPTAS, because fixed gives polynomial time
Correct Answer: A PTAS, but not an FPTAS or EPTAS from this bound
Explanation:
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.
Incorrect! Try again.
44Suppose an L-reduction from minimization problem to minimization problem has constants and . If has an -approximation, which ratio follows for ?
Approximation basics
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The relative error transferred from is at most times , yielding ratio .
Incorrect! Try again.
45For a minimization problem, it is NP-hard to distinguish instances with from those with , where . What consequence follows?
Approximation basics
Hard
A.The gap excludes exact algorithms but no approximation factor
B.Only an FPTAS is excluded; a -approximation may exist
C.A polynomial-time -approximation would imply
D.A polynomial-time -approximation would imply
Correct Answer: A polynomial-time -approximation would imply
Explanation:
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.
Incorrect! Try again.
46A minimization algorithm guarantees for every instance, and all instances satisfy . Which multiplicative guarantee follows?
Approximation basics
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Dividing by gives .
Incorrect! Try again.
47For list scheduling of independent jobs on identical parallel machines, which worst-case makespan guarantee is valid?
Task scheduling
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Graham's list-scheduling analysis uses the average-load and longest-job lower bounds to obtain the factor .
Incorrect! Try again.
48List scheduling is run on three identical machines using the order , always assigning the next job to a least-loaded machine. Which outcome is correct?
Task scheduling
Hard
A., , ratio
B., , ratio
C., , ratio
D., , ratio
Correct Answer: , , ratio
Explanation:
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.
Incorrect! Try again.
49The LPT rule sorts jobs by nonincreasing processing time and then list-schedules them. What guarantee does LPT provide on three identical machines?
Task scheduling
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
LPT has ratio . Substituting gives .
Incorrect! Try again.
50LPT schedules jobs with processing times on two identical machines. Which statement describes the resulting approximation ratio?
Task scheduling
Hard
A.LPT obtains while the optimum is , giving ratio
B.LPT obtains while the optimum is , giving ratio
C.LPT obtains while the optimum is , giving ratio
D.LPT obtains while the optimum is , giving ratio
Correct Answer: LPT obtains while the optimum is , giving ratio
Explanation:
LPT produces loads . The jobs can instead be partitioned as and , so the optimum is .
Incorrect! Try again.
51Apply LPT to jobs on two identical machines. Which comparison with the optimum is correct?
Task scheduling
Hard
A.LPT gives , while the optimum is
B.LPT gives , while the optimum is
C.LPT gives , while the optimum is
D.LPT gives , while the optimum is
Correct Answer: LPT gives , while the optimum is
Explanation:
LPT produces loads . The partition and gives two loads of , matching the average-load lower bound.
Incorrect! Try again.
52A precedence-constrained instance on four identical machines has total work and critical-path length . Using for list scheduling, what instance-specific ratio is certified?
Task scheduling
Hard
A.At most , because and
B.At most , because and
C.At most , because and
D.At most , because and
Correct Answer: At most , because and
Explanation:
The upper bound is . The critical path gives , so the certified ratio is .
Incorrect! Try again.
53Positive integer job lengths sum to . For two identical machines, which condition is equivalent to the existence of a schedule with makespan at most ?
Task scheduling
Hard
A.The largest two jobs have combined processing time at most
B.Every job has processing time strictly smaller than
C.The jobs can be greedily ordered by nonincreasing processing time
D.The jobs have a subset whose processing times sum exactly to
Correct Answer: The jobs have a subset whose processing times sum exactly to
Explanation:
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.
Incorrect! Try again.
54Next Fit processes capacity- items in the order . How many bins does it use, and what is the optimum?
Bin packing
Hard
A.Next Fit uses bins; the optimum uses
B.Next Fit uses bins; the optimum uses
C.Next Fit uses bins; the optimum uses
D.Next Fit uses bins; the optimum uses
Correct Answer: Next Fit uses bins; the optimum uses
Explanation:
The second opens a new bin, which the first fills; the final then opens a third bin. Offline, each can be paired with a .
Incorrect! Try again.
55Which absolute worst-case bound follows from the fact that every pair of consecutive bins closed by Next Fit has combined load greater than ?
Bin packing
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
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 .
Incorrect! Try again.
56Which expression is the tight classical worst-case upper bound for First Fit Decreasing on capacity- bin packing?
Bin packing
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The tight FFD theorem is , with the floor accounting for the integral number of bins.
Incorrect! Try again.
57First Fit Decreasing is applied to items . Which result demonstrates its absolute-ratio edge case?
Bin packing
Hard
A.FFD uses bins and the optimum uses
B.FFD uses bins and the optimum uses
C.FFD uses bins and the optimum uses
D.FFD uses bins and the optimum uses
Correct Answer: FFD uses bins and the optimum uses
Explanation:
FFD forms loads , , and . An optimum packs each bin as , giving ratio .
Incorrect! Try again.
58Every item in a bin-packing instance has size strictly greater than . Which polynomial-time method finds an optimal packing?
Bin packing
Hard
A.Solve a knapsack instance that maximizes the load of one bin
B.Find a maximum matching of compatible item pairs and leave unmatched items alone
C.Apply Next Fit after sorting all items in nondecreasing size order
D.Find a minimum spanning tree whose edges represent compatible item pairs
Correct Answer: Find a maximum matching of compatible item pairs and leave unmatched items alone
Explanation:
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.
Incorrect! Try again.
59An instance contains four items of size and five items of size . What do the volume bound and the count of items larger than establish?
Bin packing
Hard
A.They give lower bound , and exactly bins are necessary
B.They give lower bound , while the exact optimum is
C.They give lower bound , and a -bin packing is feasible
D.They give lower bound , but at least bins are necessary
Correct Answer: They give lower bound , and a -bin packing is feasible
Explanation:
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.
Incorrect! Try again.
60A bin-packing algorithm satisfies for every instance. What approximation conclusion follows directly?
Bin packing
Hard
A.Its asymptotic ratio is at most , but an absolute ratio is not proved
B.Its absolute and asymptotic ratios are both at most
C.Its absolute ratio is at most , while its asymptotic ratio is unknown
D.It is an approximation scheme because the additive term becomes negligible
Correct Answer: Its asymptotic ratio is at most , but an absolute ratio is not proved
Explanation:
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.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. 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.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →