码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
五子棋AI算法-算杀
关于剪枝问题 前面讲到的通过Alpha-Beta剪枝和启发式搜索可以将4层搜索的平均时间降低到1秒以下。只有这两个优化方式其实目前最多可以做到6层搜索,就是把AI和玩家各向后推算三步。 6层搜索的棋力其实相当弱,碰到经常玩五子棋的人基本都会输,更不要说对五子棋有研究的玩家。以目前的平均一个节点有50 ...
分类:编程语言   时间:2016-10-21 16:10:49    阅读次数:403
数据结构 笔记 part2
1. union find 并查集 一种用来解决集合查询和合并的数据结构 并查集能够干什么? 1. find 操作 判断在不在同一个集合中 2. union关于集合合并 例子: A, B, C的boss 是B D,E,F的boss是E 那么组成了两个集合。 每个节点都包含了一个指针,指向其boss, ...
分类:其他好文   时间:2016-10-21 16:01:13    阅读次数:228
使用ElementTree解析xml(python3.4)
1、movies.xml 2、python代码 3、一些方法 Element.findAll():查找当前element的孩子的属于某个tag的element; Element.find():查找属于某个tag的第一个element; Element.text:访问Element的文本内容; Ele ...
分类:编程语言   时间:2016-10-21 13:06:37    阅读次数:145
移动端使用fetch
传统ajax 使用fetch fetch兼容使用:可以使用 参考:https://github.com/github/fetch 但是IOS7不支持Promise,导致,一直报错,Can't find variable: Promise ,ios8及以上支持Promise 决解办法:http://s ...
分类:移动开发   时间:2016-10-21 11:19:14    阅读次数:886
jquery操作select
<select id="selector"></select> 1、设置value为pxx的项选中 $("#selector").val("xxx"); 2、设置text为pxx的项选中 $("#selector").find("option[text='xxx']").attr("selected ...
分类:Web程序   时间:2016-10-21 00:26:26    阅读次数:121
【leedcode】 Median of Two Sorted Arrays
https://leetcode.com/problems/median-of-two-sorted-arrays/ There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median o ...
分类:其他好文   时间:2016-10-20 21:36:58    阅读次数:176
linux的一些面试问题
问题1、有些时候我们发现某个目录下的文件属性很乱,有些是777,有些是755,有些是644,为了安全隐患,请使用xargs和exec把当前目录下所有文件权限修改为644,请给出shell命令?答案:find./-typef|xargschmod644find./-typef-execchmod644{}\;问题2、用tcpdump嗅探80端口访问..
分类:系统相关   时间:2016-10-20 15:58:09    阅读次数:256
Asp.net Role manager tutorial
It is very useful in .net we can user framework provided role manager, and easily configure in Web.Config. However, I find when I fullfil such configu ...
分类:Web程序   时间:2016-10-20 14:54:29    阅读次数:178
Edit Distance 解答
Question Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) ...
分类:其他好文   时间:2016-10-20 14:34:26    阅读次数:113
mongo聚合函数count问题
在使用一个时间字段做范围查询count()行数时,发现一个问题:集合总doc数:mongo>db.log.find().count();90370113查询小于ISODate("2016-10-10T08:00:00.358Z")的doc有多少条:mongo>db.log.find({"startTime":{$lt:ISODate("2016-10-10T08:00:00.358Z")}}).count();3103..
分类:其他好文   时间:2016-10-20 01:31:31    阅读次数:346
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!