码迷,mamicode.com
首页 >  
搜索关键字:combination theory    ( 1177个结果
LeetCode Combination Sum
因为实验室项目好久没刷题了。从今天开始重新开始刷题。 Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers...
分类:其他好文   时间:2014-07-16 23:04:15    阅读次数:166
less gradient-vertical 方法的实现
// Vertical gradient using CSS where possible, and base64-encoded SVG for IE9 (enables use of this in combination with border-radius)// Based on this ...
分类:其他好文   时间:2014-07-16 23:04:10    阅读次数:177
LeetCode: Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each num...
分类:其他好文   时间:2014-07-16 19:53:49    阅读次数:238
[LeetCode] Combination Sum
1 void func(const vector & candidates, int target, vector & path, int cur , int sum , vector > & ret ) 2 { 3 if( sum == ...
分类:其他好文   时间:2014-07-16 19:24:59    阅读次数:225
最小生成树-Prim算法和Kruskal算法
Prim算法1.概览普里姆算法(Prim算法),图论中的一种算法,可在加权连通图里搜索最小生成树。意即由此算法搜索到的边子集所构成的树中,不但包括了连通图里的所有顶点(英语:Vertex (graph theory)),且其所有边的权值之和亦为最小。该算法于1930年由捷克数学家沃伊捷赫·亚尔尼克(...
分类:其他好文   时间:2014-07-12 00:26:56    阅读次数:298
[LeetCode] Combination Sum II
Combination Sum IIGiven a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sum...
分类:其他好文   时间:2014-07-11 08:41:13    阅读次数:156
DFS-leetcode Combination Sum I/I I
深度优先搜索(DFS)是搜索算法的一种。最早接触DFS应该是在二叉树的遍历里面,二叉树的先序、中序和后序遍历实际上都属于深度优先遍历,实质就是深度优先搜索,后来在图的深度优先遍历中则看到了更纯正的深度优先搜索算法。        通常,我们将回溯法和DFS等同看待,可以用一个等式表示它们的关系:回溯法=DFS+剪枝。所以回溯法是DFS的延伸,其目的在于通过剪枝使得在深度优先搜索过程中如果满足了回...
分类:其他好文   时间:2014-07-08 20:34:20    阅读次数:271
Test of returning array efficiency from Fortran subprograms
Fortran has two kinds of subprograms: subroutine and function. Usually, subroutine is a combination of several procedures generating side effects with...
分类:其他好文   时间:2014-06-30 12:43:00    阅读次数:207
HDU 2824 The Euler function 题解
求区间的euler数值,自然使用筛子法了。 Problem Description The Euler function phi is an important kind of function in number theory, (n) represents the amount of the numbers which are smaller than n and coprim...
分类:其他好文   时间:2014-06-29 22:49:30    阅读次数:303
[再寄小读者之数学篇](2014-06-23 Hardy 空间、BMO空间与 Triebel-Lizorkin 空间)
$$\bex 0<p<\infty\ra H_p=\dot F^0_{p,2};\quad BMO=\dot F^0_{\infty,2}. \eex$$ see [H. Triebel, Theory of function spaces I, Birkh\"auser,Basel, 1983] ...
分类:其他好文   时间:2014-06-27 11:25:56    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!