Skip to Content
アルゴリズムクイックリファレンス 第2版
book

アルゴリズムクイックリファレンス 第2版

by George T. Heineman, Gary Pollice, Stanley Selkow, 黒川 利明, 黒川 洋
December 2016
Intermediate to advanced
440 pages
9h 44m
Japanese
O'Reilly Japan, Inc.
Content preview from アルゴリズムクイックリファレンス 第2版
7.6
 探索木
219
A
I
インタフェース
INodeSet
は、
INode
集合の基盤実装を抽象化する。アルゴリズ
ムによっては、
INode
オブジェクトのキューを要求するが、スタックや平衡二分木
を用いるものもある。クラス
StateStorageFactory
を用いて適切に構成すれば、提
供された演算で、アルゴリズムは
INode
集合の状態を操作できる。インタフェース
IMove
は、手が盤面状態をどう操作するかを定義する。手のクラスが具体的にどう
なるかは、問題によって決まり、探索アルゴリズムは、実装の詳細を気にしなくて
よい。
プログラミングの観点からは、探索木での経路探索アルゴリズムの核心は、
7-5に示すインタフェース
ISearch
の実装にある。これによって、解が得られれば、
その解に至る手順を構築することができる。
7-5
 探索木経路発見の共通インタフェース
/*
*
初期状態に対して、最終状態に至るまでの解を返す。
*
経路が見つからないなら、
null
を返す。
*/
public interface ISearch {
Solution search (INode initial, INode goal);
}
盤面の初期状態と目標状態とが与えられると、
ISearch
実装は解を表す経路を計
算する。解が見つからなければ
null
を返す。ゲーム木との違いを明らかにするため、
探索木の節点には、盤面状態
board state
)という用語を使う。
7.6.1
 経路長のヒューリスティック関数
盲目探索ア
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

scikit-learn、Keras、TensorFlowによる実践機械学習 第2版

scikit-learn、Keras、TensorFlowによる実践機械学習 第2版

Aurélien Géron, 下田 倫大, 長尾 高弘
Rクイックリファレンス 第2版

Rクイックリファレンス 第2版

Joseph Adler, 大橋 真也, 木下 哲也
プログラミングRust 第2版

プログラミングRust 第2版

Jim Blandy, Jason Orendorff, Leonora F. S. Tindall, 中田 秀基
Rではじめるデータサイエンス

Rではじめるデータサイエンス

Hadley Wickham, Garrett Grolemund, 黒川 利明, 大橋 真也

Publisher Resources

ISBN: 9784873117850Other