码迷,mamicode.com
首页 >  
搜索关键字:the unique mst    ( 5979个结果
MYSQL 关于索引的部分问题!
1、 PRIMARY KEY也可以只指定为KEY。这么做的目的是与其它数据库系统兼容、二来key 是index的同意词!2、 在UNIQUE索引中,所有的值必须互不相同。如果您在添加新行时使用的关键字与原有行的关键字相同,则会出现错误。 例外情况是,如果索引中的一个列允许包含NULL值,则此列可以包...
分类:数据库   时间:2014-10-07 00:13:52    阅读次数:229
Unique Paths I&&II
Unique PathsA robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right a...
分类:其他好文   时间:2014-10-06 22:05:10    阅读次数:287
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 numb...
分类:其他好文   时间:2014-10-06 13:41:10    阅读次数:154
Leetcode:unique_binary_search_trees
给定数n,问有多少种不同的BST(二叉搜索树)...
分类:其他好文   时间:2014-10-06 01:31:09    阅读次数:341
mysql优化技巧
mysql 数据库优化包括a.表的设计合理化(符合3NF)b.添加适当索引(index[4种:普通索引 主键索引 唯一索引unique 全文索引])c.分表技术(水平分割,垂直分割)d.读写[写:update/delete/add]分离e.存储过程[模块化编程 可以提高速度]数据库的三层结构 ora...
分类:数据库   时间:2014-10-05 23:26:39    阅读次数:329
4Sum_leetCode
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note: Elements ...
分类:其他好文   时间:2014-10-05 19:14:28    阅读次数:173
Combination Sum I&&II
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:其他好文   时间:2014-10-05 16:48:38    阅读次数:193
Bzoj1083 1083: [SCOI2005]繁忙的都市【MST】
大水题,真不知道出题者是怎么把这么水的题出的这么长的TAT其实这题在于考语文水平,一共三个要求,前两个要求意思就是要选出的道路是树形的,最后一个要求就是要权值最小,于是整个题意说白了就是求一棵MST,以前向星的形式给出最容易想到kruskal算法,于是这题顺利结束,从看题一直到调试结束半个小时搞定…...
分类:其他好文   时间:2014-10-05 16:20:38    阅读次数:197
POJ 2420 A Star not a Tree?【爬山法】
题目大意:在二维平面上找出一个点,使它到所有给定点的距离和最小,距离定义为欧氏距离,求这个最小的距离和是多少(结果需要四舍五入)?思路:如果不能加点,问所有点距离和的最小值那就是经典的MST,如果只可以加一个点问最小值就是广义的费马点的问题,如果加点的数目不加限制,那问题就成了斯坦纳树的问题(介个属...
分类:其他好文   时间:2014-10-05 16:19:58    阅读次数:211
局域网桌面远程
首先点击右下角的电源图标,我的没插电池会显示一个在电源图标处点左键或右键都行,点击电源选项>>选择关闭盖子的功能把这四项选为不采取任何操作>>保存修改右击“这台电脑”>>属性>>远程设置如下选择,然后确定再来到控制面板>>系统和安全好了,现在可以打开远程服务了按住win键加R键,打开运行,输入mst...
分类:其他好文   时间:2014-10-04 23:29:20    阅读次数:245
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!