Presentation is loading. Please wait.

Presentation is loading. Please wait.

Instructor: Shengyu Zhang 1. Secretary hiring problem 2.

Similar presentations


Presentation on theme: "Instructor: Shengyu Zhang 1. Secretary hiring problem 2."— Presentation transcript:

1 Instructor: Shengyu Zhang 1

2 Secretary hiring problem 2

3 A motivating problem Secretary problem :  We want to hire a new office assistant.  There are a number of candidates.  We can interview one candidate each day, but we have to decide the acceptance/rejection immediately. 3

4 One possible strategy 4

5 Probability… 5

6 Indicator variables 6

7 Analysis continued 7

8 Another strategy A more natural scenario is that we only hire once. And of course, we hope to hire the best one. But the candidates on the market also get other offers. So we need to issue offer fast. Interview one candidate each day, and decide acceptance/rejection immediately. The candidates come in a random order. 8

9 Strategy 9

10 Pseudo-code 10

11 Next 11

12 12

13 Putting together 13

14 Summary for the Secretary problem 14

15 Online vs. Offline Almost all algorithms we encountered in this course assume that the entire input is given all at once. These are called offline algorithms. In Secretary problem.  The input is given gradually.  We need to respond to each candidate in time.  We care about our performance compared to the best one in hindsight. Namely the best one by an offline algorithm. 15

16 Online algorithms The input is revealed in parts. An online algorithm needs to respond to each part (of the input) upon its arrival. The responding actions cannot be canceled/revoked later. We care about the competitive ratio, which compares the performance of an online algorithm to that of the best offline algorithm.  Offline: the entire input is given beforehand. 16

17 Ski rental problem 17

18 Ski rental 18

19 Offline algorithm 19

20 Deterministic algorithm 20

21 Randomized algorithm 21

22 Integer programming 22

23 Solution 23

24 Relaxation 24

25 The relaxation doesn’t lose anything 25

26 Dual LP 26 IP Primal LP Dual LP

27 27

28 Property 1 28

29 Property 1 29

30 30

31 31

32 32

33 33

34 Property 2 34

35 35

36 Turning into an online algorithm 36 … rentbuy

37 Expected cost 37

38 38

39 39

40 Optimality: Both deterministic and randomized algorithms are optimal.  No better competitive ratio is possible. Reference: The design of competitive online algorithms via a primal dual approach, Niv Buchbinder and Joseph Naor, Foundations and Trends in Theoretical Computer Science, Vol. 3, pp. 93-263, 2007. 40


Download ppt "Instructor: Shengyu Zhang 1. Secretary hiring problem 2."

Similar presentations


Ads by Google