of a considerable importance regarding the number of
items selected at it: it monopolizesthe biggest propor-
tion of loads. However, the LBLS is higher using U
2
:
about 25% of items are loaded before the last stage.
We notice that both curves have similar shapes but the
one of U
1
is lowest: this is due to the penalty of de-
lay. Indeed,U
1
penalizes delayed items more severely
than do U
2
.
To conclude, we can say that our algorithm has
proved to be efficient in solving the OKP. Compared
with the results provided in the static case, we reached
almost the same overall profits. Besides to respecting
the capacity constraint, we were able to fill at maxi-
mum the knapsack while making decision in oppor-
tune time. As to the utility functions, we noted that
the utility function U
2
proved to be more convenient
in terms of FLS and LBLS: it gives more interest in
newcomers if compared with U
1
, which prefers to de-
lay as much as possible and makes decision in latest
stages. However, the utility function does not con-
tribute in the overall reward: we reached all the time
the same values using either functions of utility.
The weak point in our algorithm is its high com-
plexity. As it can be seen in Table 3, the CPU time
is very high and increases exponentially as the size of
the problem increases. We think that this should be
given more attention in future works.
6 CONCLUSIONS
In this paper, we proposed a dynamic approach for
the OKP with delay that incorporates a stopping rule
at each stage of the loading process to enable the DM
to select his best items in an online manner. This ap-
proach was adopted to reduce the OKP to a series
of static knapsack subproblems. Using the optimal
stopping terminology, we stated our decision strategy
based on a dynamic formulation. Experimental re-
sults showed that we were able to reach optimal so-
lution using our online approach. Besides, the use of
two different utility functions allowed us to come up
to the desired solution while involving two different
attitudes to risk.
Future works may include improvements of the
present algorithm in order to reduce the CPU time. A
possible generalization of the present work is to study
the OKP with delay while considering the possibility
of losing a number of items during the selection pro-
cess. The other aspect that we would like to explore
in the future is the OKP with multiple DM.
REFERENCES
Aggarwal, G. and Hartline, J. D. (2006). Knapsack auc-
tions. In SODA ’06: Proceedings of the seventeenth
annual ACM-SIAM symposium on Discrete algorithm,
pages 1083–1092. ACM.
Albers, S. (2003). Online algorithms: a survey. Mathemat-
ical Programming, 97(1-2):3–26.
Babaioff, M., Immorlica, N., Kempe, D., and Kleinberg, R.
(2007). A knapsack secretary problem with applica-
tions. In Approximation, Randomization, and Com-
binatorial Optimization. Algorithms and Techniques,
volume 4627 of Lecture Notes in Computer Science,
pages 16–28.
Gilbert, J. and Mosteller, F. (2006). Recognizing the max-
imum of a sequence. In Selected Papers of Freder-
ick Mosteller, Springer Series in Statistics, pages 355–
398.
Han, X. and Makino, K. (2009). Online knapsack problems
with limited cuts. In Algorithms and Computation,
volume 5878 of Lecture Notes in Computer Science,
pages 341–351. Springer Berlin Heidelberg.
Iwama, K. and Taketomi, S. (2002). Removable online
knapsack problems. In Automata, Languages and
Programming, Lecture Notes in Computer Science,
pages 293–305. Springer Berlin Heidelberg.
Iwama, K. and Zhang, G. (2010). Online knapsack with re-
source augmentation. Inf. Process. Lett., pages 1016–
1020.
Kleywegt, A. J. and Papastavrou, J. D. (1998). The dy-
namic and stochastic knapsack problem. Operations
Research, 46:17–35.
Kramer, A. D. I. (2010). Delaying decisions in order to
learn the distribution of options. PhD thesis.
Lueker, G. S. (1995). Average-case analysis of off-line and
on-line knapsack problems. In SODA ’95: Proceed-
ings of the sixth annual ACM-SIAM symposium on
Discrete algorithms, pages 179–188. Society for In-
dustrial and Applied Mathematics.
Mahdian, M., Nazerzadeh, H., and Saberi, A. (2012). On-
line optimization with uncertain information. ACM
Trans. Algorithms, 8:2:1–2:29.
Marchetti-Spaccamela, A. and Vercellis, C. (1995).
Stochastic on-line knapsack problems. Mathematical
Programming, 68:73–104.
Marini, C., Nicosia, G., Pacifici, A., and Pferschy, U.
(2013). Strategies in competing subset selection. An-
nals of Operations Research, 207(1):181–200.
Papastavrou, J. D. and Kleywegt, A. J. (2001). The dynamic
and stochastic knapsack problem with random sized
items. Operations Research, 49:26–41.
Pisinger, D. (1995). An expanding-core algorithm for the
exact 0-1 knapsack problem. European Journal of Op-
erational Research, 87(1):175 – 187.
Zhou, Y., Chakrabarty, D., and Lukose, R. (2008). Budget
constrained bidding in keyword auctions and online
knapsack problems. In Internet and Network Eco-
nomics, volume 5385 of Lecture Notes in Computer
Science, pages 566–576.
OnlineKnapsackProblemwithItemsDelay
219