码迷,mamicode.com
首页 >  
搜索关键字:AI    ( 6035个结果
UVa 1471 (LIS变形) Defense Lines
题意:给出一个序列,删掉它的一个连续子序列(该子序列可以为空),使得剩下的序列有最长的连续严格递增子序列。分析:这个可以看作lrj的《训练指南》P62中讲到的LIS的O(nlogn)的优化变形过来的问题。预处理:Li是第i个元素Ai向左延伸的最大长度,即[i, i + Li - 1]是一个递增区间同...
分类:其他好文   时间:2015-02-07 18:46:50    阅读次数:170
LeetCode 011 Container With Most Water
题目描述:Container With Most WaterGivennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn s...
分类:其他好文   时间:2015-02-07 15:53:27    阅读次数:141
hdu 1394 Minimum Inversion Number 归并求逆序数
The inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i aj. For a given sequence of numbers a1, a2, ..., an, if we move the first m >= 0 numbers to the end of the seqence, we will obtain ...
分类:其他好文   时间:2015-02-06 15:03:24    阅读次数:126
Behavior Designer笔记
1.总览Behavior Designer是一个行为树程序.他为所有人设计-程序美工策划.Behavior Designer提供很好很强大的API,允许你愉快的进行玩耍.他和PlayMaker和uScript插件完美结合,提供直观可视化编辑器类.你可以不写一行代码也能创造复杂AI. 这篇文章将为B....
分类:其他好文   时间:2015-02-06 13:01:37    阅读次数:290
UVa 11054 Wine trading in Gergovia
题意:直线上有n个等距的酒庄,每个酒庄对酒的需求量为ai(正数说明需要买酒,负数需要卖酒),而且保证所有的酒庄供需平衡。搬运x个单位的酒到相邻的酒庄需要x个劳动力,求要使所有酒庄供需平衡最少需要多少劳动力。分析:第一个酒庄要买a1个单位的酒,那么这些酒可能是直接由第二个酒庄生产的,也可能是其他酒庄运...
分类:Windows程序   时间:2015-02-06 12:52:30    阅读次数:168
【leetcode】Container With Most Water(middle)
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:其他好文   时间:2015-02-05 21:41:14    阅读次数:160
【转】人工智能(AI)资料大全
这里收集的是关于人工智能(AI)的教程、书籍、视频演讲和论文。欢迎提供更多的信息。在线教程麻省理工学院人工智能视频教程– 麻省理工人工智能课程人工智能入门– 人工智能基础学习。Peter Norvig举办的课程EdX 人工智能– 此课程讲授人工智能计算机系统设计的基本概念和技术。人工智能中的计划– ...
分类:其他好文   时间:2015-02-05 13:08:31    阅读次数:239
Container With Most Water
题目描述:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two ...
分类:其他好文   时间:2015-02-05 10:56:24    阅读次数:173
git log控制输出宽度
%, %>|, %>>, %>< 类似, 分别为 右对齐, 右对齐, 右对齐(如果左边有多余空格则复用), 居中对齐参考示例:git log --pretty=format:'%Cblue%h%Creset %<(40,trunc)%s [%C(green)%<(21,trunc)%ai%x08%x...
分类:其他好文   时间:2015-02-04 20:17:32    阅读次数:248
IOS 后台无限执行任务
找到一些关于ios后台可以继续执行任务的相关代码,分享一下: 首先需要配置Info-Plist文件,在里面新建一个Required background modes。这个是一个数组,在下面添加如下内容: App provides Voice over IP services(VOIP) App plays audio or streams audio/video using Ai...
分类:移动开发   时间:2015-02-04 18:42:55    阅读次数:181
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!