三分查找
文章平均质量分 58
My_Fresh_Start
细节。。。。。细心
展开
-
Light Bulb
Light Bulb Time Limit: 1 Second Memory Limit: 32768 KB Compared to wildleopard's wealthiness, his brother mildleopard is rather poor. His house is narrow and he has only one light bulb i原创 2015-11-06 21:27:02 · 540 阅读 · 0 评论 -
Turn the corner
Turn the corner Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2449 Accepted Submission(s): 933 Problem Description Mr. West原创 2015-11-06 22:25:31 · 725 阅读 · 0 评论 -
三分(复习)
二分法是把区间分为相等的两段逼近求解;而三分是分为三段,求最值的;二分是搜索单调函数的,三分是搜索凸性函数或者凹形函数; 如图所示: 三分查找主要是要求找对条件; 模型: double cha(double a){ s=l*cos(a)+w*sin(a)-x; h=s*tan(a)+w*cos(a); return h; } double原创 2016-01-18 17:26:54 · 400 阅读 · 0 评论