摘要: 假设你还不知道邻接表的概念和作用etc: 请猛戳:http://baike.baidu.com/view/549594.htm?fr=aladdin struct Edge { int v; int next; }e[maxm]; memset(head,-1;sizeof(head); int c 阅读全文
posted @ 2017-04-16 11:04 zhchoutai 阅读(178) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="ArrowTextView"> <attr name="radius" format="dimension" /> <attr name="arro 阅读全文
posted @ 2017-04-16 10:20 zhchoutai 阅读(2552) 评论(0) 推荐(0)
摘要: addr2line有什么作用呢? 可别小瞧它, 它能够定位到代码出错的位置。 以下, 我们来看看这个简单的代码: #include <stdio.h> int main() { int *p = NULL; *p = 0; printf("bad\n"); return 0; } 这个程序非常小, 阅读全文
posted @ 2017-04-16 09:04 zhchoutai 阅读(1963) 评论(0) 推荐(1)
摘要: 假设Service等的AndroidManifest中声明为android:exported="false" 则该服务不可以跨进程使用。 Permission Denied! 须要改为:android:exported="true" android:exported 这个属性用于指示该服务是否可以被 阅读全文
posted @ 2017-04-15 21:11 zhchoutai 阅读(750) 评论(0) 推荐(0)
摘要: 本文基于台大机器学习技法系列课程进行的笔记总结。 一、主要内容 topic 1 深度神经网络结构 从类神经网络结构中我们已经发现了神经网络中的每一层实际上都是对前一层进行的特征转换,也就是特征抽取。一般的隐藏层(hidden layer)较少的类神经网络结构我们称之为shallow,而当隐藏层数比較 阅读全文
posted @ 2017-04-15 20:37 zhchoutai 阅读(225) 评论(0) 推荐(0)
摘要: 在软考学习的时候,才发现多态不只唯独我认识的那么一两种,非常多用过的形式原来它们也是多态呀。 首先来看下大图: 接下来本文将一一举例这些多态,并在末尾做个小对照。 一。简单介绍几种多态 1。泛型 这个听起来比較高大上,可是大家都用过。比如: 机房收费系统——组合查询中,为了尽可能抽出同样部分。使用T 阅读全文
posted @ 2017-04-15 19:37 zhchoutai 阅读(543) 评论(0) 推荐(0)
摘要: Algorithm.( Augmenting Path Algorithm ) Input: An X-Y bigraph G, a matching M in G, and the set U of M-unsaturated vertices in X. Idea: Explore M-alte 阅读全文
posted @ 2017-04-15 18:03 zhchoutai 阅读(235) 评论(0) 推荐(0)
摘要: 题目 Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed fro 阅读全文
posted @ 2017-04-15 17:17 zhchoutai 阅读(157) 评论(0) 推荐(0)
摘要: * 确定你安装了Android NDK R9B 版本号 ,假设没有前往下面地址下载。 ( https://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64.tar.bz2) from (http://developer.android.co 阅读全文
posted @ 2017-04-15 15:50 zhchoutai 阅读(222) 评论(0) 推荐(0)
摘要: 简单介绍: DbUtils为不喜欢hibernate框架的钟爱。它是线程安全的,不存在并发问题。 使用步骤: 1. QueryRunner runner=new QueryRunner(这里写数据源...如c3p0的数据元new ComboPooledDataSource()或者dbcp的数据元); 阅读全文
posted @ 2017-04-15 15:05 zhchoutai 阅读(256) 评论(0) 推荐(0)