1 / 21

תרגילי חזרה

תרגילי חזרה. General Things to Remember. Be careful to identify if we’re talking about gains or costs (because the search cost is always negative) Check carefully if the payoff cost allows you to use advance formulation of the original model. Problem 1. You have 5 boxes on the table

Télécharger la présentation

תרגילי חזרה

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. תרגילי חזרה

  2. General Things to Remember • Be careful to identify if we’re talking about gains or costs (because the search cost is always negative) • Check carefully if the payoff cost allows you to use advance formulation of the original model

  3. Problem 1 • You have 5 boxes on the table • Each box can generate a random number from a uniform distribution (0,100) • In order to activate a box you need to feed it with a $1 • In addition, in order to approach the table you need to pay $2 • You can approach the table up to 5 times, and activate as many boxes as you want each time • Your revenue will be the maximum prize revealed

  4. Problem 1 (cont.) • Show that 81 is an upper bound for your expected revenue

  5. Solution • Searching sequentially, with a search cost of c=1 and an infinite decision horizon will always yield a better expected net revenue thus this is an upper bound: Good, but not good enough…

  6. Parallel Search is an even tighter bound (if infinite horizon)… • We know that: N=1: x=75.5 N=2: x=79.2 N=3: x=80.5 N=4: x=80.95 N=5: x=81

  7. בעיית המזכירה • נתונה בעיית המזכירה עם n=5 מועמדים, כאשר בניגוד לבעיה המקורית, גם אם סיימנו את החיפוש ולא מצאנו את המועמד הטוב ביותר הרי שבהסתברות α הוא עדיין יהיה פנוי וניתן יהיה לשכור אותו • מהי האסטרטגיה האופטימלית לחיפוש כאשר α=0.2? • בחר ערך N (גדול מ- 10) ו- α כרצונך ופתור שנית.

  8. Analysis • What is the probability of selecting the best applicant? • For r=1 or r=n, 1/n • For r>1: max of r-1 > max of j-r the probability that the maximum number in a sample of j-1 is one of the first r-1 numbers timeline n

  9. Adding α • The revised equation: A

  10. And if you’re a wiseguy… • Just choose α=1 and the probability of ending up with the best equals 1…

  11. Buying a Laptop • Assume you are a comparison shopping agent and a buyer offers you sqrt(x) dollars for each saving of x dollars below a price of $50 for a product • You have 3 stores to look at: • How will you search and what is the probability of getting to store C? f(x) f(x) f(x) 0 100 10 90 20 80 Store A cA=1.3 Store B cB=0.5 Store C cC=0.3

  12. This is a Pandora’s version! And the rule: go to store with minimal zi unless found a price below zi

  13. Cont. • Optimal strategy: start with B, if price above 37.41 then go to C and if best price is above 45.23 then go to A

  14. Probability of getting to C

  15. Yet another Pandora… • You go to NY for a month • There are N pubs you might find attractive • Each pub has a different a-priori distribution of value for you and different exploration cost • Your performance will be the accumulated value • What is the optimal strategy?

  16. Solution • All search should be conducted during first day. • Cost to be used is c/30

  17. Pandora’s Problem • We have two boxes: • One with payoffs $10 with probability 0.99 and $K with probability 0.01. Cost of opening is $1. • The other with probability 0.5 has a prize of 100$ and with probability 0.5 has a prize of $200. its cost for opening is c->0. • What should be the value of K so that the first box will be opened first

  18. Solution • RV of second box is 200 • RV of first box is: (K-200)*0.01=1 0.01K=3 K=300

  19. שאלה • במערכת מחשב מרובת מעבדים בנוי כל מעבד משתי ליבות • ידוע שהעומס הרגעי (זמן המתנה) על כל ליבה מתפלג f(x)=2x (עבור 0<x<1, מנורמל) • זמן גישה לליבה במעבד הוא 0.05 ובמידה ומחליטים לאחר מכן לגשת גם לליבה השניה של אותו מעבד – 0.02 • מהי מדיניות הדגימה במידה והמטרה היא להביא את הזמן הכולל למינימום

  20. פתרון • ניתן להסתכל על כל מעבד כהזדמנות בעלת שני שלבים. • נתחיל מהשלב השני: • כלומר כל זמן שמצאנו ערך גדול מ- 0.39 נרצה לדגום גם את הליבה השניה

  21. פתרון • כעת נסתכל על הליבה הראשונה: • כלומר כל זמן שלא מצאנו ערך קטן מ- 0.52 נרצה לדגום את הליבה הראשונה

More Related