摘要: 点(x,y)到平面(w,b)的距离公式是:$\gamma=\frac{1}{||w||}y(xw+b)$。我们称之为几何间隔。另外$\hat{\gamma}=y(xw+b)$记为函数间隔。 SVM的基本思路就是,寻找一个能够正确划分数据集,并且几何间隔最大的超平面。这个目标可以表达为: $$\max 阅读全文
posted @ 2017-07-01 16:22 BlueMandora 阅读(2174) 评论(0) 推荐(0) 编辑
摘要: 1.安装JDK2.安装eclipse,安卓官方现在不提供eclipse for android,只好自己配置了。首先安装一个eclipse,在Help——Install New SoftWare中安装ADT,地址为http://dl-ssl.google.com/android/eclipse可能需... 阅读全文
posted @ 2015-02-13 22:19 BlueMandora 阅读(673) 评论(0) 推荐(0) 编辑
摘要: 电脑系统window7 32位1.首先从官网下载cocos2d-x并解压http://cn.cocos2d-x.org/download/解压后的文件夹中有一个setup.py,双击运行。需要安装Python环境,要求是Python2.7及以上,Python 3以下的版本。运行时发现要求输入安卓SD... 阅读全文
posted @ 2015-02-10 16:45 BlueMandora 阅读(2802) 评论(0) 推荐(0) 编辑
摘要: TaskTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1346Accepted Submission(s): 336Problem Descrip... 阅读全文
posted @ 2014-07-23 11:22 BlueMandora 阅读(180) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/446/problem/CIn mathematical terms, the sequenceFnof Fibonacci numbers is defined by the recurrence relationF1 = 1;F2 = ... 阅读全文
posted @ 2014-07-14 10:33 BlueMandora 阅读(558) 评论(0) 推荐(0) 编辑
摘要: Billy investigates the question of applying greedy algorithm to different spheres of life. At the moment he is studying the application of greedy algo... 阅读全文
posted @ 2014-06-16 17:12 BlueMandora 阅读(446) 评论(0) 推荐(0) 编辑
摘要: LCS(A,B,C)!=LCS(A,LCS(B,C))反例:abcdabcdeabcedLCS(B,C)求出来可能是abce或者abcddp[i][j][k]表示A[0...i],B[0...j],C[0...k]的LCS转移方程:if (a[i]==b[j]&&b[j]==c[k]) ... 阅读全文
posted @ 2014-06-16 16:04 BlueMandora 阅读(830) 评论(0) 推荐(0) 编辑
摘要: Problem Description在密室逃脱游戏中,大家被困在一个密室中,为了逃出密室,需要找到正确的数字密码,于是大家分头行动,分别找到了密码的子序列,而后大家将得到的线索集中整理分析,大家想知道密码最少是多少位。Input第一行输入一个整数T,表示数据组数。接下来T组数据,对于每组数据,第一... 阅读全文
posted @ 2014-04-18 11:29 BlueMandora 阅读(379) 评论(0) 推荐(0) 编辑
摘要: String of InfinityTime Limit:2 Seconds Memory Limit:65536 KBGiven a set of banned wordsS, please find out whether it is possible to construct a string... 阅读全文
posted @ 2014-04-18 11:20 BlueMandora 阅读(489) 评论(0) 推荐(0) 编辑
摘要: A BNU ACM校队时间安排表大水题 开始把数字写错了,WA了一次 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define ll long long 7 using namespace std; 8 9 int main()10 {11 int cas, n;12 scanf("%d", &cas);13 while (cas--) {14 scanf("%d", &n);15 if (n==11||n==12) printf("Basic Train. 阅读全文
posted @ 2014-04-10 17:07 BlueMandora 阅读(253) 评论(0) 推荐(0) 编辑