<?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>Ac自动机 on CheaSim Blog</title>
    <link>https://www.cheasim.com/categories/ac%E8%87%AA%E5%8A%A8%E6%9C%BA/</link>
    <description>Recent content in Ac自动机 on CheaSim Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Sat, 04 May 2019 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.cheasim.com/categories/ac%E8%87%AA%E5%8A%A8%E6%9C%BA/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>DNA Sequence</title>
      <link>https://www.cheasim.com/2019/05/04/dna-sequence/</link>
      <pubDate>Sat, 04 May 2019 00:00:00 +0000</pubDate>
      <guid>https://www.cheasim.com/2019/05/04/dna-sequence/</guid>
      <description>&lt;h2 id=&#34;dna-sequence&#34;&gt;DNA Sequence&lt;/h2&gt;
&lt;h3 id=&#34;题意&#34;&gt;题意&lt;/h3&gt;
&lt;p&gt;给定$m$个指定串，寻找长度为$n$的不含指定串的字符串。&lt;/p&gt;
&lt;h3 id=&#34;题解&#34;&gt;题解&lt;/h3&gt;
&lt;p&gt;AC自动机+dp+矩阵快速幂。&lt;/p&gt;
&lt;p&gt;如果要不含病毒串，那么我们相当于在每个状态中不能指向那个病毒终点串。对于每个状态来说，可以选择的就是4个字母去掉下一个状态是病毒的字母。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
