<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Tham 在思索中前行！]]></title><description><![CDATA[因为他已经明白，不经过一番苦工是做不成的，而只有想做的人，才忍得过这番痛苦。]]></description><link>https://blog.csdn.net/tham_</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; tham_]]></copyright><item><title><![CDATA[挑战程序设计竞赛  — 知识总结]]></title><link>https://blog.csdn.net/tham_/article/details/80960503</link><guid>https://blog.csdn.net/tham_/article/details/80960503</guid><author>tham_</author><pubDate>Sun, 08 Jul 2018 17:04:47 +0800</pubDate><description><![CDATA[准备篇1.5 运行时间概述编写的目的是面向ACM程序设计竞赛，不可避免的要涉及复杂度和运行时间的问题，本节给出了解决问题算法选择的依据。假设题目描述中给出的限制条件为n&amp;lt;=1000，针对O(n2)的算法将会执行大于106次。如果时间限制是1s，则有下述结论：上述结论表明，针对O(n2)的算法，n&amp;lt;=1000可以在时限内解决，但是如果n&amp;lt;=10000，则超时的可能性非常大，这就启示...]]></description><category></category></item><item><title><![CDATA[NOIP2017 国庆郑州集训知识梳理汇总]]></title><link>https://blog.csdn.net/tham_/article/details/78179251</link><guid>https://blog.csdn.net/tham_/article/details/78179251</guid><author>tham_</author><pubDate>Mon, 09 Oct 2017 09:08:55 +0800</pubDate><description><![CDATA[第一天  基础算法及数学

基本算法


递推、递归、分治 
二分、倍增 
贪心

递推

指通过观察、归纳，发现较大规模问题和较小规模问题之间的关系，用一些数学公式表达出来

在一些题解中，和“计数DP”是指同一个概念

看例题

例 1

用 1 * 2 的骨牌，覆盖 2 * n 的棋盘的方案数？

解：很经典的Fibonacci 数 
O(n) 求]]></description><category></category></item><item><title><![CDATA[从平面上最近的点对，谈谈分治算法]]></title><link>https://blog.csdn.net/tham_/article/details/77838718</link><guid>https://blog.csdn.net/tham_/article/details/77838718</guid><author>tham_</author><pubDate>Mon, 04 Sep 2017 16:20:54 +0800</pubDate><description><![CDATA[首先介绍一下分治（Divide-and-Conquer ）算法：


设计过程分为三个阶段

–Divide： 整个问题划分为多个子问题
–Conquer：求解各子问题(递归调用正设计的算法)
–Combine：合并子问题的解, 形成原始问题的解

如下图：

举例说明





题目大意


给你n个点，求出其中点与点之间的最短距离。



 算法]]></description><category></category></item><item><title><![CDATA[莫队算法讲解]]></title><link>https://blog.csdn.net/tham_/article/details/77417882</link><guid>https://blog.csdn.net/tham_/article/details/77417882</guid><author>tham_</author><pubDate>Sat, 19 Aug 2017 22:53:20 +0800</pubDate><description><![CDATA[问题：有n个数组成一个序列，有m个形如询问L, R的询问，每次询问需要回答区间内至少出现2次的数有哪些。

　　朴素的解法需要读取O(nm)次数。如果数据范围小，可以用数组，时间复杂度为O(nm)。如果使用STL的Map来保存出现的次数，则需要O(nmlogn)的复杂度。有没有更快的方法呢？

　　注意到询问并没有强制在线，因此我们可以使用离线方法。注意到一点，如果我们有计算完[L, R]]]></description><category></category></item><item><title><![CDATA[随机算法 —— 模拟退火]]></title><link>https://blog.csdn.net/tham_/article/details/77417842</link><guid>https://blog.csdn.net/tham_/article/details/77417842</guid><author>tham_</author><pubDate>Sat, 19 Aug 2017 22:41:26 +0800</pubDate><description><![CDATA[模拟退火例题：CodeVS: P1344 


有 N (  P2 -> P3 -> ... -> PN 找出 |P1P2|+|P2P3|+...+|PN-1PN| 长度的最小值)


这种问题被称为最优组合问题。传统的动态规划算法O(n22n)在n = 20的情况下空间、时间、精度都不能满足了。这时应该使用比较另类的算法。随机化算法在n比较小的最优化问题表现较好，我们尝试使用随机化算]]></description><category></category></item><item><title><![CDATA[OI (信息 ) 竞赛中的对拍程序，造数据，对拍利器]]></title><link>https://blog.csdn.net/tham_/article/details/77412840</link><guid>https://blog.csdn.net/tham_/article/details/77412840</guid><author>tham_</author><pubDate>Sat, 19 Aug 2017 15:11:20 +0800</pubDate><description><![CDATA[作为一名OIer，比赛时，对拍是必须的 
不对拍，有时可以悔恨终身

首先，对拍的程序 
一个是要交的程序 
另一个可以是暴力、搜索等，可以比较慢，但是必须正确

下面是C++版对拍程序（C++ & cmd） 
注意：所有程序不用加文件输入输出
#include
#include
#include

int main()
{   long s,t;
    while(1){]]></description><category></category></item><item><title><![CDATA[Codechef GRAPHCNT 支配树学习及tarjan算法求解]]></title><link>https://blog.csdn.net/tham_/article/details/76286577</link><guid>https://blog.csdn.net/tham_/article/details/76286577</guid><author>tham_</author><pubDate>Sat, 29 Jul 2017 09:17:55 +0800</pubDate><description><![CDATA[[Codechef GRAPHCNT]新年的有向图



【题目描述】


zlx同学在学习数论时，被虐了一脸，丧心病狂的他决定去报复社会。
zlx在公园里埋下N颗地雷，用来炸飞在春节期间秀恩爱的情侣。这N颗地雷由M条有向边连接成为一个有向图，zlx则在1号地雷处引爆1号地雷可以到达的地雷。现在，为了更好的实施这个计划，zlx需要知道存在多少对地雷(x,y)，使得存在一条1到x和一]]></description><category></category></item><item><title><![CDATA[Emacs指北(做一个搬运工好累)]]></title><link>https://blog.csdn.net/tham_/article/details/75313481</link><guid>https://blog.csdn.net/tham_/article/details/75313481</guid><author>tham_</author><pubDate>Tue, 18 Jul 2017 17:13:17 +0800</pubDate><description><![CDATA[从一个简单的emacs入门教程说起：


一个不知道怎么描述的emacs教程



一个简单的介绍

emacs[/ˈiːmæks/]是地球上的编辑器中最像操作系统，操作系统中最像编辑器的编辑器，按照elisp intro的说法，emacs 是一个可拓展计算环境(extensible computing environment)，这一点，如果 学过elisp，可以深刻的体会到。]]></description><category></category></item><item><title><![CDATA[firefox浏览器无法打开百度，但是能ping通百度的域名]]></title><link>https://blog.csdn.net/tham_/article/details/74906331</link><guid>https://blog.csdn.net/tham_/article/details/74906331</guid><author>tham_</author><pubDate>Sun, 09 Jul 2017 21:45:33 +0800</pubDate><description><![CDATA[机房Ubuntu14.04，突然发现firefox打不开百度了，但却能打开其他网站。


猜想1：首先想到的是不是我的网络有问题
实验1：ping www.baidu.com
xs@PC:~$ ping www.baidu.com
正常返回数据，且延时很小。


由于浏览器能够访问bing，于是我又ping  www.bing.com
xs@PC:~$ ping  www.bi]]></description><category></category></item><item><title><![CDATA[二分图及其匹配算法——最大匹配数（最小覆盖数）、最大独立数、最小路径覆盖、带权最优匹配]]></title><link>https://blog.csdn.net/tham_/article/details/72872199</link><guid>https://blog.csdn.net/tham_/article/details/72872199</guid><author>tham_</author><pubDate>Mon, 05 Jun 2017 22:41:47 +0800</pubDate><description><![CDATA[§1图论点、边集和二分图的相关概念和性质

§2二分图最大匹配求解

匈牙利算法、Hopcroft-Karp算法

§3二分图最小覆盖集和最大独立集的构造

§4二分图最小路径覆盖求解

§5二分图带权最优匹配求解

Kuhn-Munkers算法

§6小结

每章节都详细地讲解了问题介绍，算法原理和分析，算法流程，算法实现四部分内容，力求彻底解决问题。

 ]]></description><category></category></item><item><title><![CDATA[学习一项技能要花多少时间？]]></title><link>https://blog.csdn.net/tham_/article/details/72598124</link><guid>https://blog.csdn.net/tham_/article/details/72598124</guid><author>tham_</author><pubDate>Sun, 21 May 2017 14:02:04 +0800</pubDate><description><![CDATA[转载自： Rei（Ruby-China 创始人）   http://chloerei.com/2013/12/12/how-long-does-it-take-to-learn-a-skill/
前不久，一个技术 party 上有人问我：“我学习 Rails 已经2个月了，但还是对整个开发流程缺乏清晰的了解，我应该怎么学呢？”这不是个别现象，在 ruby-china.org 上也经常有人发帖，说]]></description><category></category></item><item><title><![CDATA[无向图的割点、桥与双连通分量]]></title><link>https://blog.csdn.net/tham_/article/details/72353226</link><guid>https://blog.csdn.net/tham_/article/details/72353226</guid><author>tham_</author><pubDate>Tue, 16 May 2017 21:15:46 +0800</pubDate><description><![CDATA[概念

对于无向图G，删除顶点v 和其相连的边后G所包含的连通分量增多，则称v为关节点 (articulation
 point) 或割点 (cut point)。同理，删除边e 和其相连的顶点后图包含的连通分量增多，则e 是割边 (cut
 edge) 或桥 (bridge)。

割点形式化的定义：A 是割点当且仅当存在两个点u,v 使得u 到v 的每条路径都会经过A （去掉A 后，]]></description><category></category></item><item><title><![CDATA[hihocoder#1369 : 网络流算法的一些小结]]></title><link>https://blog.csdn.net/tham_/article/details/70133727</link><guid>https://blog.csdn.net/tham_/article/details/70133727</guid><author>tham_</author><pubDate>Tue, 11 Apr 2017 20:47:19 +0800</pubDate><description><![CDATA[一道最大流模板水题,借这道题来学习一下最大流的几个算法。

分别用Edmond-Karp，Dinic ，SAP来实现最大流算法。


从运行结过来看明显SAP+当前弧优化+gap优化速度最快。

 

hihocoder #1369 : 网络流一·Ford-Fulkerson算法

原题网址：http://hihocoder.com/problemset/problem/13]]></description><category></category></item><item><title><![CDATA[树链剖分 — 轻重边路径剖分]]></title><link>https://blog.csdn.net/tham_/article/details/68944689</link><guid>https://blog.csdn.net/tham_/article/details/68944689</guid><author>tham_</author><pubDate>Sat, 01 Apr 2017 16:58:41 +0800</pubDate><description><![CDATA[“在一棵树上进行路径的修改、求极值、求和”乍一看只要线段树就能轻松解决，实际上，仅凭线段树是不能搞定它的。我们需要用到一种貌似高级的复杂算法——树链剖分。

树链，就是树上的路径。剖分，就是把路径分类为重链和轻链。
    
记siz[v]表示以v为根的子树的节点数，dep[v]表示v的深度(根深度为1)，top[v]表示v所在的重链的顶端节点，fa[v]表示v的父亲，son[v]表示与v]]></description><category></category></item><item><title><![CDATA[分治、CDQ分治小结]]></title><link>https://blog.csdn.net/tham_/article/details/68555100</link><guid>https://blog.csdn.net/tham_/article/details/68555100</guid><author>tham_</author><pubDate>Thu, 30 Mar 2017 22:24:06 +0800</pubDate><description><![CDATA[分治、CDQ分治小结 A Summary for Divide and Conquer

0. Anouncement

本文部分图片以及部分内容来自互联网，内容过多就不一一注明出处了，冒犯之处还请海涵。 
Some of the pictures and the content of the text come from the Internet. 
Due to plenty of]]></description><category></category></item><item><title><![CDATA[Segment Tree 线段树小结]]></title><link>https://blog.csdn.net/tham_/article/details/68546460</link><guid>https://blog.csdn.net/tham_/article/details/68546460</guid><author>tham_</author><pubDate>Thu, 30 Mar 2017 22:06:51 +0800</pubDate><description><![CDATA[线段树小结 A Summary for Segment Tree

0. Anouncement

本文部分图片以及部分内容来自互联网，内容过多就不一一注明出处了，冒犯之处还请海涵。 
Some of the pictures and the content of the text come from the Internet. 
Due to plenty of the conten]]></description><category></category></item><item><title><![CDATA[多项式， FTT， NTT小结]]></title><link>https://blog.csdn.net/tham_/article/details/68544212</link><guid>https://blog.csdn.net/tham_/article/details/68544212</guid><author>tham_</author><pubDate>Thu, 30 Mar 2017 22:05:04 +0800</pubDate><description><![CDATA[FFT、NTT小结



https://www.zybuluo.com/TaoSama/note/171617]]></description><category></category></item><item><title><![CDATA[transform函数转换字符串string的大小写]]></title><link>https://blog.csdn.net/tham_/article/details/51201249</link><guid>https://blog.csdn.net/tham_/article/details/51201249</guid><author>tham_</author><pubDate>Wed, 20 Apr 2016 15:45:24 +0800</pubDate><description><![CDATA[首先看一下transform函数的用户手册：
template 
  OutputIterator transform ( InputIterator first1, InputIterator last1,
                             OutputIterator result, UnaryOperator op );
template < class Input]]></description><category></category></item><item><title><![CDATA[Hiho  数论一·Miller-Rabin质数测试，大素数判断]]></title><link>https://blog.csdn.net/tham_/article/details/51182999</link><guid>https://blog.csdn.net/tham_/article/details/51182999</guid><author>tham_</author><pubDate>Mon, 18 Apr 2016 21:37:06 +0800</pubDate><description><![CDATA[题目1 : 数论一·Miller-Rabin质数测试


时间限制:10000ms
单点时限:1000ms
内存限制:256MB










描述

小Hi和小Ho最近突然对密码学产生了兴趣，其中有个叫RSA的公钥密码算法。RSA算法的计算过程中，需要找一些很大的质数。

小Ho：要如何来找出足够大的质数呢？

小Hi：我倒是有一个想法，我们可以]]></description><category></category></item><item><title><![CDATA[二分图的最大匹配、完美匹配和匈牙利算法]]></title><link>https://blog.csdn.net/tham_/article/details/51178470</link><guid>https://blog.csdn.net/tham_/article/details/51178470</guid><author>tham_</author><pubDate>Mon, 18 Apr 2016 11:58:26 +0800</pubDate><description><![CDATA[这篇文章讲无权二分图（unweighted bipartite graph）的最大匹配（maximum matching）和完美匹配（perfect matching），以及用于求解匹配的匈牙利算法（Hungarian Algorithm）；不讲带权二分图的最佳匹配。

二分图：简单来说，如果图中点可以被分为两组，并且使得所有边都跨越组的边界，则这就是一个二分图。准确地说：把一个图的顶点划分为]]></description><category></category></item></channel></rss>