<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>学习笔记 on CheaSim Blog</title>
    <link>https://www.cheasim.com/categories/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</link>
    <description>Recent content in 学习笔记 on CheaSim Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Tue, 23 Apr 2019 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.cheasim.com/categories/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>TCP,UDP,Socket学习笔记</title>
      <link>https://www.cheasim.com/2019/04/23/tcp-udp-socket%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</link>
      <pubDate>Tue, 23 Apr 2019 00:00:00 +0000</pubDate>
      <guid>https://www.cheasim.com/2019/04/23/tcp-udp-socket%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</guid>
      <description>&lt;h1 id=&#34;linux自学网络&#34;&gt;Linux自学网络&lt;/h1&gt;
&lt;h2 id=&#34;what-is-socket-系统调用&#34;&gt;What is Socket 系统调用&lt;/h2&gt;
&lt;p&gt;TCP
UDP&lt;/p&gt;
&lt;p&gt;是否连接
面上连接
面上非连接&lt;/p&gt;
&lt;p&gt;传输可靠性
可靠
不可靠&lt;/p&gt;
&lt;p&gt;应用场合
传输大量的数据，对可靠性要求较高的场景
传输少量数据，对可靠性要求不高的场景&lt;/p&gt;</description>
    </item>
    <item>
      <title>我是Makefile</title>
      <link>https://www.cheasim.com/2019/04/11/%E6%88%91%E6%98%AFmakefile/</link>
      <pubDate>Thu, 11 Apr 2019 00:00:00 +0000</pubDate>
      <guid>https://www.cheasim.com/2019/04/11/%E6%88%91%E6%98%AFmakefile/</guid>
      <description>&lt;h1 id=&#34;我是makefile&#34;&gt;我是Makefile&lt;/h1&gt;
&lt;p&gt;我是makefile而不是makelove。最近学校开了Linux这门课，于是我就开始自学Linux了，看的是《Linux就是这个范儿》。实名制推荐，语言又风趣又实在。&lt;/p&gt;</description>
    </item>
    <item>
      <title>[acm]hash学习笔记</title>
      <link>https://www.cheasim.com/2019/03/09/acm-hash%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</link>
      <pubDate>Sat, 09 Mar 2019 00:00:00 +0000</pubDate>
      <guid>https://www.cheasim.com/2019/03/09/acm-hash%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</guid>
      <description>&lt;h1 id=&#34;hash学习&#34;&gt;hash学习&lt;/h1&gt;
&lt;p&gt;hash是一种比较常见的处理字符串的手法。在acm题目中，经常使用hash来处理字符串。比如判断一个子串在一个字符串中出现过几次。就可以使用hash来处理。&lt;/p&gt;</description>
    </item>
    <item>
      <title>树链剖分学习笔记</title>
      <link>https://www.cheasim.com/2018/09/29/%E6%A0%91%E9%93%BE%E5%89%96%E5%88%86%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</link>
      <pubDate>Sat, 29 Sep 2018 00:00:00 +0000</pubDate>
      <guid>https://www.cheasim.com/2018/09/29/%E6%A0%91%E9%93%BE%E5%89%96%E5%88%86%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</guid>
      <description>&lt;h1 id=&#34;树链剖分学习笔记&#34;&gt;树链剖分学习笔记&lt;/h1&gt;
&lt;h2 id=&#34;题型&#34;&gt;题型&lt;/h2&gt;
&lt;p&gt;当一道题在询问两点之间修改后的权值或者是两点之间边修改后的权值。这类题目往往我们一开始就会思考用线段树来维护，但是线段树无法维护一颗树上的链，所以我们需要来将树上的链剖分下来。&lt;/p&gt;</description>
    </item>
    <item>
      <title>LCA学习笔记</title>
      <link>https://www.cheasim.com/2018/09/25/lca%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</link>
      <pubDate>Tue, 25 Sep 2018 00:00:00 +0000</pubDate>
      <guid>https://www.cheasim.com/2018/09/25/lca%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</guid>
      <description>&lt;h1 id=&#34;lca学习笔记&#34;&gt;LCA学习笔记&lt;/h1&gt;
&lt;h2 id=&#34;祖先的定义&#34;&gt;祖先的定义&lt;/h2&gt;
&lt;p&gt;如果学习树结构就会明白除了根节点以外每个节点都有一个父节点，所以我们定义祖先为父节点的父节点，然后我们给出最近公共祖先的定义&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;一棵树祖先中到两个点距离最近的节点。&lt;/p&gt;</description>
    </item>
    <item>
      <title>web应用开发笔记</title>
      <link>https://www.cheasim.com/2018/09/03/web%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/</link>
      <pubDate>Mon, 03 Sep 2018 00:00:00 +0000</pubDate>
      <guid>https://www.cheasim.com/2018/09/03/web%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/</guid>
      <description>&lt;h1 id=&#34;web应用开发&#34;&gt;web应用开发&lt;/h1&gt;
&lt;p&gt;现代人的生活方式&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;移动端,mobile&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;浏览器,browser&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;10年前还是以客户端,client软件形式。&lt;/p&gt;
&lt;h2 id=&#34;两个主流技术&#34;&gt;两个主流技术&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;.Net&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;J2ee&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;.Net过气了，用J2ee&lt;/p&gt;
&lt;h3 id=&#34;j2ee的三个方面&#34;&gt;J2ee的三个方面&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;M 模型:负责数据方面的事情，数据分为两个方面，store存储，access访问。依靠模型完成这个功能。
承载数据。&lt;/p&gt;</description>
    </item>
    <item>
      <title>单调队列学习笔记</title>
      <link>https://www.cheasim.com/2018/08/28/%E5%8D%95%E8%B0%83%E9%98%9F%E5%88%97%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</link>
      <pubDate>Tue, 28 Aug 2018 00:00:00 +0000</pubDate>
      <guid>https://www.cheasim.com/2018/08/28/%E5%8D%95%E8%B0%83%E9%98%9F%E5%88%97%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</guid>
      <description>&lt;h1 id=&#34;单调队列&#34;&gt;单调队列&lt;/h1&gt;
&lt;h2 id=&#34;定义&#34;&gt;定义&lt;/h2&gt;
&lt;p&gt;单调队列，就是指队列中的元素是单调的。&lt;/p&gt;
&lt;p&gt;$a_1,a_2,a_3,…,a_n$满足$a1\leq a_2\leq a_3…\leq a_n$的序列便是单调序列。&lt;/p&gt;</description>
    </item>
    <item>
      <title>最大子段和学习笔记</title>
      <link>https://www.cheasim.com/2018/08/27/%E6%9C%80%E5%A4%A7%E5%AD%90%E6%AE%B5%E5%92%8C%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</link>
      <pubDate>Mon, 27 Aug 2018 00:00:00 +0000</pubDate>
      <guid>https://www.cheasim.com/2018/08/27/%E6%9C%80%E5%A4%A7%E5%AD%90%E6%AE%B5%E5%92%8C%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</guid>
      <description>&lt;h1 id=&#34;最大子段和学习笔记&#34;&gt;最大子段和学习笔记&lt;/h1&gt;
&lt;h2 id=&#34;什么是最大子段和&#34;&gt;什么是最大子段和？&lt;/h2&gt;
&lt;p&gt;给定$n$个整数(可以为负数)组成的序列$a_1,a_2,…,a_n$，求该序列连续的字段和最大值。显然如果都是负数最大值可以为0。&lt;/p&gt;
&lt;h2 id=&#34;解决方案1&#34;&gt;解决方案1&lt;/h2&gt;
&lt;p&gt;暴力枚举开始位置$i$和终止位置$j$，对每一种可能性计算和。&lt;/p&gt;</description>
    </item>
    <item>
      <title>ST表学习笔记</title>
      <link>https://www.cheasim.com/2018/08/19/st%E8%A1%A8%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</link>
      <pubDate>Sun, 19 Aug 2018 00:00:00 +0000</pubDate>
      <guid>https://www.cheasim.com/2018/08/19/st%E8%A1%A8%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</guid>
      <description>&lt;h1 id=&#34;st表学习笔记&#34;&gt;ST表学习笔记&lt;/h1&gt;
&lt;h2 id=&#34;功能&#34;&gt;功能&lt;/h2&gt;
&lt;p&gt;ST表示用来求解给定区间RMQ的最值问题。&lt;/p&gt;
&lt;p&gt;预处理复杂度:$O(nlongn)$，查询复杂度$O(1)$。&lt;/p&gt;
&lt;h2 id=&#34;详解&#34;&gt;详解&lt;/h2&gt;
&lt;h3 id=&#34;原理&#34;&gt;原理&lt;/h3&gt;
&lt;p&gt;将原数组分成以2幂次的区间块，用$mn[i][j]$表示从$j$到$j-2^i-1$的最小值，最小值显然等于&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
