版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、CS 345Data MiningOnline algorithmsSearch advertisingOnline algorithmsClassic model of algorithmsYou get to see the entire input, then compute some function of itIn this context, “offline algorithm”Online algorithmYou get to see the input one piece at a time, and need to make irrevocable decisions al
2、ong the waySimilar to data stream modelsExample: Bipartite matching1234abcdGirlsBoysExample: Bipartite matching1234abcdM = (1,a),(2,b),(3,d) is a matchingCardinality of matching = |M| = 3GirlsBoysExample: Bipartite matching1234abcdGirlsBoysM = (1,c),(2,b),(3,d),(4,a) is a perfect matchingMatching Al
3、gorithmProblem: Find a maximum-cardinality matching for a given bipartite graphA perfect one if it existsThere is a polynomial-time offline algorithm (Hopcroft and Karp 1973)But what if we dont have the entire graph upfront?Online problemInitially, we are given the set BoysIn each round, one girls c
4、hoices are revealedAt that time, we have to decide to either:Pair the girl with a boyDont pair the girl with any boyExample of application: assigning tasks to serversOnline problem1234abcd(1,a)(2,b)(3,d)Greedy algorithmPair the new girl with any eligible boyIf there is none, dont pair girlHow good i
5、s the algorithm?Competitive RatioFor input I, suppose greedy produces matching Mgreedy while an optimal matching is MoptCompetitive ratio = minall possible inputs I (|Mgreedy|/|Mopt|)Analyzing the greedy algorithmConsider the set G of girls matched in Mopt but not in MgreedyThen it must be the case
6、that every boy adjacent to girls in G is already matched in MgreedyThere must be at least |G| such boysOtherwise the optimal algorithm could not have matched all the G girlsTherefore |Mgreedy| |G| = |Mopt - Mgreedy|Mgreedy|/|Mopt| 1/2Worst-case scenario1234abc(1,a)(2,b)dHistory of web advertisingBan
7、ner ads (1995-2001)Initial form of web advertisingPopular websites charged X$ for every 1000 “impressions” of adCalled “CPM” rateModeled similar to TV, magazine adsUntargeted to demographically tagetedLow clickthrough rateslow ROI for advertisersPerformance-based advertisingIntroduced by Overture ar
8、ound 2000Advertisers “bid” on search keywordsWhen someone searches for that keyword, the highest bidders ad is shownAdvertiser is charged only if the ad is clicked onSimilar model adopted by Google with some changes around 2002Called “Adwords”Ads vs. search resultsWeb 2.0Performance-based advertisin
9、g works!Multi-billion-dollar industryInteresting problemsWhat ads to show for a search?If Im an advertiser, which search terms should I bid on and how much to bid?Adwords problemA stream of queries arrives at the search engineq1, q2,Several advertisers bid on each queryWhen query qi arrives, search
10、engine must pick a subset of advertisers whose ads are shownGoal: maximize search engines revenuesClearly we need an online algorithm!Greedy algorithmSimplest algorithm is greedyIts easy to see that the greedy algorithm is actually optimal!Complications (1)Each ad has a different likelihood of being
11、 clickedAdvertiser 1 bids $2, click probability = 0.1Advertiser 2 bids $1, click probability = 0.5Clickthrough rate measured historicallySimple solutionInstead of raw bids, use the “expected revenue per click”The Adwords InnovationAdvertiserBidCTRBid * CTRABC$1.00$0.75$0.501%2%2.5%1 cent1.5 cents1.1
12、25 centsThe Adwords InnovationAdvertiserBidCTRBid * CTRABC$1.00$0.75$0.501%2%2.5%1 cent1.5 cents1.125 centsComplications (2)Each advertiser has a limited budgetSearch engine guarantees that the advertiser will not be charged more than their daily budgetSimplified model (for now)Assume all bids are 0
13、 or 1Each advertiser has the same budget BOne advertiser per queryLets try the greedy algorithmArbitrarily pick an eligible advertiser for each keywordBad scenario for greedyTwo advertisers A and BA bids on query x, B bids on x and yBoth have budgets of $4Query stream: xxxxyyyyWorst case greedy choi
14、ce: BBBB_Optimal: AAAABBBBCompetitive ratio = Simple analysis shows this is the worst caseBALANCE algorithm MSVVMehta, Saberi, Vazirani, and VaziraniFor each query, pick the advertiser with the largest unspent budgetBreak ties arbitrarilyExample: BALANCETwo advertisers A and BA bids on query x, B bi
15、ds on x and yBoth have budgets of $4Query stream: xxxxyyyyBALANCE choice: ABABBB_Optimal: AAAABBBBCompetitive ratio = Analyzing BALANCEConsider simple case: two advertisers, A1 and A2, each with budget B (assume B 1)Assume optimal solution exhausts both advertisers budgetsBALANCE must exhaust at lea
16、st one advertisers budgetIf not, we can allocate more queriesAssume BALANCE exhausts A2s budgetAnalyzing BalanceA1A2BxyBA1A2xOpt revenue = 2BBalance revenue = 2B-x = B+yWe have y xBalance revenue is minimum for x=y=B/2Minimum Balance revenue = 3B/2Competitive Ratio = 3/4Queries allocated to A1 in op
17、timal solutionQueries allocated to A2 in optimal solutionGeneral ResultIn the general case, worst competitive ratio of BALANCE is 11/e = approx. 0.63Interestingly, no online algorithm has a better competitive ratioWont go through the details here, but lets see the worst case that gives this ratioWor
18、st case for BALANCEN advertisers, each with budget B N 1NB queries appear in N rounds of B queries eachRound 1 queries: bidders A1, A2, , ANRound 2 queries: bidders A2, A3, , ANRound i queries: bidders Ai, , ANOptimum allocation: allocate round i queries to AiOptimum revenue NBBALANCE allocationA1A2
19、A3AN-1ANB/NB/(N-1)B/(N-2)After k rounds, sum of allocations to each of bins Ak,AN is Sk = Sk+1 = = SN = 1 1 kB/(N-i+1)If we find the smallest k such that Sk B, then after k roundswe cannot allocate any queries to any advertiserBALANCE analysisB/1 B/2 B/3 B/(N-k+1) B/(N-1) B/NS1S2Sk = B 1/1 1/2 1/3 1/(N-k+1) 1/(N-1) 1/NS1S2Sk = 1 BALANCE analysisFact: Hn = 1 i n1/i = approx. log(n) for large nResult due to Euler1/1 1/2 1/3 1/(N-k+1) 1/(N-1) 1/NSk = 1 log(N)log(N)-1S
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年高速公路ETC系统升级改造合同
- 2025年度智能物流平台合作返点合同范本4篇
- 2025年度现代农业设施承揽合同补充协议4篇
- 2025年度油气储罐安全检测与改造合同4篇
- 2025年10kv线路施工绿色环保与节能减排合同3篇
- 2025年度智能车位租赁合同转让协议书(全新版)4篇
- 2024年车辆购销合同示范文本
- 2025年度智能储煤场租赁管理服务合同4篇
- 2024矿用设备租赁合同
- 2025年度城市更新改造项目承包合同签约与历史文化保护协议(2024版)3篇
- 2024年海口市选调生考试(行政职业能力测验)综合能力测试题及答案1套
- 六年级数学质量分析及改进措施
- 一年级下册数学口算题卡打印
- 2024年中科院心理咨询师新教材各单元考试题库大全-下(多选题部分)
- 真人cs基于信号发射的激光武器设计
- 【阅读提升】部编版语文五年级下册第三单元阅读要素解析 类文阅读课外阅读过关(含答案)
- 四年级上册递等式计算练习200题及答案
- 法院后勤部门述职报告
- 2024年国信证券招聘笔试参考题库附带答案详解
- 道医馆可行性报告
- 视网膜中央静脉阻塞护理查房课件
评论
0/150
提交评论