摘要: BF的生日快到了,这一次,小东决定为BF送一份特别的生日礼物为其庆生。作为高智商中的佼佼者,BF在国外求学,因此小东无法与之一起庆生。小东计划送一个生日卡片,并通过特别的包装让BF永远难忘。她决定把卡片套装在一系列的信封A = {a1, a2, ..., an}中。小东已经从商店中购买了很多的信封, 阅读全文
posted @ 2017-04-07 10:30 tacia 阅读(728) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n] 阅读全文
posted @ 2017-01-24 19:35 tacia 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 熵值装袋查询(Entropy query-by-bagging,EQB)是一种经典的主动学习方法,属于查询委员会方法中的一种。QBC的基本思路是使用可获得的标记样本集合训练一组分类器,这组分类器构成委员会,然后由委员会来分类候选样本集合中的未标记样本,选择出委员会分类“最不一致”的样本。在EQB中, 阅读全文
posted @ 2017-01-18 21:11 tacia 阅读(2354) 评论(0) 推荐(0) 编辑
摘要: You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not need t 阅读全文
posted @ 2017-01-16 18:51 tacia 阅读(340) 评论(0) 推荐(0) 编辑
摘要: Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia 阅读全文
posted @ 2017-01-16 16:06 tacia 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the 阅读全文
posted @ 2017-01-16 14:36 tacia 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 我们使用一些传统的监督学习方法做分类的时候,往往是训练样本规模越大,分类的效果就越好。但是在现实生活的很多场景中,标记样本的获取是比较困难的,这需要领域内的专家来进行人工标注,所花费的时间成本和经济成本都是很大的。而且,如果训练样本的规模过于庞大,训练的时间花费也会比较多。那么有没有办法,能够使用较 阅读全文
posted @ 2017-01-15 18:25 tacia 阅读(15363) 评论(2) 推荐(3) 编辑
摘要: SVM是我在做模式识别的时候用得最多的一种分类器。以下是我通过学习后对SVM原理的理解与总结,记录下来以便自己复习。 1、SVM原理概述 SVM是从线性可分情况下的最优分类面发展而来的,图一中三角形点和圆形点分别代表两类样本,假设: ,i=1,...,n, 我们要寻找一个分类超平面H:,使得: 假设 阅读全文
posted @ 2017-01-13 09:44 tacia 阅读(2077) 评论(0) 推荐(0) 编辑