Skip to Content
学習アルゴリズム
book

学習アルゴリズム

by George Heineman
March 2025
Intermediate to advanced
280 pages
4h 16m
Japanese
O'Reilly Media, Inc.
Content preview from 学習アルゴリズム

第7章 グラフ グラフ接続する!

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

グラフは有用な情報を効率的に保存する

これまで、情報システムにおけるデータストアやデータ処理に関する一般的な問題を解決するアルゴリズムについて説明してきた。これらのアルゴリズムは、問題を適切にモデル化することさえできれば、数え切れないほどの現実の問題を解決することができる。ここでは、そのような問題をグラフを使って3つ解決する:

  • 迷路は、他の部屋に通じる出入り口のある部屋で構成されている。入り口から出口までの最短パスを発見する。

  • プロジェクトはタスクの集合体として定義されるが、タスクの中には、開始前に他のタスクの完了が必要なものもある。プロジェクトを完成させるために、タスクをどのような順番で実行すればよいかを記述したリニアスケジュールを組み立てる。

  • マッピングには、高速道路の区間とその長さ(マイル)が含まれている。地図上の任意の2地点間の最短移動距離を発見せよ。

これらの問題はそれぞれ、何世紀にもわたって数学者が研究してきた基本概念であるグラフを使って効果的にモデル化することができる。データ間の関係をモデル化することは、しばしばデータ値そのものと同じくらい重要である。グラフは、情報を辺で結ばれたノードとしてモデル化する。図7-1に見られるように、グラフはさまざまな応用領域の概念をモデル化できる。無向グラフは、プロパン分子の炭素原子と水素原子の構造関係をモデル化できる。モバイルアプリは、一方通行の道の向きを有向グラフとして表現することで、ニューヨークの道案内を提供できる。ドライバー用の道路地図は、イギリス各州の州都間の走行距離を重み付きグラフで表すことができる。少し計算すれば、コネチカット州ハートフォードからメイン州バンゴールまでの最短運転距離が278マイルであることがわかる。

グラフは、N個の異なるノードの集合を含むデータ型であり、各ノードにはノードを識別するための一意のラベルが付けられている。1グラフに辺を追加して、2つの異なるノードuと vを互いに接続することができる。 辺は(u,v)として表現され、uと vはそのエンドポイントと呼ばれる。各辺(u,v)はuと ...

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

データサイエンスのための実践線形代数

データサイエンスのための実践線形代数

Mike X Cohen
データ分析によるネットワークセキュリティ

データ分析によるネットワークセキュリティ

Michael Collins, 中田 秀基, 木下 哲也

Publisher Resources

ISBN: 9798341626317