Trieã¡ããã¨ä½¿ã£ãã®ã§ããããªãã®é度ã«ãªãã¾ããã100MBãããã®ããã¹ãã40MBãããã¾ã§ç¸®ãã ãã¨æãã°ã2.8MBã®ããã¹ãã2.6MBã«ãããªããªãã£ããã¨å§ç¸®ãããããã¹ãã®æ§è³ªã«ãã£ã¦å§ç¸®çãå ¨ç¶éãæãã§ãããWEB+DB PRESS Vol.54ã«ããã¨ãLZ78æ¹å¼ç¬¦å·åã¯XMLã®ãããªæç« ã§ã¯å¼·ããããã #!/opt/local/bin/ruby1.9 # -*- coding: utf-8 -*- require 'pp' module Trie class Node attr_accessor :sym, :code def initialize(code) @code = code # çªå· @sym = Hash.new end def insert_child(sym, code) @sym[sym] = Trie::Node.new(code)
{{#tags}}- {{label}}
{{/tags}}