index.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
  6. <meta name="theme-color" content="#222">
  7. <meta name="generator" content="Hexo 4.2.0">
  8. <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  9. <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  10. <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  11. <link rel="mask-icon" href="/images/logo.svg" color="#222">
  12. <link rel="stylesheet" href="/css/main.css">
  13. <link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">
  14. <link rel="stylesheet" href="/lib/pace/pace-theme-minimal.min.css">
  15. <script src="/lib/pace/pace.min.js"></script>
  16. <script id="hexo-configurations">
  17. var NexT = window.NexT || {};
  18. var CONFIG = {"hostname":"schtonn.github.io","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":"flat"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":true},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":true,"pangu":false,"comments":{"style":"tabs","active":"valine","storage":true,"lazyload":false,"nav":null,"activeClass":"valine"},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  19. </script>
  20. <meta name="description" content="前置知识 存图方式(邻接表,邻接矩阵),图的遍历(dfs,bfs) 引入 我们举个例子吧: 有一个毒瘤水管工,他会造水管,有一天他造了一个水管网络,就像一个图。其中有一个点只有出边,就是起点,还有一个点只有入边,是终点。 点之间有一些管子,这些管子都有单位时间内的容量,现在毒瘤水管工想知道,他的管子在单位时间内在起点终点之间最多能流多少水。">
  21. <meta property="og:type" content="article">
  22. <meta property="og:title" content="网络最大流-Dinic">
  23. <meta property="og:url" content="https://schtonn.github.io/posts/dinic/index.html">
  24. <meta property="og:site_name" content="Alex&#39;s Blog">
  25. <meta property="og:description" content="前置知识 存图方式(邻接表,邻接矩阵),图的遍历(dfs,bfs) 引入 我们举个例子吧: 有一个毒瘤水管工,他会造水管,有一天他造了一个水管网络,就像一个图。其中有一个点只有出边,就是起点,还有一个点只有入边,是终点。 点之间有一些管子,这些管子都有单位时间内的容量,现在毒瘤水管工想知道,他的管子在单位时间内在起点终点之间最多能流多少水。">
  26. <meta property="og:locale" content="en_US">
  27. <meta property="og:image" content="https://img-blog.csdnimg.cn/20200111112801923.png">
  28. <meta property="og:image" content="https://img-blog.csdnimg.cn/20200111114148208.png">
  29. <meta property="og:image" content="https://img-blog.csdnimg.cn/20200111112801923.png">
  30. <meta property="article:published_time" content="2020-03-02T03:31:22.000Z">
  31. <meta property="article:modified_time" content="2020-03-29T07:59:26.820Z">
  32. <meta property="article:author" content="Alex">
  33. <meta property="article:tag" content="graph">
  34. <meta name="twitter:card" content="summary">
  35. <meta name="twitter:image" content="https://img-blog.csdnimg.cn/20200111112801923.png">
  36. <link rel="canonical" href="https://schtonn.github.io/posts/dinic/">
  37. <script id="page-configurations">
  38. // https://hexo.io/docs/variables.html
  39. CONFIG.page = {
  40. sidebar: "",
  41. isHome : false,
  42. isPost : true,
  43. lang : 'en'
  44. };
  45. </script>
  46. <title>网络最大流-Dinic | Alex's Blog</title>
  47. <noscript>
  48. <style>
  49. .use-motion .brand,
  50. .use-motion .menu-item,
  51. .sidebar-inner,
  52. .use-motion .post-block,
  53. .use-motion .pagination,
  54. .use-motion .comments,
  55. .use-motion .post-header,
  56. .use-motion .post-body,
  57. .use-motion .collection-header { opacity: initial; }
  58. .use-motion .site-title,
  59. .use-motion .site-subtitle {
  60. opacity: initial;
  61. top: initial;
  62. }
  63. .use-motion .logo-line-before i { left: initial; }
  64. .use-motion .logo-line-after i { right: initial; }
  65. </style>
  66. </noscript>
  67. </head>
  68. <body itemscope itemtype="http://schema.org/WebPage">
  69. <div class="container use-motion">
  70. <div class="headband"></div>
  71. <header class="header" itemscope itemtype="http://schema.org/WPHeader">
  72. <div class="header-inner"><div class="site-brand-container">
  73. <div class="site-nav-toggle">
  74. <div class="toggle" aria-label="Toggle navigation bar">
  75. <span class="toggle-line toggle-line-first"></span>
  76. <span class="toggle-line toggle-line-middle"></span>
  77. <span class="toggle-line toggle-line-last"></span>
  78. </div>
  79. </div>
  80. <div class="site-meta">
  81. <a href="/" class="brand" rel="start">
  82. <span class="logo-line-before"><i></i></span>
  83. <h1 class="site-title">Alex's Blog</h1>
  84. <span class="logo-line-after"><i></i></span>
  85. </a>
  86. <p class="site-subtitle" itemprop="description">Middle school OIer</p>
  87. </div>
  88. <div class="site-nav-right">
  89. <div class="toggle popup-trigger">
  90. </div>
  91. </div>
  92. </div>
  93. <nav class="site-nav">
  94. <ul id="menu" class="menu">
  95. <li class="menu-item menu-item-home">
  96. <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>Home</a>
  97. </li>
  98. <li class="menu-item menu-item-tags">
  99. <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>Tags</a>
  100. </li>
  101. <li class="menu-item menu-item-archives">
  102. <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>Archives</a>
  103. </li>
  104. <li class="menu-item menu-item-games">
  105. <a href="/games/" rel="section"><i class="fa fa-fw fa-gamepad"></i>Games</a>
  106. </li>
  107. <li class="menu-item menu-item-sans">
  108. <a href="/sans/" rel="section"><i class="fa fa-fw fa-heart"></i>sans</a>
  109. </li>
  110. </ul>
  111. </nav>
  112. </div>
  113. </header>
  114. <div class="back-to-top">
  115. <i class="fa fa-arrow-up"></i>
  116. <span>0%</span>
  117. </div>
  118. <div class="reading-progress-bar"></div>
  119. <main class="main">
  120. <div class="main-inner">
  121. <div class="content-wrap">
  122. <div class="content post posts-expand">
  123. <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="en">
  124. <link itemprop="mainEntityOfPage" href="https://schtonn.github.io/posts/dinic/">
  125. <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
  126. <meta itemprop="image" content="/images/avatar.gif">
  127. <meta itemprop="name" content="Alex">
  128. <meta itemprop="description" content="The blog of a middle school OIer">
  129. </span>
  130. <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
  131. <meta itemprop="name" content="Alex's Blog">
  132. </span>
  133. <header class="post-header">
  134. <h1 class="post-title" itemprop="name headline">
  135. 网络最大流-Dinic
  136. </h1>
  137. <div class="post-meta">
  138. <span class="post-meta-item">
  139. <span class="post-meta-item-icon">
  140. <i class="fa fa-calendar-o"></i>
  141. </span>
  142. <span class="post-meta-item-text">Posted on</span>
  143. <time title="Created: 2020-Mar-02 11:31:22" itemprop="dateCreated datePublished" datetime="2020-03-02T11:31:22+08:00">2020-Mar-02</time>
  144. </span>
  145. <span class="post-meta-item">
  146. <span class="post-meta-item-icon">
  147. <i class="fa fa-calendar-check-o"></i>
  148. </span>
  149. <span class="post-meta-item-text">Edited on</span>
  150. <time title="Modified: 2020-Mar-29 15:59:26" itemprop="dateModified" datetime="2020-03-29T15:59:26+08:00">2020-Mar-29</time>
  151. </span>
  152. <span id="/posts/dinic/" class="post-meta-item leancloud_visitors" data-flag-title="网络最大流-Dinic" title="Views">
  153. <span class="post-meta-item-icon">
  154. <i class="fa fa-eye"></i>
  155. </span>
  156. <span class="post-meta-item-text">Views: </span>
  157. <span class="leancloud-visitors-count"></span>
  158. </span>
  159. <span class="post-meta-item">
  160. <span class="post-meta-item-icon">
  161. <i class="fa fa-comment-o"></i>
  162. </span>
  163. <span class="post-meta-item-text">Valine: </span>
  164. <a title="valine" href="/posts/dinic/#valine-comments" itemprop="discussionUrl">
  165. <span class="post-comments-count valine-comment-count" data-xid="/posts/dinic/" itemprop="commentCount"></span>
  166. </a>
  167. </span>
  168. </div>
  169. </header>
  170. <div class="post-body" itemprop="articleBody">
  171. <h3 id="前置知识"><a class="markdownIt-Anchor" href="#前置知识"></a> 前置知识</h3>
  172. <p>存图方式(<a href="http://baidu.physton.com/?q=%E9%82%BB%E6%8E%A5%E8%A1%A8" target="_blank" rel="noopener" title="简单">邻接表</a>,<a href="http://baidu.physton.com/?q=%E9%82%BB%E6%8E%A5%E7%9F%A9%E9%98%B5" target="_blank" rel="noopener" title="都太简单了">邻接矩阵</a>),图的遍历(<a href="http://baidu.physton.com/?q=dfs" target="_blank" rel="noopener" title="简单">dfs</a>,<a href="http://baidu.physton.com/?q=bfs" target="_blank" rel="noopener" title="简单">bfs</a>)</p>
  173. <h3 id="引入"><a class="markdownIt-Anchor" href="#引入"></a> 引入</h3>
  174. <p>我们举个例子吧:<br />
  175. 有一个毒瘤水管工,他会造水管,有一天他造了一个水管网络,就像一个图。其中有一个点只有出边,就是起点,还有一个点只有入边,是终点。<br />
  176. 点之间有一些管子,这些管子都有单位时间内的容量,现在毒瘤水管工想知道,他的管子在<strong>单位时间内</strong>在起点终点之间最多能流多少水。</p>
  177. <a id="more"></a>
  178. <h3 id="概念"><a class="markdownIt-Anchor" href="#概念"></a> 概念</h3>
  179. <ul>
  180. <li>源点:顾名思义,起点,一般用s表示</li>
  181. <li>汇点:顾名思义,终点,一般用t表示。。。</li>
  182. <li>容量:顾名思义。。。一条边单位时间内的的容量</li>
  183. <li>残余网络:进行增广后剩余的网络</li>
  184. <li>増广:</li>
  185. </ul>
  186. <blockquote>
  187. <p>増广就是在残余网络中寻找从源点到汇点的可行路径(増广路),并将该路径上的所有边的容量减去路径中的最小容量,形成新的残余网络,<strong>人话就是找一条能走的路,然后把路走掉。</strong><br />
  188. 例如:<br />
  189. <img data-src="https://img-blog.csdnimg.cn/20200111112801923.png" alt="在这里插入图片描述" /><br />
  190. 如果当前有这样一个残余网络,那么<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>s</mi><mo>→</mo><mn>4</mn><mo>→</mo><mn>1</mn><mo>→</mo><mi>t</mi></mrow><annotation encoding="application/x-tex">s\rightarrow4\rightarrow1\rightarrow t</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault">s</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">→</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.64444em;vertical-align:0em;"></span><span class="mord">4</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">→</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.64444em;vertical-align:0em;"></span><span class="mord">1</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">→</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.61508em;vertical-align:0em;"></span><span class="mord mathdefault">t</span></span></span></span>就是一条増广路,最小容量是4,进行増广过后就形成了这样一张图:<br />
  191. <img data-src="https://img-blog.csdnimg.cn/20200111114148208.png" alt="在这里插入图片描述" /><br />
  192. 如何寻找増广路?直接dfs即可。</p>
  193. </blockquote>
  194. <ul>
  195. <li>反向边:</li>
  196. </ul>
  197. <blockquote>
  198. <p>有时候,程序増广的时候会出现爆炸性错误,例如还是那个图:<br />
  199. <img data-src="https://img-blog.csdnimg.cn/20200111112801923.png" alt="在这里插入图片描述" /><br />
  200. 有两条増广路,万一程序选错了怎么办?<br />
  201. 这时就要请出反向边了。<br />
  202. 每次増广的时候,<strong>在残余网络上逆着増广路径建容量与増广路径最小容量相等的反向边</strong>,比如刚才那张图,就顺着<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>t</mi><mo>→</mo><mn>1</mn><mo>→</mo><mn>4</mn><mo>→</mo><mi>s</mi></mrow><annotation encoding="application/x-tex">t\rightarrow1\rightarrow4\rightarrow s</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.61508em;vertical-align:0em;"></span><span class="mord mathdefault">t</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">→</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.64444em;vertical-align:0em;"></span><span class="mord">1</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">→</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.64444em;vertical-align:0em;"></span><span class="mord">4</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span><span class="mrel">→</span><span class="mspace" style="margin-right:0.2777777777777778em;"></span></span><span class="base"><span class="strut" style="height:0.43056em;vertical-align:0em;"></span><span class="mord mathdefault">s</span></span></span></span>建容量为4的边。相当于把原来的那条路抵消掉了,如果増广时走过了反向边,就相当于把原来的増广撤回去了。<br />
  203. 这就给了程序一个反悔的机会。</p>
  204. </blockquote>
  205. <h3 id="朴素算法"><a class="markdownIt-Anchor" href="#朴素算法"></a> 朴素算法</h3>
  206. <ol>
  207. <li>増广</li>
  208. <li>沿着増广路径建反向边</li>
  209. <li>如果源点与汇点依然连通,回到1</li>
  210. </ol>
  211. <h3 id="dinic优化"><a class="markdownIt-Anchor" href="#dinic优化"></a> Dinic优化</h3>
  212. <p>Dinic的优化就是用bfs建立了由s开始的一个分层图,每次寻找増广路时必须让边上的层数严格递增,就可以确保每一步都离汇点近了一些这样就不会陷入毒瘤数据卡成的死循环,比如这样的著名毒瘤数据:<br />
  213. ![](file://C:/Users/liangliang/Documents/Gridea/post-images/1582894458914.png)在这个数据中,如果用朴素算法,就会让中间容量为1的边上下抖动抽搐,等到他抽了999次的时候才把上面和下面的999减没。如果用Dinic,两次直接求出999+999。</p>
  214. <h3 id="代码"><a class="markdownIt-Anchor" href="#代码"></a> 代码</h3>
  215. <p><a href="https://schtonn.github.io/404.html"><code>404 Not Found(Click for more information)</code></a><br />
  216. 完结!</p>
  217. </div>
  218. <div>
  219. <ul class="post-copyright">
  220. <li class="post-copyright-author">
  221. <strong>Post author: </strong>Alex
  222. </li>
  223. <li class="post-copyright-link">
  224. <strong>Post link: </strong>
  225. <a href="https://schtonn.github.io/posts/dinic/" title="网络最大流-Dinic">https://schtonn.github.io/posts/dinic/</a>
  226. </li>
  227. <li class="post-copyright-license">
  228. <strong>Copyright Notice: </strong>All articles in this blog are licensed under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="noopener" target="_blank"><i class="fa fa-fw fa-creative-commons"></i>BY-NC-SA</a> unless stating additionally.
  229. </li>
  230. </ul>
  231. </div>
  232. <footer class="post-footer">
  233. <div class="post-tags">
  234. <a href="/tags/graph/" rel="tag"><i class="fa fa-tag"></i> graph</a>
  235. </div>
  236. <div class="post-nav">
  237. <div class="post-nav-item">
  238. <a href="/posts/min-span-tree/" rel="prev" title="最小生成树">
  239. <i class="fa fa-chevron-left"></i> 最小生成树
  240. </a></div>
  241. <div class="post-nav-item">
  242. <a href="/posts/fibonacci/" rel="next" title="斐波那契数列-O(1)">
  243. 斐波那契数列-O(1) <i class="fa fa-chevron-right"></i>
  244. </a></div>
  245. </div>
  246. </footer>
  247. </article>
  248. </div>
  249. <div class="comments" id="valine-comments"></div>
  250. <script>
  251. window.addEventListener('tabs:register', () => {
  252. let { activeClass } = CONFIG.comments;
  253. if (CONFIG.comments.storage) {
  254. activeClass = localStorage.getItem('comments_active') || activeClass;
  255. }
  256. if (activeClass) {
  257. let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
  258. if (activeTab) {
  259. activeTab.click();
  260. }
  261. }
  262. });
  263. if (CONFIG.comments.storage) {
  264. window.addEventListener('tabs:click', event => {
  265. if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
  266. let commentClass = event.target.classList[1];
  267. localStorage.setItem('comments_active', commentClass);
  268. });
  269. }
  270. </script>
  271. </div>
  272. <div class="toggle sidebar-toggle">
  273. <span class="toggle-line toggle-line-first"></span>
  274. <span class="toggle-line toggle-line-middle"></span>
  275. <span class="toggle-line toggle-line-last"></span>
  276. </div>
  277. <aside class="sidebar">
  278. <div class="sidebar-inner">
  279. <ul class="sidebar-nav motion-element">
  280. <li class="sidebar-nav-toc">
  281. Table of Contents
  282. </li>
  283. <li class="sidebar-nav-overview">
  284. Overview
  285. </li>
  286. </ul>
  287. <!--noindex-->
  288. <div class="post-toc-wrap sidebar-panel">
  289. <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#前置知识"><span class="nav-number">1.</span> <span class="nav-text"> 前置知识</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#引入"><span class="nav-number">2.</span> <span class="nav-text"> 引入</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#概念"><span class="nav-number">3.</span> <span class="nav-text"> 概念</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#朴素算法"><span class="nav-number">4.</span> <span class="nav-text"> 朴素算法</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#dinic优化"><span class="nav-number">5.</span> <span class="nav-text"> Dinic优化</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#代码"><span class="nav-number">6.</span> <span class="nav-text"> 代码</span></a></li></ol></div>
  290. </div>
  291. <!--/noindex-->
  292. <div class="site-overview-wrap sidebar-panel">
  293. <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  294. <p class="site-author-name" itemprop="name">Alex</p>
  295. <div class="site-description" itemprop="description">The blog of a middle school OIer</div>
  296. </div>
  297. <div class="site-state-wrap motion-element">
  298. <nav class="site-state">
  299. <div class="site-state-item site-state-posts">
  300. <a href="/archives">
  301. <span class="site-state-item-count">10</span>
  302. <span class="site-state-item-name">posts</span>
  303. </a>
  304. </div>
  305. <div class="site-state-item site-state-tags">
  306. <a href="/tags/">
  307. <span class="site-state-item-count">4</span>
  308. <span class="site-state-item-name">tags</span></a>
  309. </div>
  310. </nav>
  311. </div>
  312. <div class="links-of-author motion-element">
  313. <span class="links-of-author-item">
  314. <a href="https://github.com/schtonn" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;schtonn" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>GitHub</a>
  315. </span>
  316. <span class="links-of-author-item">
  317. <a href="mailto:m18519511495@163.com" title="E-Mail → mailto:m18519511495@163.com" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i>E-Mail</a>
  318. </span>
  319. </div>
  320. <div class="links-of-blogroll motion-element">
  321. <div class="links-of-blogroll-title">
  322. <i class="fa fa-fw fa-link"></i>
  323. Links
  324. </div>
  325. <ul class="links-of-blogroll-list">
  326. <li class="links-of-blogroll-item">
  327. <a href="https://yonghong.github.io/" title="https:&#x2F;&#x2F;yonghong.github.io" rel="noopener" target="_blank">Yonghong</a>
  328. </li>
  329. <li class="links-of-blogroll-item">
  330. <a href="https://source.unsplash.com/random/1600x900" title="https:&#x2F;&#x2F;source.unsplash.com&#x2F;random&#x2F;1600x900" rel="noopener" target="_blank">Background</a>
  331. </li>
  332. </ul>
  333. </div>
  334. </div>
  335. <div id="treefrog" style="text-align: center;margin-top: 18px;">
  336. <object type="application/x-shockwave-flash" style="outline:none;" data="/flash/treefrog.swf?up_bodyColor=444444&up_pattern=0&up_flyColor=777777&up_tongueColor=555555&up_patternColor=000000&up_releaseFly=0&up_frogName=Froggie&up_backgroundImage=http://&up_bellySize=.5&up_footColor=444444&up_eyeColor=444444&up_backgroundColor=222222&" width="300" height="600"><param name="movie" value="http://cdn.abowman.com/widgets/treefrog/treefrog.swf?up_bodyColor=444444&up_pattern=0&up_flyColor=777777&up_tongueColor=555555&up_patternColor=000000&up_releaseFly=0&up_frogName=Froggie&up_backgroundImage=http://&up_bellySize=.5&up_footColor=444444&up_eyeColor=444444&up_backgroundColor=222222&"></param><param name="AllowScriptAccess" value="always"></param><param name="wmode" value="opaque"></param><param name="scale" value="noscale"/><param name="salign" value="tl"/></object>
  337. </div>
  338. </div>
  339. </aside>
  340. <div id="sidebar-dimmer"></div>
  341. </div>
  342. </main>
  343. <footer class="footer">
  344. <div class="footer-inner">
  345. <div class="copyright">
  346. &copy;
  347. <span itemprop="copyrightYear">2020</span>
  348. <span class="with-love">
  349. <i class="fa fa-user"></i>
  350. </span>
  351. <span class="author" itemprop="copyrightHolder">Alex Xiang</span>
  352. </div>
  353. </div>
  354. </footer>
  355. </div>
  356. <script src="/lib/anime.min.js"></script>
  357. <script src="//cdn.jsdelivr.net/npm/lozad@1/dist/lozad.min.js"></script>
  358. <script src="/lib/velocity/velocity.min.js"></script>
  359. <script src="/lib/velocity/velocity.ui.min.js"></script>
  360. <script src="/js/utils.js"></script>
  361. <script src="/js/motion.js"></script>
  362. <script src="/js/schemes/muse.js"></script>
  363. <script src="/js/next-boot.js"></script>
  364. <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css">
  365. <script>
  366. NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  367. NexT.utils.getScript('//unpkg.com/valine/dist/Valine.min.js', () => {
  368. var GUEST = ['nick', 'mail', 'link'];
  369. var guest = 'nick,mail,link';
  370. guest = guest.split(',').filter(item => {
  371. return GUEST.includes(item);
  372. });
  373. new Valine({
  374. el : '#valine-comments',
  375. verify : true,
  376. notify : true,
  377. appId : 'BmologYYnRqCv0SLHDeDdA17-gzGzoHsz',
  378. appKey : 'w9mVebFMdCmY6Nh9vfcBGaGt',
  379. placeholder: "Say something.",
  380. avatar : 'mm',
  381. meta : guest,
  382. pageSize : '10' || 10,
  383. visitor : true,
  384. lang : 'en' || 'zh-cn',
  385. path : location.pathname,
  386. recordIP : true,
  387. serverURLs : ''
  388. });
  389. }, window.Valine);
  390. });
  391. </script>
  392. </body>
  393. </html>