<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[hexianhao的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/hexianhao</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; hexianhao]]></copyright><item><title><![CDATA[神经网络]]></title><link>https://blog.csdn.net/hexianhao/article/details/54669413</link><guid>https://blog.csdn.net/hexianhao/article/details/54669413</guid><author>hexianhao</author><pubDate>Sun, 22 Jan 2017 16:45:59 +0800</pubDate><description><![CDATA[概述

以监督学习为例，假设我们有训练样本集  ，那么神经网络算法能够提供一种复杂且非线性的假设模型  ，它具有参数  ，可以以此参数来拟合我们的数据。


为了描述神经网络，我们先从最简单的神经网络讲起，这个神经网络仅由一个“神经元”构成，以下即是这个“神经元”的图示：





这个“神经元”是一个以  及截距  为输入值的运算单元，其输出为  ，其中函数  被称为“激活]]></description><category></category></item><item><title><![CDATA[Linux cut用法]]></title><link>https://blog.csdn.net/hexianhao/article/details/54647033</link><guid>https://blog.csdn.net/hexianhao/article/details/54647033</guid><author>hexianhao</author><pubDate>Sat, 21 Jan 2017 19:17:48 +0800</pubDate><description><![CDATA[一、作用

cut命令是一个选取命令，其功能是将文件中的每一行”字节” ”字符” ”字段” 进行剪切，选取我们需要的，并将这些选取好的数据输出至标准输出

二、格式

cut -[n]b file 
cut -c file 
cut -d[分隔符] -f[域] file

三、参数解释

-b(bytes) ：以字节为单位进行分割。这些字节位置将忽略多字节字符边界，除非也指]]></description><category></category></item><item><title><![CDATA[Linux bash逐行读取文件的方法]]></title><link>https://blog.csdn.net/hexianhao/article/details/54646791</link><guid>https://blog.csdn.net/hexianhao/article/details/54646791</guid><author>hexianhao</author><pubDate>Sat, 21 Jan 2017 17:45:07 +0800</pubDate><description><![CDATA[方法一，指定换行符读取：
for LINE in `cat /etc/passwd`  
do   
  echo $LINE 
done



方法二，文件重定向给read处理：

cat /etc/passwd | while read LINE  
do
  echo $LINE 
done



方法三，用read读取文件重定向：

while rea]]></description><category></category></item><item><title><![CDATA[“error LNK1169: 找到一个或多个多重定义的符号”的解决方法]]></title><link>https://blog.csdn.net/hexianhao/article/details/53010641</link><guid>https://blog.csdn.net/hexianhao/article/details/53010641</guid><author>hexianhao</author><pubDate>Wed, 02 Nov 2016 18:54:32 +0800</pubDate><description><![CDATA[问题描述如下：

有 三个源文件，A.h、B.cpp、C.cpp。

A.h是头文件，其中声明了三个变量a1、a2、 a3。

B.cpp是A.h中所声明的类的实现源代码，C.cpp是主程序文件。B.cpp和C.cpp中均包含头文件 A.h。

在编译时，编译能够通过，但链接时出了问题，出现”error   LNK1169:   找到一个或多个多重定义的符号“的错误。

经过分]]></description><category></category></item><item><title><![CDATA[hihocoder #1329 : 平衡树·Splay]]></title><link>https://blog.csdn.net/hexianhao/article/details/52782391</link><guid>https://blog.csdn.net/hexianhao/article/details/52782391</guid><author>hexianhao</author><pubDate>Mon, 10 Oct 2016 22:12:59 +0800</pubDate><description><![CDATA[#1329 : 平衡树·Splay




时间限制:10000ms
单点时限:1000ms
内存限制:256MB







描述
小Ho：小Hi，上一次你跟我讲了Treap，我也实现了。但是我遇到了一个关键的问题。
小Hi：怎么了？
小Ho：小Hi你也知道，我平时运气不太好。所以这也反映到了我写的Treap上。
小Hi：你是说你随机出来的权值不太好，从而]]></description><category></category></item><item><title><![CDATA[nyoj 945 Just do it(莫队算法)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52718554</link><guid>https://blog.csdn.net/hexianhao/article/details/52718554</guid><author>hexianhao</author><pubDate>Sat, 01 Oct 2016 20:43:26 +0800</pubDate><description><![CDATA[Just do it
时间限制：2000 ms  |  内存限制：65535 KB
难度：4





描述蚂蚁终于忍受不了宇宙总部要回地球了，它叮嘱我不要再编它的故事了，
有啥事直接说，有啥问题直接问就好了，它相信大家都能替他解决的，
毕竟都解决了不少问题了。
好，这次就直接说问题
求一个序列的某个区间中出现了多少不相同的数字。对于一个序列会询问很多很多次。


]]></description><category></category></item><item><title><![CDATA[hdu 5692 Snacks(dfs序+线段树区间更新)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52718440</link><guid>https://blog.csdn.net/hexianhao/article/details/52718440</guid><author>hexianhao</author><pubDate>Sat, 01 Oct 2016 20:03:38 +0800</pubDate><description><![CDATA[题目链接：http://acm.hdu.edu.cn/showproblem.php?pid=5692


解题思路：这道题是树节点的点权更新，而且涉及到子树，常用的思路是利用dfs序，用线段树来对区间进行维护。这道题就是这样做的，由于某一个点的权值改变，它的子树必定都会受影响，所以这里正好可以用线段树区间更新来维护从0号节点到各个节点的前缀和，那么最大的肯定就是这些区间里最大前缀和。
#]]></description><category></category></item><item><title><![CDATA[CSU 1811 Tree Intersection(dfs序+莫队算法)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52716713</link><guid>https://blog.csdn.net/hexianhao/article/details/52716713</guid><author>hexianhao</author><pubDate>Sat, 01 Oct 2016 10:04:04 +0800</pubDate><description><![CDATA[1811: Tree Intersection
Time Limit: 5 Sec  Memory Limit: 
128 MB
Submit: 239  Solved: 108
[Submit][Status][Web
 Board]
Description

Bobo has a tree with n vertices numbered by 1,2,…,n and (n-1]]></description><category></category></item><item><title><![CDATA[nyoj 1272 表达式求值(中缀式转后缀式)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52704921</link><guid>https://blog.csdn.net/hexianhao/article/details/52704921</guid><author>hexianhao</author><pubDate>Thu, 29 Sep 2016 20:42:18 +0800</pubDate><description><![CDATA[表达式求值
时间限制：1000 ms  |  内存限制：65535 KB
难度：3





描述假设表达式定义为: 1. 一个十进制的正整数 X 是一个表达式。 2. 如果 X 和 Y 是 表达式，则 X+Y, X*Y 也是表达式; *优先级高于+. 3. 如果 X 和 Y 是 表达式，则 函数 Smax(X,Y)也是表达式,其值为:先分别求出 X ,Y 值的各位数字之和，再从中]]></description><category></category></item><item><title><![CDATA[nyoj 1261 音痴又音痴的LT(离散化+树状数组求K小数)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52695233</link><guid>https://blog.csdn.net/hexianhao/article/details/52695233</guid><author>hexianhao</author><pubDate>Wed, 28 Sep 2016 23:23:37 +0800</pubDate><description><![CDATA[题目链接：http://acm.nyist.net/JudgeOnline/problem.php?pid=1261


解题思路：比较水的题，用离散化+树状数组求K小数即可，先用一次离线处理。


#include
#include
#include
#include
#include
#include
using namespace std;

const int maxn = 1]]></description><category></category></item><item><title><![CDATA[nyoj 680 摘枇杷(二分+贪心)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52693950</link><guid>https://blog.csdn.net/hexianhao/article/details/52693950</guid><author>hexianhao</author><pubDate>Wed, 28 Sep 2016 21:14:21 +0800</pubDate><description><![CDATA[摘枇杷
时间限制：2000 ms  |  内存限制：65535 KB
难度：3





描述

理工学院的枇杷快熟了，ok，大家都懂得。而且大家都知道，学校的枇杷树都是一列一列的。现在小Y同学已经在筹划怎么摘枇杷了。现在我们假设有一列枇杷树，而且每棵枇杷树上枇杷果的数量小Y都已经知道了。

假设现在有n棵枇杷树，小Y可以把这n棵枇杷树分成m组，每组枇杷果的数量是这组内每棵]]></description><category></category></item><item><title><![CDATA[nyoj 677 碟战(最大流最小割定理)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52685957</link><guid>https://blog.csdn.net/hexianhao/article/details/52685957</guid><author>hexianhao</author><pubDate>Tue, 27 Sep 2016 23:33:17 +0800</pubDate><description><![CDATA[碟战
时间限制：2000 ms  |  内存限制：65535 KB
难度：4





描述

知己知彼，百战不殆！在战争中如果被敌人掌握了自己的机密，失败是必然的。K国在一场战争中屡屡失败，就想到自己的某些城市可能会有敌方的间谍。

在仔细调查后，终于得知在哪些城市存在间谍。当然这个消息也被敌方间谍得知，所以间谍们开始撤离，试图到达K国唯一机场，然后抢夺飞机回国。由于城市]]></description><category></category></item><item><title><![CDATA[hihocoder #1343 : Stable Members(支配树)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52442309</link><guid>https://blog.csdn.net/hexianhao/article/details/52442309</guid><author>hexianhao</author><pubDate>Mon, 05 Sep 2016 17:59:35 +0800</pubDate><description><![CDATA[时间限制:10000ms
单点时限:1000ms
内存限制:256MB






描述
Recently Little Hi joined an algorithm learning group. The group consists of one algorithm master and Nmembers. The members are numbered from 1 t]]></description><category></category></item><item><title><![CDATA[hihocoder #1362 : 修补木桶(二分+dp)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52401530</link><guid>https://blog.csdn.net/hexianhao/article/details/52401530</guid><author>hexianhao</author><pubDate>Thu, 01 Sep 2016 17:06:24 +0800</pubDate><description><![CDATA[时间限制:10000ms
单点时限:1000ms
内存限制:256MB






描述
一只木桶能盛多少水，并不取决于桶壁上最高的那块木板，而恰恰取决于桶壁上最短的那块。
已知一个木桶的桶壁由N块木板组成，第i块木板的长度为Ai。
现在小Hi有一个快捷修补工具，每次可以使用修补工具将连续的不超过L块木板提高至任意高度。
已知修补工具一共可以使用M次(M*L
注意: 木]]></description><category></category></item><item><title><![CDATA[hihocoder 第113周 Fibonacci(动态规划)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52395985</link><guid>https://blog.csdn.net/hexianhao/article/details/52395985</guid><author>hexianhao</author><pubDate>Thu, 01 Sep 2016 08:41:07 +0800</pubDate><description><![CDATA[题目大意：给定一个数字序列，求该序列的所有子序列中有多少是斐波拉契数列的前缀，即满足"1 1 2 3 ..."的形式。

解题思路：首先注意ai的范围，首先可以肯定斐波拉切数列不会太多，最多25个。那么可以利用动态规划的思想，dp[i][j]表示前i个串当中，以斐波拉切数列中的第j数个结尾的，有多少种。

那么可以很简单的得到状态转移方程：

IF a[i] = fib[j]

d]]></description><category></category></item><item><title><![CDATA[nyoj 947 Max Xor(字典树)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52329454</link><guid>https://blog.csdn.net/hexianhao/article/details/52329454</guid><author>hexianhao</author><pubDate>Fri, 26 Aug 2016 16:13:14 +0800</pubDate><description><![CDATA[Max Xor
时间限制：3000 ms  |  内存限制：65535 KB
难度：4





描述给一个长度为 n 的数列 {an} ，找出 max {ai ^ aj}。


输入多组测试数据。
第 1 行 1 个数 n。（1
接下来的 1 行有 n 个数 ai。（0
输出1 行有 1 个数，max {ai ^ aj}。
样例输入
3
0 1 2

样例输出]]></description><category></category></item><item><title><![CDATA[poj 1743 Musical Theme(后缀数组)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52295499</link><guid>https://blog.csdn.net/hexianhao/article/details/52295499</guid><author>hexianhao</author><pubDate>Tue, 23 Aug 2016 23:31:03 +0800</pubDate><description><![CDATA[Musical Theme




Time Limit: 1000MS
 
Memory Limit: 30000K


Total Submissions: 26471
 
Accepted: 8936




Description

A musical melody is represented as a sequence of N (1<=N<=20]]></description><category></category></item><item><title><![CDATA[poj 3261 Milk Patterns（后缀数组）]]></title><link>https://blog.csdn.net/hexianhao/article/details/52294364</link><guid>https://blog.csdn.net/hexianhao/article/details/52294364</guid><author>hexianhao</author><pubDate>Tue, 23 Aug 2016 20:56:24 +0800</pubDate><description><![CDATA[Milk Patterns




Time Limit: 5000MS
 
Memory Limit: 65536K


Total Submissions: 14130
 
Accepted: 6263


Case Time Limit: 2000MS




Description

Farmer John has noticed that th]]></description><category></category></item><item><title><![CDATA[nyoj 133 子序列(尺取法+离散化)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52291861</link><guid>https://blog.csdn.net/hexianhao/article/details/52291861</guid><author>hexianhao</author><pubDate>Tue, 23 Aug 2016 16:10:02 +0800</pubDate><description><![CDATA[子序列
时间限制：3000 ms  |  内存限制：65535 KB
难度：5





描述

给定一个序列，请你求出该序列的一个连续的子序列，使原串中出现的所有元素皆在该子序列中出现过至少1次。

如2 8 8 8 1 1，所求子串就是2 8 8 8 1。


输入第一行输入一个整数T(0
每组测试数据的第一行是一个整数N(1
随后的一行有N个正整数，表示给定]]></description><category></category></item><item><title><![CDATA[nyoj 931 货物运输(Floyd输出路径)]]></title><link>https://blog.csdn.net/hexianhao/article/details/52288012</link><guid>https://blog.csdn.net/hexianhao/article/details/52288012</guid><author>hexianhao</author><pubDate>Tue, 23 Aug 2016 09:38:58 +0800</pubDate><description><![CDATA[货物运输
时间限制：1000 ms  |  内存限制：65535 KB
难度：4




描述

S国有n个城市，从a城到b城运货的花费有两部分组成：

（1）a城到b城的运输费

（2）途径城市的税收

例如：a 运货到 b，走路线a —> i —> j —> b ,总花费为a 到 i ，i 到 j，j 到 b 的运输费、i，j 城市的税收之和。

已知任意两个]]></description><category></category></item></channel></rss>