The bin-packing problem (BP) is one of the most fundamental problems in combinatorial optimization and is the cornerstone of approximation algorithms, and it has been extensively studied since the early 1970s. The extensive study of the BP, called the extensive bin-packing problem (EBP), has had a great impact on the design and analysis of approximation algorithms [
1,
2], which are widely used in numerous classic applications, such as machine scheduling, cutting stock problems, storage allocation, and cloud storage. Currently, the model of the EBP arises in scheduling problems [
3], and more and more hierarchical scheduling has been combined with early work maximization (especially makespan minimization) in recent years [
4] (especially [
5,
6,
7]). Thus, in this work, we will investigate both problems: the hierarchical extensible bin-packing problem and the early-work-maximization problem. Before introducing our problems, we will first provide some basic knowledge and related notions, the contributions of previous studies, and the motivation and the results of this paper.
1.1. Basic Knowledge and Related Notions
In the (semi-)online scheduling problem, the jobs arrive one by one. The performance of the (semi-)online algorithm is measured by the competitive ratio. For a maximization (minimization) problem and given an instance I, the objective value of the solution produced by an online algorithm A is denoted by (, for short), and the offline optimal criterion value is denoted by (, for short). The performance of A is measured by its competitive ratio, and the competitive ratio of A is defined as the minimum value satisfying () for any instance I, where denotes the output value by A and denotes the offline optimal criterion value. On the other hand, if there is no online algorithm for the problem that has a competitive ratio strictly less than , then is referred to as a lower bound of the problem. In particular, if there is an online algorithm with a competitive ratio exactly matching the problem’s lower bound, then we claim that this algorithm is an optimal online algorithm.
For the online hierarchical extensible bin-packing problem, we are given a set
of
n items. Each item
has a size
and
m extendable bins
with original size 1, where each item must be packed into one bin, and the total size of the items packed in any bin can exceed 1, if necessary. The load
of a bin
is just the total size of the items contained in
, and the size of a bin
is defined by
. The extensible bin-packing problem introduced in [
3,
8], which is also called operating room allocation [
9], is to minimize the total size of the bins, i.e., to minimize
Since the model of the EBP naturally arises in scheduling problems, we stick to the scheduling terminology in this article (bins are the same as machines; items are the same as jobs). For the semi-online hierarchical early work maximization scheduling problem, we are given a set
of two hierarchical machines and a set
of
n jobs arriving online. The machine
can process all jobs, while the machine
can only process some of the jobs. Each job can only be processed by one machine. A new job
arrives only after job
is irrevocably scheduled to a machine. Let
be the load of
,
. The objective is to find a schedule such that the total early work
is maximized.
1.2. The Contributions of Previous Studies
The extensible bin-packing problem (EBP), with the goal of minimizing the total sizes of bins, originates from the research work of Dell’Olmo et al. [
8], who showed that the problem is strongly NP-hard. Furthermore, they proved that the approximation ratio of the longest processing time (LPT) algorithm for the problem is
.
Alon et al. [
10] presented a unified efficient polynomial time approximation scheme (EPTAS) for scheduling on parallel machines, which is also suitable for the EBP. It is worth noting that Coffman et al. [
11] presented an asymptotic fully polynomial time approximation scheme (FPTAS) for the EBP. If the number
m of bins is fixed, there is an FPTAS following from the results of [
12]. Most recently, Levin [
13] designed an EPTAS for a generalization of the EBP with unequal bin sizes, where the cost of exceeding the bin size depends on the index of the bin and not only on the amount by which the size of the bin is exceeded.
A special case of the EBP is the case of extensible bin packing with unequal bin sizes (called the EBP-UBS). The online version of the problem was first studied by Dell’Olmo et al. [
14], and they proved that the competitive ratio of the LS algorithm is
, which was improved slightly by Ye et al. [
15]. Berg et al. [
16] gave an online algorithm for the online EBP with a variable cost of extension. Most recently, Luo et al. [
17] presented several lower bounds and an online algorithm whose competitive ratio is optimal in certain cases for the online EBP with a variable cost of extension. When
, there exists a big gap between the best-known lower bound and the upper bound for the online EBP. When
, the best possible competitive ratio for the online EBP problem is
[
3,
18]. Another special case of the EBP is the case of a stochastic extensible bin-packing problem (SEBP), in which the size of each item follows some known probability distribution, and all the
n items are packed into
m bins of unit capacity in order to minimize the expected costs. Sagnol et al. [
19] showed that there is a simple policy, called LEPT, with an approximation ratio of
for the SEBP, and the problem has been generalized to arbitrary stochastic jobs in [
20]. Building on the two papers, Sagnol et al. [
21] proved improved bounds under distributional assumptions of the processing times.
The EBP model arises in scheduling problems in which machines are available for some amount of time at a fixed cost and for extra time at an additional cost. Speranza et al. [
3] first introduced the online scheduling problem on
m identical machines with extendable working time, which is also a special online EBP problem in which all bin sizes are equal to one and the size of a bin can be extended if necessary. They proved that the competitive ratio of the list scheduling (LS) algorithm for the problem is
and designed a new online algorithm with a competitive ratio of
.
A similar problem is the early work maximization scheduling problem. Nonpreemptive parallel machine scheduling with a common due date to maximize the total early work of all the jobs, i.e., the total processing time of the jobs completed before the common due date, has been a popular objective in the past decade [
22,
23]. Recently, for the offline version of the problem, when the number
m of machines is fixed, Li [
24] presented an FPTAS with running time
, for any desired accuracy
, where
n is the number of jobs and
is exponential in
. When the number
m of machines is not fixed, Li [
24] also presented an EPTAS. Moreover, Sun et al. [
25] proved that the worst-case ratio of the LPT algorithm for the offline early-work-maximization problem is at most
this year. For the online case of the problem, Chen et al. [
26] considered the scheduling problem on parallel identical machines and presented an algorithm with a competitive ratio of
. In particular, they proved that the competitive ratio of
is tight when
. This year, Jiang et al. [
27] proved that the tight competitive ratio of the LS algorithm is
and improved the upper bound on the competitive ratio for the previous algorithm
to
.
For the early-work-maximization problems on two hierarchical machines, Xiao et al. [
28] studied two semi-online models of the problem with a buffer or rearrangements. If a buffer size of
K is available, they designed an optimal online algorithm with a competitive ratio of
. If it is allowed to reassign at most
K jobs after all the jobs have been scheduled, they proposed an optimal online algorithm with a competitive ratio of
. Furthermore, Xiao et al. [
7] designed an optimal online algorithm with a competitive ratio of
for the problem and proposed several optimal semi-online algorithms for the cases when the largest processing time or total processing time is known. For the early-work-maximization problems on two hierarchical uniform machines
and
, where machine
with speed
is available for all jobs and machine
with speed 1 is available only for high-hierarchy jobs, Xiao et al. [
4] proposed four optimal semi-online algorithms for the cases of the total size of all jobs, the total size of low-hierarchy jobs, the total size of high-hierarchy jobs, and both the total size of low-hierarchy and high-hierarchy jobs that are known in advance, respectively. This problem is also closely related to the online
-norm load-balancing problem on two hierarchical machines [
6,
29] and the online machine covering problems on two hierarchical machines [
30,
31,
32]. Furthermore, more related results can be found in the recent surveys [
33,
34,
35].
The makespan minimization scheduling problem on hierarchical machines is another typical objective in scheduling and is also closely related to the online early-work-maximization problem. The online version of such a problem was also first studied by Park et al. [
36] and Jiang et al. [
37]. They independently proposed an optimal online algorithm with a competitive ratio of
. Moreover, if the total size of all the jobs is given in advance, ref. [
36] presented an optimal online algorithm with a competitive ratio of
. If the largest processing time of jobs is known in advance, Wu et al. [
38] presented an optimal online algorithm with a competitive ratio of
; if the total processing time is known in advance, the group presented an optimal online algorithm and obtained the same result as [
36]. If the processing times are bounded, Liu et al. [
39], Luo et al. [
40], and Zhang et al. [
41] designed several online algorithms for the makespan minimization problem on two hierarchical machines. Chen et al. [
22,
42] considered several semi-online versions of the problem and proposed the corresponding optimal online algorithms. Akaria et al. [
5] discussed online scheduling with migration on two hierarchical machines.
1.3. The Motivation of the Paper
The EBP has been widely used to represent the cost of allocating surgeries to operating rooms (ORs) [
9,
16,
19] in recent years, which is a challenging combinatorial optimization problem. There is also significant uncertainty in the duration of surgical procedures, which further complicates assignment decisions. In the context of OR allocation, ORs represent bins. Assume that
is the number of ORs. Each bin has a certain size at a fixed cost
, which denotes the time
T that each OR is available during a particular day. The OR can be utilized for more than the regular available time. Under this model, the total cost of a solution assigning the subset of surgeries
to the
i-th operating room (
) becomes
, and the decision maker is asked to find the best allocation so that the total cost is minimized. The EBP corresponds to the situation in which
and
. In practice, surgical durations are not known in advance, and the patients with more severe injuries should be given priority treatment, which is also highly important. In addition, in communications engineering, service providers assign service classes to calls in communications networks and route queries to hierarchical databases. Hence, motivated by these random cases and online hierarchical scheduling [
43], we study the hierarchical extensible bin-packing problem (HEBP), in which each bin
has an identical original size 1, for
. The bin
can pack all the items, while
can only pack the items with the high hierarchy, i.e.,
, with the objective of minimizing the expected costs. Our new model is defined to generalize some special semi-online cases of the HEBP.
Scheduling with the goal of early work maximization has many practical applications in recent years, such as scheduling customer orders in manufacturing systems, testing software in software engineering, spreading fertilizers in agriculture, planning technological processes in manufacturing systems, collecting data from sensors in control systems, and harvesting crops in agriculture. For example, in the service industry, service providers often assign corresponding privileges and differentiated services to customers according to the level of service they promise to customers. Motivated by [
32], we study the early-work-maximization problems on two identical parallel machines under a grade of service (GoS) provision, with the information of the largest job, where the machine
can process all jobs, while the machine
can only process the higher hierarchical jobs, with the goal of maximizing the total early work. Our new model is defined to generalize some special semi-online cases of the problem.
1.4. The Organization and Results of the Paper
The remainder of this paper is organized as follows.
Section 2 focuses on a series of models for the HEBP with the largest item size known in advance.
(
Section 2.1) If the largest size
of the items is known in advance, without knowledge of the item hierarchy, and if at least one item of size
appears, we give two lower bounds
and
and propose an optimal online algorithm with a competitive ratio of
.
(
Section 2.2) If the hierarchy of the largest item is known in advance and there is at least one item of the largest size
that appears, we give some lower bounds. When
, we propose a simple online algorithm with a competitive ratio of
.
(
Section 2.3) If the largest item with hierarchy
is known in advance and if
, i.e.,
, where
is the size of the largest item
with the lower hierarchy, we design an optimal semi-online algorithm with a competitive ratio of
.
(
Section 2.4) If the largest item with hierarchy
is known in advance and considering the case where
, i.e.,
, where
is the size of the largest item
with the higher hierarchy, we show a lower bound
and design an online algorithm with a competitive ratio of
.
Section 3 focuses on a series of models for the HEBP with the total item size known in advance.
(
Section 3.1) If the total size
T of all the items is known in advance, we give a lower bound of
and propose an optimal online algorithm with a competitive ratio of
.
(
Section 3.2) If the total size
of the low-hierarchy items is known in advance, we show a lower bound of
and propose an algorithm with a competitive ratio of
.
(
Section 3.3) If the total size
of the high-hierarchy items is known in advance, we show a lower bound of
and propose an algorithm with a competitive ratio of
.
In
Section 4, we investigate the semi-online hierarchical early-work-maximization problem, i.e., the case of the largest job is known in advance.
(
Section 4.1) If the largest job size
is known in advance, without knowledge of the job hierarchy, we give two lower bounds
and
for
and
, respectively. We also propose an online algorithm with a competitive ratio
for
.
(
Section 4.2) If the hierarchy of the largest job is known, when the largest job has a low hierarchy, i.e.,
, we denote this problem as
. We give two lower bounds
and
for
and
, respectively.
Finally, we present our conclusions in
Section 5.