<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakaBox</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakaBox/</author_url>
  <blog_title>ボクノス</blog_title>
  <blog_url>https://boxnos.hatenablog.com/</blog_url>
  <categories>
    <anon>Scheme</anon>
  </categories>
  <description>符号化に挑戦。 問題 2.68 符号木を元に、(A D A B B C A)を符号化せよ。という問題。ムズそうなので方針を練ります。 方針 符号化でのポイントは、履歴を返すという所。 葉が見付かったら、'()を返します。見付からなかったら#fを返します。枝の検索も同じように枝の先がリストならばconsして返します。見付からなければ#fを返します。最後まで検索して、#fならばエラーとなります。 コーディング 妄想方針を元にコーディング (define (encode-symbol symbol tree) (define (iter tree) (if (leaf? tree) (if (eq?…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20071221%2F1198176515&quot; title=&quot; SICPを読む(79) 問題2.68 ハフマン符号化木(2) - ボクノス&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>2007-12-21 03:48:35</published>
  <title> SICPを読む(79) 問題2.68 ハフマン符号化木(2)</title>
  <type>rich</type>
  <url>https://boxnos.hatenablog.com/entry/20071221/1198176515</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
