<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>salpik</author_name>
  <author_url>https://blog.hatena.ne.jp/salpik/</author_url>
  <blog_title>salpikのブログ</blog_title>
  <blog_url>https://salpik.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>TL;DR SegmentTreeはモノイドが扱えるデータ構造だという理解をしていたが、モノイドではなく半群を扱えるデータ構造だと理解した方が良いのではないかと考えている。 前提知識 半群とモノイドについて まず半群とモノイドについて整理する。 半群 結合法則を満たす群構造のことを半群と呼ぶ。結合法則とは、任意の群の要素、、について が成立することを言う。 モノイド 結合法則を満たしかつ単位元が存在する群構造のことをモノイドと呼ぶ。ある群の要素とは単位元であるとは、任意の群の要素について が成立することを言う。 すなわち、モノイドと半群の違いは単位元が存在するかどうかである。 SegmentT…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsalpik.hatenablog.com%2Fentry%2F2024%2F03%2F03%2F150510&quot; title=&quot;SegmentTreeはモノイドを扱えるデータ構造という話について - salpikのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-03-03 15:05:10</published>
  <title>SegmentTreeはモノイドを扱えるデータ構造という話について</title>
  <type>rich</type>
  <url>https://salpik.hatenablog.com/entry/2024/03/03/150510</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
