<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>obelisk2</author_name>
  <author_url>https://blog.hatena.ne.jp/obelisk2/</author_url>
  <blog_title>Camera Obscura</blog_title>
  <blog_url>https://obelisk.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>アルゴリズム・パズル</anon>
  </categories>
  <description>ハノイの塔とは一種のパズルで、ルールは以下のようです。 3本の杭と、中央に穴の開いた大きさの異なる複数の円盤から構成される。 最初はすべての円盤が左端の杭に小さいものが上になるように順に積み重ねられている。 円盤を一回に一枚ずつどれかの杭に移動させることができるが、小さな円盤の上に大きな円盤を乗せることはできない。 ハノイの塔 - Wikipedia このルールの下で、左端に積み重ねられた円盤をすべて別のひとつの位置に移し替えるというものです。 再帰プログラミングでとても簡単に解けることを知りました。Ruby で解いてみます。考え方はこうです。三つの場所を A, B, C とします。A に n…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2018%2F01%2F17%2F120914&quot; title=&quot;ハノイの塔をプログラミングで解く - Camera Obscura&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>http://img.f.hatena.ne.jp/images/fotolife/o/obelisk2/20180117/20180117112402.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-17 12:09:14</published>
  <title>ハノイの塔をプログラミングで解く</title>
  <type>rich</type>
  <url>https://obelisk.hatenablog.com/entry/2018/01/17/120914</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
