<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9084974778164859377</id><updated>2024-09-17T03:48:50.266+09:00</updated><title type='text'>地下鉄最短完乗～試行錯誤</title><subtitle type='html'>名古屋市営地下鉄の全6路線をもっとも効率良く乗る経路は?&lt;br&gt;&#xa;そんな疑問を解決するために試行錯誤。&lt;br&gt;&#xa;答えは出るのか?</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-8665720540017605412</id><published>2012-03-31T23:45:00.000+09:00</published><updated>2012-03-31T23:45:13.637+09:00</updated><title type='text'>名古屋駅スタートで全6路線の最短完乗ルートを検索</title><content type='html'>&lt;br /&gt;
&lt;a href=&quot;http://best-kanj.blogspot.jp/2012/03/6.html&quot;&gt;前回&lt;/a&gt;、全6路線の最短完乗ルートの検索が10分以内で終わって &lt;b&gt;目標達成&lt;/b&gt;&amp;nbsp;としたが、&lt;b&gt;名古屋駅スタート&lt;/b&gt;での検索を忘れてた。&lt;br /&gt;
&lt;br /&gt;
ということで、&lt;b&gt;名古屋駅スタート&lt;/b&gt;で検索。&lt;br /&gt;
今までの経緯、札幌市営地下鉄、福岡市地下鉄での結果から、藤が丘駅のような終端駅からスタートする場合に比べて、途中駅からスタートの場合は完乗の所要時間も計算時間も長くなると思われる。&lt;br /&gt;
&lt;br /&gt;
いきなり全6路線はやめて、名古屋駅駅スタートも4路線から始めることにする。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;4路線(東山線、名城線、名港線、鶴舞線)&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;名古屋 ～( 東山線 )～ 伏見
伏見 ～( 鶴舞線 )～ 上小田井
上小田井 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 八事
八事 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港
名古屋港 ～( 名港線 )～ 金山
金山 ～( 名城線 )～ 本山
本山 ～( 東山線 )～ 藤が丘
藤が丘 ～( 東山線 )～ 高畑

名古屋-(東山線)-伏見-(鶴舞線)-丸の内-(鶴舞線)-上小田井-(鶴舞線)-丸の内
-(鶴舞線)-伏見-(鶴舞線)-上前津-(鶴舞線)-御器所-(鶴舞線)-八事-(鶴舞線)-
赤池-(鶴舞線)-八事-(名城線)-本山-(名城線)-平安通-(名城線)-久屋大通-(名
城線)-栄-(名城線)-上前津-(名城線)-金山-(名港線)-名古屋港-(名港線)-金山
-(名城線)-新瑞橋-(名城線)-八事-(名城線)-本山-(東山線)-藤が丘-(東山線)-
本山-(東山線)-今池-(東山線)-栄-(東山線)-伏見-(東山線)-名古屋-(東山線)-
高畑

所要時間: 276(分)

乗車時間: 186(分)
乗換回数: 5(回)×10(分)
折返回数: 4(回)×10(分)

intMakeRouteNum = 224088
intRouteNumMax = 40

--
処理時間: 2(秒)

intMakeRouteNum = 237274
intRouteNumMax = 40
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;a href=&quot;http://best-kanj.blogspot.jp/2012/03/6.html&quot;&gt;藤が丘駅スタートの場合&lt;/a&gt;と比べると、検索時間は &lt;b&gt;0秒&lt;/b&gt;→&lt;b&gt;2秒&lt;/b&gt;、検索ルート数は、&lt;b&gt;28,245&lt;/b&gt;ルート→&lt;b&gt;237,274&lt;/b&gt;ルートで&lt;b&gt;約8.4倍&lt;/b&gt;になっている。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;5路線(東山線、名城線、名港線、鶴舞線、桜通線)&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;名古屋 ～( 桜通線 )～ 丸の内
丸の内 ～( 鶴舞線 )～ 上小田井
上小田井 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 八事
八事 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港
名古屋港 ～( 名港線 )～ 金山
金山 ～( 名城線 )～ 本山
本山 ～( 東山線 )～ 藤が丘
藤が丘 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 名古屋
名古屋 ～( 桜通線 )～ 中村区役所
中村区役所 ～( 桜通線 )～ 徳重

名古屋-(桜通線)-丸の内-(鶴舞線)-上小田井-(鶴舞線)-丸の内-(鶴舞線)-伏見
-(鶴舞線)-上前津-(鶴舞線)-御器所-(鶴舞線)-八事-(鶴舞線)-赤池-(鶴舞線)-
八事-(名城線)-本山-(名城線)-平安通-(名城線)-久屋大通-(名城線)-栄-(名城
線)-上前津-(名城線)-金山-(名港線)-名古屋港-(名港線)-金山-(名城線)-新瑞
橋-(名城線)-八事-(名城線)-本山-(東山線)-藤が丘-(東山線)-本山-(東山線)-
今池-(東山線)-栄-(東山線)-伏見-(東山線)-名古屋-(東山線)-高畑-(東山線)-
名古屋-(桜通線)-中村区役所-(桜通線)-名古屋-(桜通線)-丸の内-(桜通線)-久
屋大通-(桜通線)-今池-(桜通線)-御器所-(桜通線)-新瑞橋-(桜通線)-徳重

所要時間: 357(分)

乗車時間: 237(分)
乗換回数: 6(回)×10(分)
折返回数: 6(回)×10(分)

intMakeRouteNum = 157891743
intRouteNumMax = 54

--
処理時間: 1202(秒)

intMakeRouteNum = 186919531
intRouteNumMax = 54
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;a href=&quot;http://best-kanj.blogspot.jp/2012/03/6.html&quot;&gt;藤が丘駅スタートの場合&lt;/a&gt;と比べると、検索時間は &lt;b&gt;116秒&lt;/b&gt;→&lt;b&gt;1202秒&lt;/b&gt;で&lt;b&gt;約10倍&lt;/b&gt;、検索ルート数は、&lt;b&gt;16,531,193ルート&lt;/b&gt;→&lt;b&gt;186,919,531ルート&lt;/b&gt;で&lt;b&gt;約11倍&lt;/b&gt;になっている。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;6路線(東山線、名城線、名港線、鶴舞線、桜通線、上飯田線)&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;名古屋 ～( 桜通線 )～ 丸の内
丸の内 ～( 鶴舞線 )～ 上小田井
上小田井 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 八事
八事 ～( 名城線 )～ 平安通
平安通 ～( 上飯田線 )～ 上飯田
上飯田 ～( 上飯田線 )～ 平安通
平安通 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港
名古屋港 ～( 名港線 )～ 金山
金山 ～( 名城線 )～ 本山
本山 ～( 東山線 )～ 藤が丘
藤が丘 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 名古屋
名古屋 ～( 桜通線 )～ 中村区役所
中村区役所 ～( 桜通線 )～ 徳重

名古屋-(桜通線)-丸の内-(鶴舞線)-上小田井-(鶴舞線)-丸の内-(鶴舞線)-伏見
-(鶴舞線)-上前津-(鶴舞線)-御器所-(鶴舞線)-八事-(鶴舞線)-赤池-(鶴舞線)-
八事-(名城線)-本山-(名城線)-平安通-(上飯田線)-上飯田-(上飯田線)-平安通
-(名城線)-久屋大通-(名城線)-栄-(名城線)-上前津-(名城線)-金山-(名港線)-
名古屋港-(名港線)-金山-(名城線)-新瑞橋-(名城線)-八事-(名城線)-本山-(東
山線)-藤が丘-(東山線)-本山-(東山線)-今池-(東山線)-栄-(東山線)-伏見-(東
山線)-名古屋-(東山線)-高畑-(東山線)-名古屋-(桜通線)-中村区役所-(桜通線
)-名古屋-(桜通線)-丸の内-(桜通線)-久屋大通-(桜通線)-今池-(桜通線)-御器
所-(桜通線)-新瑞橋-(桜通線)-徳重

所要時間: 389(分)

乗車時間: 239(分)
乗換回数: 8(回)×10(分)
折返回数: 7(回)×10(分)

intMakeRouteNum = 603554163
intRouteNumMax = 56

--
処理時間: 5199(秒)

intMakeRouteNum = 717584587
intRouteNumMax = 56
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;a href=&quot;http://best-kanj.blogspot.jp/2012/03/6.html&quot;&gt;藤が丘駅スタートの場合&lt;/a&gt;と比べると、検索時間は &lt;b&gt;454秒&lt;/b&gt;→&lt;b&gt;5199秒&lt;/b&gt;で&lt;b&gt;約11倍&lt;/b&gt;、検索ルート数は、&lt;b&gt;67,328,414ルート&lt;/b&gt;→&lt;b&gt;717,584,587ルート&lt;/b&gt;で&lt;b&gt;約11倍&lt;/b&gt;になっている。&lt;br /&gt;
&lt;br /&gt;
藤が丘駅スタートの場合は &lt;b&gt;454秒(7分半)で計算できたので目標達成&lt;/b&gt;としたが、名古屋駅スタートだと&lt;b&gt;1時間半弱&lt;/b&gt;。&lt;br /&gt;
&lt;br /&gt;
もう少し改善が必要かな。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
つづく&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/8665720540017605412/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/6_31.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/8665720540017605412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/8665720540017605412'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/6_31.html' title='名古屋駅スタートで全6路線の最短完乗ルートを検索'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-2970449856803656713</id><published>2012-03-29T23:46:00.002+09:00</published><updated>2012-03-29T23:46:59.831+09:00</updated><title type='text'>全6路線の最短完乗ルート計算達成</title><content type='html'>&lt;br /&gt;
前回の改善 &lt;a href=&quot;http://best-kanj.blogspot.jp/2012/03/blog-post_28.html&quot;&gt;所要時間予測の精度を向上&lt;/a&gt; でプログラムを改修した。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShVs3C-ZKD1biz2ZMS_I1Tvd0KDGzJnGAmcx_Rt7MIGX1CosbbYvU2HZHva6-EYFSzE6rXvyqzKarvtqR769o8rzv7zRyabvuNEPC953obA5zJ7I3h-7DN7m-utSe6YGs1bM9j1DX-BSE/s1600/%25E5%2590%258D%25E5%258F%25A4%25E5%25B1%258B%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;155&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShVs3C-ZKD1biz2ZMS_I1Tvd0KDGzJnGAmcx_Rt7MIGX1CosbbYvU2HZHva6-EYFSzE6rXvyqzKarvtqR769o8rzv7zRyabvuNEPC953obA5zJ7I3h-7DN7m-utSe6YGs1bM9j1DX-BSE/s400/%25E5%2590%258D%25E5%258F%25A4%25E5%25B1%258B%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
まずは藤が丘駅スタートで&lt;b&gt;4路線&lt;/b&gt;。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;u&gt;4路線(東山線、名城線、名港線、鶴舞線)&lt;/u&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;藤が丘 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 伏見
伏見 ～( 鶴舞線 )～ 上小田井
上小田井 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 上前津
上前津 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港

藤が丘-(東山線)-本山-(東山線)-今池-(東山線)-栄-(東山線)-伏見-(東山線)-
名古屋-(東山線)-高畑-(東山線)-名古屋-(東山線)-伏見-(鶴舞線)-丸の内-(鶴
舞線)-上小田井-(鶴舞線)-丸の内-(鶴舞線)-伏見-(鶴舞線)-上前津-(鶴舞線)-
御器所-(鶴舞線)-八事-(鶴舞線)-赤池-(鶴舞線)-八事-(鶴舞線)-御器所-(鶴舞
線)-上前津-(名城線)-金山-(名城線)-新瑞橋-(名城線)-八事-(名城線)-本山-(
名城線)-平安通-(名城線)-久屋大通-(名城線)-栄-(名城線)-上前津-(名城線)-
金山-(名港線)-名古屋港

所要時間: 245(分)

乗車時間: 185(分)
乗換回数: 3(回)×10(分)
折返回数: 3(回)×10(分)

intMakeRouteNum = 3987
intRouteNumMax = 36

--
処理時間: 0(秒)

intMakeRouteNum = 28245
intRouteNumMax = 36
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
検索結果は&lt;a href=&quot;http://best-kanj.blogspot.jp/2012/03/blog-post_19.html&quot;&gt;改修前&lt;/a&gt;と同じ。&lt;br /&gt;
&lt;br /&gt;
処理時間(計算時間)は改修前も0秒だったので変わらず。&lt;br /&gt;
検索ルート数は、&lt;b&gt;97,105ルート&lt;/b&gt;が&lt;b&gt;28,245ルート&lt;/b&gt;になり、&lt;b&gt;3分の1以下&lt;/b&gt;。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
続いて&lt;b&gt;5路線&lt;/b&gt;をこれも藤が丘駅スタートで。&lt;br /&gt;
&lt;u&gt;5路線(東山線、名城線、名港線、鶴舞線、桜通線)&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;藤が丘 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 名古屋
名古屋 ～( 桜通線 )～ 中村区役所
中村区役所 ～( 桜通線 )～ 徳重
徳重 ～( 桜通線 )～ 新瑞橋
新瑞橋 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港
名古屋港 ～( 名港線 )～ 金山
金山 ～( 名城線 )～ 八事
八事 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 上小田井

藤が丘-(東山線)-本山-(東山線)-今池-(東山線)-栄-(東山線)-伏見-(東山線)-
名古屋-(東山線)-高畑-(東山線)-名古屋-(桜通線)-中村区役所-(桜通線)-名古
屋-(桜通線)-丸の内-(桜通線)-久屋大通-(桜通線)-今池-(桜通線)-御器所-(桜
通線)-新瑞橋-(桜通線)-徳重-(桜通線)-新瑞橋-(名城線)-八事-(名城線)-本山
-(名城線)-平安通-(名城線)-久屋大通-(名城線)-栄-(名城線)-上前津-(名城線
)-金山-(名港線)-名古屋港-(名港線)-金山-(名城線)-新瑞橋-(名城線)-八事-(
鶴舞線)-赤池-(鶴舞線)-八事-(鶴舞線)-御器所-(鶴舞線)-上前津-(鶴舞線)-伏
見-(鶴舞線)-丸の内-(鶴舞線)-上小田井

所要時間: 328(分)

乗車時間: 228(分)
乗換回数: 5(回)×10(分)
折返回数: 5(回)×10(分)

intMakeRouteNum = 2415419
intRouteNumMax = 50

--
処理時間: 116(秒)

intMakeRouteNum = 16531193
intRouteNumMax = 50
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div&gt;
処理時間(計算時間)は改修前の&lt;b&gt;2,927秒(約49分)&lt;/b&gt;から&lt;b&gt;116秒(約2分)&lt;/b&gt;に&lt;b&gt;25分の1&lt;/b&gt;に激減。&lt;br /&gt;
検索ルート数は、&lt;b&gt;698,771,279ルート(約7億)&lt;/b&gt;が&lt;b&gt;16,531,193ルート(約1700万)&lt;/b&gt;になり、&lt;b&gt;42分の1&lt;/b&gt;に激減。&lt;br /&gt;
検索結果は&lt;a href=&quot;http://best-kanj.blogspot.jp/2012/03/blog-post_27.html&quot;&gt;改修前&lt;/a&gt;と同じ。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
いよいよ全6路線の計算。&lt;br /&gt;
&lt;u&gt;6路線(東山線、名城線、名港線、鶴舞線、桜通線、上飯田線)&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;藤が丘 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 名古屋
名古屋 ～( 桜通線 )～ 中村区役所
中村区役所 ～( 桜通線 )～ 徳重
徳重 ～( 桜通線 )～ 新瑞橋
新瑞橋 ～( 名城線 )～ 平安通
平安通 ～( 上飯田線 )～ 上飯田
上飯田 ～( 上飯田線 )～ 平安通
平安通 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港
名古屋港 ～( 名港線 )～ 金山
金山 ～( 名城線 )～ 八事
八事 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 上小田井

藤が丘-(東山線)-本山-(東山線)-今池-(東山線)-栄-(東山線)-伏見-(東山線)-
名古屋-(東山線)-高畑-(東山線)-名古屋-(桜通線)-中村区役所-(桜通線)-名古
屋-(桜通線)-丸の内-(桜通線)-久屋大通-(桜通線)-今池-(桜通線)-御器所-(桜
通線)-新瑞橋-(桜通線)-徳重-(桜通線)-新瑞橋-(名城線)-八事-(名城線)-本山
-(名城線)-平安通-(上飯田線)-上飯田-(上飯田線)-平安通-(名城線)-久屋大通
-(名城線)-栄-(名城線)-上前津-(名城線)-金山-(名港線)-名古屋港-(名港線)-
金山-(名城線)-新瑞橋-(名城線)-八事-(鶴舞線)-赤池-(鶴舞線)-八事-(鶴舞線
)-御器所-(鶴舞線)-上前津-(鶴舞線)-伏見-(鶴舞線)-丸の内-(鶴舞線)-上小田
井

所要時間: 360(分)

乗車時間: 230(分)
乗換回数: 7(回)×10(分)
折返回数: 6(回)×10(分)

intMakeRouteNum = 9567093
intRouteNumMax = 56

--
処理時間: 454(秒)

intMakeRouteNum = 67328414
intRouteNumMax = 56
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;b&gt;454(秒)&lt;/b&gt;、&lt;b&gt;7分半&lt;/b&gt;で計算した。&lt;br /&gt;
検索ルート数は&lt;b&gt;67,328,414ルート(約6700万)&lt;/b&gt;。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;10分以内で計算&lt;/b&gt;できているので、&lt;b&gt;目標は達成&lt;/b&gt;。&lt;br /&gt;
2月始めからプログラムを作り始めているので、ｌここまで2ヵ月近く掛かった。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
つづく。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/2970449856803656713/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/6.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/2970449856803656713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/2970449856803656713'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/6.html' title='全6路線の最短完乗ルート計算達成'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShVs3C-ZKD1biz2ZMS_I1Tvd0KDGzJnGAmcx_Rt7MIGX1CosbbYvU2HZHva6-EYFSzE6rXvyqzKarvtqR769o8rzv7zRyabvuNEPC953obA5zJ7I3h-7DN7m-utSe6YGs1bM9j1DX-BSE/s72-c/%25E5%2590%258D%25E5%258F%25A4%25E5%25B1%258B%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-5605293403083475516</id><published>2012-03-28T22:17:00.002+09:00</published><updated>2012-03-28T22:17:35.206+09:00</updated><title type='text'>改善：所要時間予測の精度を向上</title><content type='html'>&lt;br /&gt;
&lt;b&gt;実用的な時間(目標は10分以内)&lt;/b&gt;で、名古屋市営地下鉄の&lt;b&gt;全6路線&lt;/b&gt;の&lt;b&gt;最短完乗ルート&lt;/b&gt;の検索を行えるようんするため、更にプログラムを改善。&lt;br /&gt;
&lt;br /&gt;
少し前、&lt;a href=&quot;http://best-kanj.blogspot.jp/2012/03/blog-post_19.html&quot;&gt;改善：最短所要時間予測により検索ルート削減&lt;/a&gt;&amp;nbsp;ということで、ルートが完成する前に所要時間を予想し、それまでの最短所要時間よりも長い場合はそれ以上のルート検索を行わないようにし、評価するルート数を減らした。&lt;br /&gt;
&lt;br /&gt;
最短所要時間は、&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;作成したルートの所要時間&lt;/li&gt;
&lt;li&gt;未乗車区間の所要時間の合計&lt;/li&gt;
&lt;/ul&gt;
の総合計時間として計算した。&lt;br /&gt;
&lt;br /&gt;
未乗車の区間が複数路線あれば乗り換え時間も掛かるし、折り返し時間が必要なルートも考えられるので、もう少しルールを追加。&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;b&gt;(ルートの最後のセグメントの路線と未乗車の路線の種類-1)×乗換え時間(10分)&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;(未乗車のセグメントのうち、終端駅を含むセグメントの数-1)×折り返し時間(10分)&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
1の方はこの後の乗換え時間が最低でもどれだけ掛かるかを数えて加算。&lt;br /&gt;
マイナス1しているのは、乗換え回数なので。&lt;br /&gt;
実際にはもっと多いこともあるが&amp;nbsp;&lt;b&gt;最低でもこれだけ掛かる&amp;nbsp;&lt;/b&gt;ということで。&lt;br /&gt;
&lt;br /&gt;
2の方は同じくこの後の折り返し時間が最低でもどれだけ掛かるかを数えて加算。&lt;br /&gt;
マイナス1しているのは、最後は終端駅になるケースを考慮してその分を除外。&lt;br /&gt;
&lt;br /&gt;
これで、所要時間の予測精度が上がり無駄な検索を打ち切ることで検索ルート数を減らし検索時間を減らせるはず。&lt;br /&gt;
&lt;br /&gt;
プログラムを改修して実行。&lt;br /&gt;
結果は次回。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
つづく。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/5605293403083475516/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_28.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/5605293403083475516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/5605293403083475516'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_28.html' title='改善：所要時間予測の精度を向上'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-3807716392115548177</id><published>2012-03-27T23:10:00.000+09:00</published><updated>2012-03-27T23:10:07.681+09:00</updated><title type='text'>改善：検索の経過を表示し、時間をかけて計算</title><content type='html'>&lt;br /&gt;
&lt;a href=&quot;http://best-kanj.blogspot.jp/2012/03/blog-post_25.html&quot;&gt;前回&lt;/a&gt;、改善：分岐の順序を最適化での5路線の計算は、&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;東山線、名城線、名港線、鶴舞線、桜通線 → 計算できず&lt;/li&gt;
&lt;li&gt;東山線、名城線、名港線、鶴舞線、上飯田線 → 2秒で計算&lt;/li&gt;
&lt;/ul&gt;
だった。&lt;br /&gt;
&lt;br /&gt;
10分経っても終わらない場合は&lt;b&gt;「計算できず」&lt;/b&gt;とすることにしてるけど、もしかしたら&lt;b&gt;もう少し待てば計算できるのではないか&lt;/b&gt;と思い、検索中のルートを表示するようにしてみた。&lt;br /&gt;
&lt;br /&gt;
10分経過した時点で思ったよりも計算が進んでいたため、そのまま計算を続行。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2,927秒(約49分)&lt;/b&gt;で終わった。&lt;br /&gt;
&lt;br /&gt;
計算ルート数は4路線の&lt;b&gt;97,514ルート&lt;/b&gt;(約10万)から&lt;b&gt;698,771,279ルート&lt;/b&gt;(約7億)で&lt;b&gt;7千倍以上&lt;/b&gt;に増えている。&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;5路線(東山線、名城線、名港線、鶴舞線、桜通線）&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;藤が丘 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 名古屋
名古屋 ～( 桜通線 )～ 中村区役所
中村区役所 ～( 桜通線 )～ 徳重
徳重 ～( 桜通線 )～ 新瑞橋
新瑞橋 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港
名古屋港 ～( 名港線 )～ 金山
金山 ～( 名城線 )～ 八事
八事 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 上小田井

藤が丘-(東山線)-本山-(東山線)-今池-(東山線)-栄-(東山線)-伏見-(東山線)-
名古屋-(東山線)-高畑-(東山線)-名古屋-(桜通線)-中村区役所-(桜通線)-名古
屋-(桜通線)-丸の内-(桜通線)-久屋大通-(桜通線)-今池-(桜通線)-御器所-(桜
通線)-新瑞橋-(桜通線)-徳重-(桜通線)-新瑞橋-(名城線)-八事-(名城線)-本山
-(名城線)-平安通-(名城線)-久屋大通-(名城線)-栄-(名城線)-上前津-(名城線
)-金山-(名港線)-名古屋港-(名港線)-金山-(名城線)-新瑞橋-(名城線)-八事-(
鶴舞線)-赤池-(鶴舞線)-八事-(鶴舞線)-御器所-(鶴舞線)-上前津-(鶴舞線)-伏
見-(鶴舞線)-丸の内-(鶴舞線)-上小田井

所要時間: 328(分)

乗車時間: 228(分)
乗換回数: 5(回)×10(分)
折返回数: 5(回)×10(分)

intMakeRouteNum = 31370501
intRouteNumMax = 50

--
処理時間: 2927(秒)

intMakeRouteNum = 698771279
intRouteNumMax = 50
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
残りは上飯田線の1路線だけ。&lt;br /&gt;
上飯田線は平安通駅から1区間だけ(続きは名鉄小牧線)だけど、3分岐で分岐して戻るり(1分岐)、また3分岐になるので、5路線の場合の数倍の計算量になると思われる。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;5路線で約49分&lt;/b&gt;なので、&lt;b&gt;5倍で4時間ちょっと&lt;/b&gt;、&lt;b&gt;10倍だと8時間以上&lt;/b&gt;の計算時間か。&lt;br /&gt;
待てない時間じゃないけど、ここはもう少し改善を進めた方が良さそう。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
つづく。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/3807716392115548177/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_27.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/3807716392115548177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/3807716392115548177'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_27.html' title='改善：検索の経過を表示し、時間をかけて計算'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-5303936947767414807</id><published>2012-03-25T23:29:00.001+09:00</published><updated>2012-03-25T23:29:13.194+09:00</updated><title type='text'>改善：分岐の順序を最適化</title><content type='html'>&lt;br /&gt;
前回の改善、「&lt;a href=&quot;http://best-kanj.blogspot.jp/2012/03/blog-post_19.html&quot;&gt;最短所要時間予測により検索ルート削減&lt;/a&gt;」により検索ルート数を削減することができ、計算時間を短縮できたが、それでもまだ&lt;b&gt;4路線&lt;/b&gt;までしか計算できない。&lt;br /&gt;
&lt;br /&gt;
今回の改善は「&lt;b&gt;分岐の順序を最適化&lt;/b&gt;」。&lt;br /&gt;
&lt;br /&gt;
例えば藤が丘駅スタートの場合、最初の分岐は本山駅。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShVs3C-ZKD1biz2ZMS_I1Tvd0KDGzJnGAmcx_Rt7MIGX1CosbbYvU2HZHva6-EYFSzE6rXvyqzKarvtqR769o8rzv7zRyabvuNEPC953obA5zJ7I3h-7DN7m-utSe6YGs1bM9j1DX-BSE/s1600/%25E5%2590%258D%25E5%258F%25A4%25E5%25B1%258B%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;155&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShVs3C-ZKD1biz2ZMS_I1Tvd0KDGzJnGAmcx_Rt7MIGX1CosbbYvU2HZHva6-EYFSzE6rXvyqzKarvtqR769o8rzv7zRyabvuNEPC953obA5zJ7I3h-7DN7m-utSe6YGs1bM9j1DX-BSE/s400/%25E5%2590%258D%25E5%258F%25A4%25E5%25B1%258B%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
本山駅での選択肢は4つ。&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;そのまま東山線を進み、今池方面へ&lt;/li&gt;
&lt;li&gt;名城線に乗換え、左回り&lt;/li&gt;
&lt;li&gt;名城線の乗換え、右回り&lt;/li&gt;
&lt;li&gt;東山線を引き返す(折り返し)&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
最短完乗ルートの検索は、&lt;b&gt;すべての組み合わの中から所要時間が一番短いルートを探す&lt;/b&gt;」ので、どんな順番でルートの評価を行なっても最終的に得られる&lt;b&gt;最短完乗ルート&lt;/b&gt;は同じはず。&lt;br /&gt;
&lt;br /&gt;
しかし、「&lt;b&gt;すべての組合せ&lt;/b&gt;を試すためには膨大な組合せの作成と評価をする必要があ現実的な時間で計算を終えられないため、これまでに&lt;b&gt;無駄なルートを省く&lt;/b&gt;などの方法で改善してきた。&lt;br /&gt;
&lt;br /&gt;
よって、組合せの作り方によって、検索ルート数が変わってくるのではないかと考えられる。&lt;br /&gt;
分岐駅でのルート作成順を&lt;b&gt;最適化&lt;/b&gt;すれば改善されるのではないか。&lt;br /&gt;
&lt;br /&gt;
例えば上記の本山駅での分岐の場合、4の「引き返す」は明らかに無駄なルート。&lt;br /&gt;
1の東山線を進むルートと、2と3の名城線に乗り換えるルートだと、乗換え時間(設定で10分としている)があるので、1の方が効率が良さそう。&lt;br /&gt;
&lt;br /&gt;
問題はどんな順序が最適かということ。&lt;br /&gt;
とりあえずは、以下のルールを考えてみた。&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;1分岐の場合 → そのまま進む&lt;/li&gt;
&lt;li&gt;2分岐の場合 → 直進、戻る の順&lt;/li&gt;
&lt;li&gt;3分岐の場合 → 乗り換え、直進、戻る の順&lt;/li&gt;
&lt;li&gt;4分岐以上の場合 → 直進、乗り換え、、、乗り換え、戻る の順&lt;/li&gt;
&lt;/ul&gt;
このプログラム改善は今までの中で一番難しかった。&lt;br /&gt;
元々、分岐の順序を考えない設計だったので、今までに無い情報(優先順)を作り、それに従って処理をするようにしないといけない。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
さっそく実行。&lt;br /&gt;
まずは、藤が丘駅スタート。&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;4路線(東山線、名城線、名港線、鶴舞線)&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;藤が丘 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 伏見
伏見 ～( 鶴舞線 )～ 上小田井
上小田井 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 上前津
上前津 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港

藤が丘-(東山線)-本山-(東山線)-今池-(東山線)-栄-(東山線)-伏見-(東山線)
-名古屋-(東山線)-高畑-(東山線)-名古屋-(東山線)-伏見-(鶴舞線)-丸の内-(
鶴舞線)-上小田井-(鶴舞線)-丸の内-(鶴舞線)-伏見-(鶴舞線)-上前津-(鶴舞
線)-御器所-(鶴舞線)-八事-(鶴舞線)-赤池-(鶴舞線)-八事-(鶴舞線)-御器所-
(鶴舞線)-上前津-(名城線)-金山-(名城線)-新瑞橋-(名城線)-八事-(名城線)-
本山-(名城線)-平安通-(名城線)-久屋大通-(名城線)-栄-(名城線)-上前津-(
名城線)-金山-(名港線)-名古屋港

所要時間: 245(分)

乗車時間: 185(分)
乗換回数: 3(回)×10(分)
折返回数: 3(回)×10(分)

intMakeRouteNum = 8045
intRouteNumMax = 37

--
処理時間: 0(秒)

intMakeRouteNum = 97514
intRouteNumMax = 37
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
最短完乗ルートは改善前のとまったく同じ。&lt;br /&gt;
プログラムは問題無さそう。&lt;br /&gt;
&lt;br /&gt;
問題は検索ルート数。&lt;br /&gt;
検索ルート数を減らせるのではないかと思って改善を行なったが、期待に反して評価ルート数（intMakeRouteNum）は減らず、わずかだけど増えている。&lt;br /&gt;
&lt;b&gt;97,105ルート&lt;/b&gt;が&lt;b&gt;97,514ルート&lt;/b&gt;に。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5路線で計算。&lt;br /&gt;
&lt;u&gt;5路線(東山線、名城線、名港線、鶴舞線、桜通線）&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
改善前と同じで、10分経っても終わらない。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5路線目を上飯田線で計算。&lt;br /&gt;
&lt;u&gt;5路線(東山線、名城線、名港線、鶴舞線、上飯田線）&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;藤が丘 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 伏見
伏見 ～( 鶴舞線 )～ 上小田井
上小田井 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 上前津
上前津 ～( 名城線 )～ 平安通
平安通 ～( 上飯田線 )～ 上飯田
上飯田 ～( 上飯田線 )～ 平安通
平安通 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港

藤が丘-(東山線)-本山-(東山線)-今池-(東山線)-栄-(東山線)-伏見-(東山線)-
名古屋-(東山線)-高畑-(東山線)-名古屋-(東山線)-伏見-(鶴舞線)-丸の内-(鶴
舞線)-上小田井-(鶴舞線)-丸の内-(鶴舞線)-伏見-(鶴舞線)-上前津-(鶴舞線)-
御器所-(鶴舞線)-八事-(鶴舞線)-赤池-(鶴舞線)-八事-(鶴舞線)-御器所-(鶴舞
線)-上前津-(名城線)-金山-(名城線)-新瑞橋-(名城線)-八事-(名城線)-本山-(
名城線)-平安通-(上飯田線)-上飯田-(上飯田線)-平安通-(名城線)-久屋大通-(
名城線)-栄-(名城線)-上前津-(名城線)-金山-(名港線)-名古屋港

所要時間: 277(分)

乗車時間: 187(分)
乗換回数: 5(回)×10(分)
折返回数: 4(回)×10(分)

intMakeRouteNum = 42929
intRouteNumMax = 39

--
処理時間: 2(秒)

intMakeRouteNum = 596342
intRouteNumMax = 39
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
計算時間は2秒で改善前と同じ。&lt;br /&gt;
検索ルート数は、&lt;b&gt;594,340ルート&amp;nbsp;&lt;/b&gt;→&amp;nbsp;&lt;b&gt;596,342ルート&lt;/b&gt;でこれも僅かに増えている。&lt;br /&gt;
&lt;br /&gt;
今回のプログラム改善はかなり大変だったけど効果は無し。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
つづく。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/5303936947767414807/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_25.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/5303936947767414807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/5303936947767414807'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_25.html' title='改善：分岐の順序を最適化'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShVs3C-ZKD1biz2ZMS_I1Tvd0KDGzJnGAmcx_Rt7MIGX1CosbbYvU2HZHva6-EYFSzE6rXvyqzKarvtqR769o8rzv7zRyabvuNEPC953obA5zJ7I3h-7DN7m-utSe6YGs1bM9j1DX-BSE/s72-c/%25E5%2590%258D%25E5%258F%25A4%25E5%25B1%258B%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-2064823997659433583</id><published>2012-03-22T00:03:00.001+09:00</published><updated>2012-03-22T00:12:31.086+09:00</updated><title type='text'>改善：最短所要時間予測により検索ルート削減 ～ 5路線、6路線</title><content type='html'>&lt;br /&gt;
改善版のプログラムでは、&lt;a href=&quot;http://best-kanj.blogspot.jp/2012/03/blog-post_19.html&quot;&gt;4路線の最短完乗ルートの検索を、藤が丘駅スタートで0秒、名古屋駅スタートで1秒で計算できた。&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
路線を増やして計算。&lt;br /&gt;
&lt;br /&gt;
まずは&lt;b&gt;藤が丘駅スタート&lt;/b&gt;。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
続いて名古屋駅スタート。&lt;br /&gt;
&lt;u&gt;5路線、東山線、名城線、名港線、鶴舞線、桜通線&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;10分以上&lt;/b&gt;掛かってるので「時間切れ」で&lt;b&gt;計算できず&lt;/b&gt;。&lt;br /&gt;
&lt;b&gt;1億5千万ルート以上&lt;/b&gt;を計算して終わらない。&lt;br /&gt;
&lt;br /&gt;
4路線(東山線、名城線、名港線、鶴舞線)は&amp;nbsp;&lt;b&gt;97,105ルート&lt;/b&gt; を0秒で計算。&lt;br /&gt;
桜通線は、名古屋、丸の内、久屋大通、今池、御器所、新瑞橋の6駅で他路線と交差しているので、それぞれの駅で乗り換えの可能性があることになる。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShVs3C-ZKD1biz2ZMS_I1Tvd0KDGzJnGAmcx_Rt7MIGX1CosbbYvU2HZHva6-EYFSzE6rXvyqzKarvtqR769o8rzv7zRyabvuNEPC953obA5zJ7I3h-7DN7m-utSe6YGs1bM9j1DX-BSE/s1600/%25E5%2590%258D%25E5%258F%25A4%25E5%25B1%258B%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;155&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShVs3C-ZKD1biz2ZMS_I1Tvd0KDGzJnGAmcx_Rt7MIGX1CosbbYvU2HZHva6-EYFSzE6rXvyqzKarvtqR769o8rzv7zRyabvuNEPC953obA5zJ7I3h-7DN7m-utSe6YGs1bM9j1DX-BSE/s400/%25E5%2590%258D%25E5%258F%25A4%25E5%25B1%258B%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
交差なので4分岐。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
単純計算で、4の6乗 = 4096倍 のルート数。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4路線で 97,105ルートなので、97,106×4,096 =&amp;nbsp;397,742,080 で&lt;b&gt;約40億ルート&lt;/b&gt;計算すれば終わる?&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
そんな単純な計算じゃないかな。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
路線の順序を決めたばかりだけど、5路線目を上飯田線にして計算してみることにした。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
上飯田線は、1区間だけで平安通駅から分岐している路線。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
分岐が1つ増えるだけなので計算できそう。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;u style=&quot;text-align: -webkit-auto;&quot;&gt;5路線、東山線、名城線、名港線、鶴舞線、上飯田線&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;藤が丘 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 伏見
伏見 ～( 鶴舞線 )～ 上小田井
上小田井 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 上前津
上前津 ～( 名城線 )～ 平安通
平安通 ～( 上飯田線 )～ 上飯田
上飯田 ～( 上飯田線 )～ 平安通
平安通 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港

藤が丘-(東山線)-本山-(東山線)-今池-(東山線)-栄-(東山線)-伏見-(東山線)-
名古屋-(東山線)-高畑-(東山線)-名古屋-(東山線)-伏見-(鶴舞線)-丸の内-(鶴
舞線)-上小田井-(鶴舞線)-丸の内-(鶴舞線)-伏見-(鶴舞線)-上前津-(鶴舞線)-
御器所-(鶴舞線)-八事-(鶴舞線)-赤池-(鶴舞線)-八事-(鶴舞線)-御器所-(鶴舞
線)-上前津-(名城線)-金山-(名城線)-新瑞橋-(名城線)-八事-(名城線)-本山-(
名城線)-平安通-(上飯田線)-上飯田-(上飯田線)-平安通-(名城線)-久屋大通-(
名城線)-栄-(名城線)-上前津-(名城線)-金山-(名港線)-名古屋港

所要時間: 277(分)

乗車時間: 187(分)
乗換回数: 5(回)×10(分)
折返回数: 4(回)×10(分)

intMakeRouteNum = 28236
intRouteNumMax = 42

--
処理時間: 2(秒)

intMakeRouteNum = 594340
intRouteNumMax = 42
&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
今度は2秒で計算。&lt;br /&gt;
ルート数は &lt;b&gt;594,340ルート&lt;/b&gt; なので、&amp;nbsp;&lt;b&gt;97,105ルート&lt;/b&gt; の&lt;b&gt;約6倍&lt;/b&gt;。&lt;br /&gt;
こんなもんかな。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
つづく。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/2064823997659433583/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/56.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/2064823997659433583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/2064823997659433583'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/56.html' title='改善：最短所要時間予測により検索ルート削減 ～ 5路線、6路線'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShVs3C-ZKD1biz2ZMS_I1Tvd0KDGzJnGAmcx_Rt7MIGX1CosbbYvU2HZHva6-EYFSzE6rXvyqzKarvtqR769o8rzv7zRyabvuNEPC953obA5zJ7I3h-7DN7m-utSe6YGs1bM9j1DX-BSE/s72-c/%25E5%2590%258D%25E5%258F%25A4%25E5%25B1%258B%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-7284076826660381196</id><published>2012-03-19T23:55:00.000+09:00</published><updated>2012-03-19T23:55:55.106+09:00</updated><title type='text'>改善：最短所要時間予測により検索ルート削減</title><content type='html'>&lt;br /&gt;
名古屋市営地下鉄の全6路線の完乗ルート検索。&lt;br /&gt;
&lt;b&gt;4路線(東山線、名城線、名港線、鶴舞線)&lt;/b&gt;までは計算できたけど、&lt;b&gt;5路線&lt;/b&gt;、&lt;b&gt;6路線&lt;/b&gt;はまだ計算できていない。&lt;br /&gt;
&lt;br /&gt;
完乗ルートの検索は、&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;ルートを作る&lt;/li&gt;
&lt;li&gt;ルートが「完乗」かどうか判断する&lt;/li&gt;
&lt;li&gt;ルートが「完乗」なら、「所要時間」を計算する&lt;/li&gt;
&lt;/ol&gt;
を繰り返すことになる。&lt;br /&gt;
最短のルートを求めるためには可能性があるすべてのルートを作って評価。&lt;br /&gt;
ルートを作るのは上記のの1、評価は上記の2と3に当たる。&lt;br /&gt;
&lt;br /&gt;
実用的な時間で計算するためには、評価時間を短くする(処理を速くする)か、評価するルート数を減らす必要がある。&lt;br /&gt;
&lt;br /&gt;
藤が丘駅スタートの場合、&lt;a href=&quot;http://best-kanj.blogspot.jp/2012/03/c.html&quot;&gt;前回のプログラム&lt;/a&gt;で4路線の場合、最終的には &lt;b&gt;529,845&lt;/b&gt; ものルートを作って評価している。&lt;br /&gt;
名古屋駅スタートの場合は更に増えて、&lt;b&gt;1,705,788&lt;/b&gt; のルートを評価している。&lt;br /&gt;
&lt;br /&gt;
これまでも、ルート数を減らすための改善をしてきたが、今回は、&lt;b&gt;最短所要時間予測により検索ルート削減&lt;/b&gt;すること。&lt;br /&gt;
&lt;br /&gt;
ルートが未完成の状態で「最短所要時間」を予測。&lt;br /&gt;
&lt;br /&gt;
最短所要時間は、&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;作成したルートの所要時間&lt;/li&gt;
&lt;li&gt;未乗車区間の所要時間の合計&lt;/li&gt;
&lt;/ul&gt;
の総合計時間とする。&lt;br /&gt;
&lt;br /&gt;
未乗車の区間が複数路線あれば、乗り換え時間も掛かるし、折り返し時間が必要なルートも考えられるが今回はそこまでは考えないことにする。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
さっそくプログラムを改善。&lt;br /&gt;
&lt;br /&gt;
まずは&lt;b&gt;藤が丘駅スタート&lt;/b&gt;で確認。&lt;br /&gt;
&lt;u&gt;4路線、東山線、名城線、名港線、鶴舞線&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;藤が丘 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 伏見
伏見 ～( 鶴舞線 )～ 上小田井
上小田井 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 上前津
上前津 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港

藤が丘-(東山線)-本山-(東山線)-今池-(東山線)-栄-(東山線)-伏見-(東山線)
-名古屋-(東山線)-高畑-(東山線)-名古屋-(東山線)-伏見-(鶴舞線)-丸の内-(
鶴舞線)-上小田井-(鶴舞線)-丸の内-(鶴舞線)-伏見-(鶴舞線)-上前津-(鶴舞
線)-御器所-(鶴舞線)-八事-(鶴舞線)-赤池-(鶴舞線)-八事-(鶴舞線)-御器所-
(鶴舞線)-上前津-(名城線)-金山-(名城線)-新瑞橋-(名城線)-八事-(名城線)-
本山-(名城線)-平安通-(名城線)-久屋大通-(名城線)-栄-(名城線)-上前津-(
名城線)-金山-(名港線)-名古屋港

所要時間: 245(分)

乗車時間: 185(分)
乗換回数: 3(回)×10(分)
折返回数: 3(回)×10(分)

intMakeRouteNum = 5458
intRouteNumMax = 40

--
処理時間: 0(秒)

intMakeRouteNum = 97105
intRouteNumMax = 40
&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
結果は前回と同じ。&lt;br /&gt;
ルート数は、&lt;b&gt;529,845&lt;/b&gt; から &lt;b&gt;97,105&lt;/b&gt; に大幅に削減。&lt;br /&gt;
5分の1以下。&lt;br /&gt;
&lt;br /&gt;
続いて&lt;b&gt;名古屋駅スタート&lt;/b&gt;で検証。&lt;br /&gt;
&lt;u&gt;4路線、東山線、名城線、名港線、鶴舞線&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;名古屋 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 藤が丘
藤が丘 ～( 東山線 )～ 本山
本山 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港
名古屋港 ～( 名港線 )～ 金山
金山 ～( 名城線 )～ 八事
八事 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 上小田井

名古屋-(東山線)-高畑-(東山線)-名古屋-(東山線)-伏見-(東山線)-栄-(東山
線)-今池-(東山線)-本山-(東山線)-藤が丘-(東山線)-本山-(名城線)-八事-(
名城線)-新瑞橋-(名城線)-金山-(名港線)-名古屋港-(名港線)-金山-(名城線)
-上前津-(名城線)-栄-(名城線)-久屋大通-(名城線)-平安通-(名城線)-本山-(
名城線)-八事-(鶴舞線)-赤池-(鶴舞線)-八事-(鶴舞線)-御器所-(鶴舞線)-上
前津-(鶴舞線)-伏見-(鶴舞線)-丸の内-(鶴舞線)-上小田井

所要時間: 264(分)

乗車時間: 184(分)
乗換回数: 4(回)×10(分)
折返回数: 4(回)×10(分)

intMakeRouteNum = 6354
intRouteNumMax = 40

--
処理時間: 1(秒)

intMakeRouteNum = 354185
intRouteNumMax = 40
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
これも結果は前回と同じ。&lt;br /&gt;
ルート数は、&lt;b&gt;1,705,788&lt;/b&gt; から &lt;b&gt;354,185&lt;/b&gt; で、同じく大幅に削減。&lt;br /&gt;
こちらも、ほぼ5分の1になった。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
つづく。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/7284076826660381196/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_19.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/7284076826660381196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/7284076826660381196'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_19.html' title='改善：最短所要時間予測により検索ルート削減'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-8068868097120000171</id><published>2012-03-14T23:46:00.000+09:00</published><updated>2012-03-14T23:46:01.441+09:00</updated><title type='text'>C言語版プログラムでどこまで計算できるのか</title><content type='html'>&lt;br /&gt;
&lt;a href=&quot;http://best-kanj.blogspot.com/2012/03/c6.html&quot;&gt;前回&lt;/a&gt;、&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;3路線&lt;/b&gt; ： 東山線、桜通線、名城線&lt;/li&gt;
&lt;li&gt;&lt;b&gt;4路線&lt;/b&gt; ： 東山線、桜通線、名城線、名港線&lt;/li&gt;
&lt;li&gt;&lt;b&gt;5路線&lt;/b&gt; ：&amp;nbsp;東山線、桜通線、名城線、名港線、上飯田線&lt;/li&gt;
&lt;/ul&gt;
まで計算した。&lt;br /&gt;
&lt;br /&gt;
同じ1路線でも、1区間だけの名港線や上飯田線と鶴舞線では検索ルート数が大きく異なるはず。&lt;br /&gt;
今後改善を進めていくにあたり、路線の順序を決めることにした。&lt;br /&gt;
&lt;br /&gt;
路線は開通順に、&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;東山線(1957年)&lt;/li&gt;
&lt;li&gt;名城線(1965年)&lt;/li&gt;
&lt;li&gt;名港線(1971年)&lt;/li&gt;
&lt;li&gt;鶴舞線(1977年)&lt;/li&gt;
&lt;li&gt;桜通線(1989年)&lt;/li&gt;
&lt;li&gt;上飯田線(2003年)&lt;/li&gt;
&lt;/ol&gt;
に追加していく。&lt;br /&gt;
&lt;br /&gt;
開通順とは言っても、ほとんどの路線は部分開通から徐々に延伸して全線開通しているので実際にはもっと複雑になるが、今回はそこまでは考えずに路線として最初に最初の区間が開通した順ということで上記の順とした。&lt;br /&gt;
&lt;br /&gt;
スタート駅は藤が丘駅で始めているので&lt;b&gt;藤が丘駅(東山線)&lt;/b&gt;。&lt;br /&gt;
それと、JR、名鉄、近鉄のターミナル駅でもある&lt;b&gt;名古屋駅(東山線、桜通線)&lt;/b&gt;の2駅。&lt;br /&gt;
&lt;br /&gt;
計算時間は&lt;b&gt;10分で打ち切り&lt;/b&gt;。&lt;br /&gt;
10分経っても計算が終わらなければ、「計算できず」とする。&lt;br /&gt;
&lt;br /&gt;
まずは&lt;b&gt;藤が丘駅&lt;/b&gt;スタート。&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;3路線、東山線、名城線、名港線&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;藤が丘 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 栄
栄 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港

藤が丘-(東山線)-本山-(東山線)-今池-(東山線)-栄-(東山線)-伏見-(東山線)
-名古屋-(東山線)-高畑-(東山線)-名古屋-(東山線)-伏見-(東山線)-栄-(名城
線)-上前津-(名城線)-金山-(名城線)-新瑞橋-(名城線)-八事-(名城線)-本山-
(名城線)-平安通-(名城線)-久屋大通-(名城線)-栄-(名城線)-上前津-(名城線
)-金山-(名港線)-名古屋港

所要時間: 155(分)

乗車時間: 125(分)
乗換回数: 2(回)×10(分)
折返回数: 1(回)×10(分)

intMakeRouteNum = 159
intRouteNumMax = 28

--
処理時間: 0(秒)

intMakeRouteNum = 862
intRouteNumMax = 28
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;u&gt;4路線、東山線、名城線、名港線、鶴舞線&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;藤が丘 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 伏見
伏見 ～( 鶴舞線 )～ 上小田井
上小田井 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 上前津
上前津 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港

藤が丘-(東山線)-本山-(東山線)-今池-(東山線)-栄-(東山線)-伏見-(東山線)
-名古屋-(東山線)-高畑-(東山線)-名古屋-(東山線)-伏見-(鶴舞線)-丸の内-(
鶴舞線)-上小田井-(鶴舞線)-丸の内-(鶴舞線)-伏見-(鶴舞線)-上前津-(鶴舞
線)-御器所-(鶴舞線)-八事-(鶴舞線)-赤池-(鶴舞線)-八事-(鶴舞線)-御器所-
(鶴舞線)-上前津-(名城線)-金山-(名城線)-新瑞橋-(名城線)-八事-(名城線)-
本山-(名城線)-平安通-(名城線)-久屋大通-(名城線)-栄-(名城線)-上前津-(
名城線)-金山-(名港線)-名古屋港

所要時間: 245(分)

乗車時間: 185(分)
乗換回数: 3(回)×10(分)
折返回数: 3(回)×10(分)

intMakeRouteNum = 15693
intRouteNumMax = 40

--
処理時間: 1(秒)

intMakeRouteNum = 529845
intRouteNumMax = 40
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;u&gt;5路線、東山線、名城線、名港線、鶴舞線、桜通線&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;計算できず。
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;u&gt;6路線、東山線、名城線、名港線、鶴舞線、桜通線、上飯田線&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;計算できず。
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
続いて&lt;b&gt;名古屋駅&lt;/b&gt;スタート。&lt;br /&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;br /&gt;
&lt;u&gt;3路線、東山線、名城線、名港線&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;名古屋 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 栄
栄 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港
名古屋港 ～( 名港線 )～ 金山
金山 ～( 名城線 )～ 栄
栄 ～( 東山線 )～ 藤が丘

名古屋-(東山線)-高畑-(東山線)-名古屋-(東山線)-伏見-(東山線)-栄-(名城
線)-上前津-(名城線)-金山-(名港線)-名古屋港-(名港線)-金山-(名城線)-新
瑞橋-(名城線)-八事-(名城線)-本山-(名城線)-平安通-(名城線)-久屋大通-(
名城線)-栄-(東山線)-今池-(東山線)-本山-(東山線)-藤が丘

所要時間: 183(分)

乗車時間: 123(分)
乗換回数: 4(回)×10(分)
折返回数: 2(回)×10(分)

intMakeRouteNum = 825
intRouteNumMax = 28

--
処理時間: 0(秒)

intMakeRouteNum = 2985
intRouteNumMax = 28
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;u&gt;4路線、東山線、名城線、名港線、鶴舞線&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;名古屋 ～( 東山線 )～ 高畑
高畑 ～( 東山線 )～ 藤が丘
藤が丘 ～( 東山線 )～ 本山
本山 ～( 名城線 )～ 金山
金山 ～( 名港線 )～ 名古屋港
名古屋港 ～( 名港線 )～ 金山
金山 ～( 名城線 )～ 八事
八事 ～( 鶴舞線 )～ 赤池
赤池 ～( 鶴舞線 )～ 上小田井

名古屋-(東山線)-高畑-(東山線)-名古屋-(東山線)-伏見-(東山線)-栄-(東山
線)-今池-(東山線)-本山-(東山線)-藤が丘-(東山線)-本山-(名城線)-八事-(
名城線)-新瑞橋-(名城線)-金山-(名港線)-名古屋港-(名港線)-金山-(名城線)
-上前津-(名城線)-栄-(名城線)-久屋大通-(名城線)-平安通-(名城線)-本山-(
名城線)-八事-(鶴舞線)-赤池-(鶴舞線)-八事-(鶴舞線)-御器所-(鶴舞線)-上
前津-(鶴舞線)-伏見-(鶴舞線)-丸の内-(鶴舞線)-上小田井

所要時間: 264(分)

乗車時間: 184(分)
乗換回数: 4(回)×10(分)
折返回数: 4(回)×10(分)

intMakeRouteNum = 16695
intRouteNumMax = 40

--
処理時間: 4(秒)

intMakeRouteNum = 1705788
intRouteNumMax = 40
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;u&gt;5路線、東山線、名城線、名港線、鶴舞線、桜通線&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;計算できず。
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;u&gt;6路線、東山線、名城線、名港線、鶴舞線、桜通線、上飯田線&lt;/u&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;#c0ffc0&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;計算できず。
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
これを基準に&lt;b&gt;名古屋市営地下鉄&lt;/b&gt;の&lt;b&gt;全6路線&lt;/b&gt;の&lt;b&gt;最短完乗ルート&lt;/b&gt;の検索ができるように改善を進める。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
つづく。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/8068868097120000171/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/c.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/8068868097120000171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/8068868097120000171'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/c.html' title='C言語版プログラムでどこまで計算できるのか'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-862306290122666214</id><published>2012-03-12T23:59:00.002+09:00</published><updated>2012-03-13T00:03:09.562+09:00</updated><title type='text'>改善：高速化(C言語移植)、でも全6路線は検索できず</title><content type='html'>&lt;br /&gt;
ちょっと寄り道して、&lt;a href=&quot;http://best-kanj.blogspot.com/2012/03/blog-post_09.html&quot;&gt;名古屋市営地下鉄以外で最短完乗ルート&lt;/a&gt;の計算をしたけど、再び当初の目標の&lt;b&gt;名古屋市営地下鉄&lt;/b&gt;の&lt;b&gt;最短完乗ルートの検索&lt;/b&gt;を目指してプログラムの改善。&lt;br /&gt;
&lt;br /&gt;
プログラムを作るためには、&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;プログラムの構造&lt;/li&gt;
&lt;li&gt;データ構造&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
を決める(設計する)必要があるが、今回は&lt;b&gt;試行錯誤&lt;/b&gt;で進めているため、途中、何度も見直しをしてきた。&lt;br /&gt;
&lt;br /&gt;
試行錯誤が行いやすいようにということで、プログラムは&lt;b&gt;VBScript&lt;/b&gt;で作ってきたが、だいたい形になってきたのでこの週末で、&lt;b&gt;VBScript&lt;/b&gt;のプログラムを&lt;b&gt;C言語&lt;/b&gt;に書き換えた。&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;プログラムの構造&lt;/li&gt;
&lt;li&gt;データ構造&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
はほぼそのままに、プログラムの記述を&lt;b&gt;VBScript&lt;/b&gt;から&lt;b&gt;C言語&lt;/b&gt;に変更。&lt;br /&gt;
こういうのを&lt;b&gt;プログラムの移植&lt;/b&gt;といいますが、今回はその移植作業。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
さっそく、&lt;b&gt;東山線、桜通線、名城線の3路線&lt;/b&gt;で、藤が丘駅スタートで計算。&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;VBScript版の計算結果は次の通り。&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgseADhObqNuJjZ2pzYwQ2sBvqVlMKgXN6uw7OvIi46SswM8rut9-pYInVOPUNAWFe7CR3CG49o7uym8H0hgGsd7RnKwfdxutEs4_40lojRTNTE0QFJm5Khs5i6XHxuSlOfnQDqgG-S8j-G/s1600/20120312_0_9.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgseADhObqNuJjZ2pzYwQ2sBvqVlMKgXN6uw7OvIi46SswM8rut9-pYInVOPUNAWFe7CR3CG49o7uym8H0hgGsd7RnKwfdxutEs4_40lojRTNTE0QFJm5Khs5i6XHxuSlOfnQDqgG-S8j-G/s400/20120312_0_9.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
このプログラムをC言語に移植。&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;C言語版の計算結果は次の通り。&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggp9uC1gKiof7nGP8NlFkB6A8eCQC5cg7nIr3u5GHUP_ZPpR-7xxinxay8CprZdfs-xr8gYvfX8VJQpr2TQq8bXuNspWqvcDeOEzLq7g-Lip6tZLwAXAUzbGEHuM0qoSUvWN0TS1JGm1Tx/s1600/20120312_0_10.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;303&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggp9uC1gKiof7nGP8NlFkB6A8eCQC5cg7nIr3u5GHUP_ZPpR-7xxinxay8CprZdfs-xr8gYvfX8VJQpr2TQq8bXuNspWqvcDeOEzLq7g-Lip6tZLwAXAUzbGEHuM0qoSUvWN0TS1JGm1Tx/s400/20120312_0_10.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
結果の出力方法を変えましたが、計算結果はまったく同じ。&lt;br /&gt;
計算時間は&lt;b&gt;341.1秒&lt;/b&gt;から&lt;b&gt;1秒&lt;/b&gt;に高速化。&lt;br /&gt;
単純計算で&lt;b&gt;341倍&lt;/b&gt;。&lt;br /&gt;
&lt;br /&gt;
同じアルゴリズムのプログラムでこれだけスピードアップ。&lt;br /&gt;
&lt;b&gt;VBScript&lt;/b&gt;のプログラムを&lt;b&gt;C/C++&lt;/b&gt;に書き換え(移植する)ことで&lt;b&gt;&lt;a href=&quot;http://best-kanj.blogspot.com/2012/02/blog-post_11.html&quot;&gt;1桁～2桁以上の高速化ができる&lt;/a&gt;&lt;/b&gt;だろうと思っていたが、2桁以上の高速化ができた。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
もう少し路線数を増やして計算。&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;4路線、東山線、桜通線、名城線、名港線&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg82DA-1z_fSM7myFjTxpU2gDIVBlKa1JDQEsZHMLfXKwd3jvdlu0MF2cwG7vqFFGDMaJwErK5bkZE9qQqv3U_lzg6ZfieDfT6QwFnGcgT_bvuClTtOO6jmoggsbKozKUCpfCT82nqywDoc/s1600/20120312_0_10_4%E8%B7%AF%E7%B7%9A.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;323&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg82DA-1z_fSM7myFjTxpU2gDIVBlKa1JDQEsZHMLfXKwd3jvdlu0MF2cwG7vqFFGDMaJwErK5bkZE9qQqv3U_lzg6ZfieDfT6QwFnGcgT_bvuClTtOO6jmoggsbKozKUCpfCT82nqywDoc/s400/20120312_0_10_4%E8%B7%AF%E7%B7%9A.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
6秒で計算。&lt;/div&gt;
&lt;br /&gt;
&lt;u&gt;5路線、東山線、桜通線、名城線、名港線、上飯田線&lt;/u&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif5yU6iVa7wxUP3Myl1jtL1vcQgGnGbhsjULI4cSgMNyLxOBX9gVwIg5dZGIw1zcNcC_1n94EI1wdXISaRhkV7JkfDxe8YPvNr8xzPlHrn2yieRs2lXKHpZkUComN2ad8I0mEiG3w4vmHb/s1600/20120312_0_10_5%E8%B7%AF%E7%B7%9A.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;351&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif5yU6iVa7wxUP3Myl1jtL1vcQgGnGbhsjULI4cSgMNyLxOBX9gVwIg5dZGIw1zcNcC_1n94EI1wdXISaRhkV7JkfDxe8YPvNr8xzPlHrn2yieRs2lXKHpZkUComN2ad8I0mEiG3w4vmHb/s400/20120312_0_10_5%E8%B7%AF%E7%B7%9A.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
ちょっと時間が掛かって、28秒で計算。&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;6路線、東山線、桜通線、名城線、名港線、上飯田線、鶴舞線&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
10分程計算を続けたが終わらない。&lt;br /&gt;
さすがにいきなり全6路線は無理だった。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
今回は単純に言語の変更だけで100倍以上の高速化を実現。&lt;br /&gt;
でも、全6路線の最短完乗ルートを検索するためには、まだまだ改善が必要。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
つづく。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/862306290122666214/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/c6.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/862306290122666214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/862306290122666214'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/c6.html' title='改善：高速化(C言語移植)、でも全6路線は検索できず'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgseADhObqNuJjZ2pzYwQ2sBvqVlMKgXN6uw7OvIi46SswM8rut9-pYInVOPUNAWFe7CR3CG49o7uym8H0hgGsd7RnKwfdxutEs4_40lojRTNTE0QFJm5Khs5i6XHxuSlOfnQDqgG-S8j-G/s72-c/20120312_0_9.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-4137467653018329410</id><published>2012-03-09T00:02:00.001+09:00</published><updated>2012-03-09T00:02:20.963+09:00</updated><title type='text'>名古屋市営地下鉄以外で最短完乗ルート</title><content type='html'>&lt;br /&gt;
名古屋市営地下鉄以外の事業者の最短完乗ルートの計算をしてみた。&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;札幌市営地下鉄&lt;/li&gt;
&lt;li&gt;札幌市営地下鉄＋札幌市電&lt;/li&gt;
&lt;li&gt;福岡市地下鉄&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
それぞれ、3路線、4路線、4路線(徒歩移動を1路線とする)の&lt;b&gt;最短完乗ルート&lt;/b&gt;の検索。&lt;br /&gt;
&lt;br /&gt;
今のプログラムではまだ、&lt;b&gt;名古屋市営地下鉄の全6路線&lt;/b&gt;の&lt;b&gt;最短完乗ルートの検索&lt;/b&gt;はできないけど、そんなプログラムでも&lt;b&gt;福岡市地下鉄&lt;/b&gt;の&lt;b&gt;4路線&lt;/b&gt;を&lt;b&gt;0.1秒&lt;/b&gt;とか&lt;b&gt;0秒&lt;/b&gt;(測定限度以下)で計算が終わったのはびっくり。&lt;br /&gt;
&lt;br /&gt;
同じ4路線でも、&lt;b&gt;札幌市営地下鉄＋札幌市電&lt;/b&gt;はそんなに速くない。&lt;br /&gt;
&lt;br /&gt;
福岡市地下鉄は&lt;b&gt;分岐が3分岐(枝分かれ)だけ&lt;/b&gt;で、&lt;b&gt;交差(4分岐)が無い&lt;/b&gt;。&lt;br /&gt;
そのため、ルートの組み合わせが少ないことが計算が速い理由と思われる。&lt;br /&gt;
&lt;br /&gt;
名古屋市営地下鉄では&lt;b&gt;交差(4分岐)が11駅&lt;/b&gt;、&lt;b&gt;分岐(3分岐)が2駅&lt;/b&gt;もある。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShVs3C-ZKD1biz2ZMS_I1Tvd0KDGzJnGAmcx_Rt7MIGX1CosbbYvU2HZHva6-EYFSzE6rXvyqzKarvtqR769o8rzv7zRyabvuNEPC953obA5zJ7I3h-7DN7m-utSe6YGs1bM9j1DX-BSE/s1600/%E5%90%8D%E5%8F%A4%E5%B1%8B%E5%B8%82%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;156&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShVs3C-ZKD1biz2ZMS_I1Tvd0KDGzJnGAmcx_Rt7MIGX1CosbbYvU2HZHva6-EYFSzE6rXvyqzKarvtqR769o8rzv7zRyabvuNEPC953obA5zJ7I3h-7DN7m-utSe6YGs1bM9j1DX-BSE/s400/%E5%90%8D%E5%8F%A4%E5%B1%8B%E5%B8%82%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
そのため、ルートの組み合わせが膨大な数になり、結果、計算に時間が掛かっている。&lt;br /&gt;
&lt;br /&gt;
名古屋市営地下鉄は6路線で特に路線数が多いとも思えないけど、交差が多いことが最短完乗ルートの計算を困難にしているんだと思う。&lt;br /&gt;
ハードルは高い。&lt;br /&gt;
&lt;br /&gt;
次回からはまた&lt;b&gt;名古屋市営地下鉄&lt;/b&gt;の&lt;b&gt;最短完乗ルートの計算&lt;/b&gt;に戻ることする。&lt;br /&gt;
目標はある程度高い方がいいけど、でも、これからどうやって進めようか...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
つづく。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/4137467653018329410/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_09.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/4137467653018329410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/4137467653018329410'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_09.html' title='名古屋市営地下鉄以外で最短完乗ルート'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjShVs3C-ZKD1biz2ZMS_I1Tvd0KDGzJnGAmcx_Rt7MIGX1CosbbYvU2HZHva6-EYFSzE6rXvyqzKarvtqR769o8rzv7zRyabvuNEPC953obA5zJ7I3h-7DN7m-utSe6YGs1bM9j1DX-BSE/s72-c/%E5%90%8D%E5%8F%A4%E5%B1%8B%E5%B8%82%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-1991965068243055311</id><published>2012-03-07T23:27:00.001+09:00</published><updated>2012-03-07T23:27:35.659+09:00</updated><title type='text'>福岡市地下鉄～最短完乗ルート計算</title><content type='html'>&lt;br /&gt;
&lt;a href=&quot;http://best-kanj.blogspot.com/2012/03/blog-post_07.html&quot;&gt;福岡市地下鉄の計算用のデータ（路線データ、時間データ）&lt;/a&gt;を準備したので実際に、&lt;b&gt;最短完乗ルート&lt;/b&gt;を計算。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3路線+1路線(徒歩)&lt;/b&gt;の&lt;b&gt;4路線&lt;/b&gt;で乗換駅は3駅。&lt;br /&gt;
&lt;a href=&quot;http://best-kanj.blogspot.com/2012/03/blog-post_01.html&quot;&gt;札幌市営地下鉄＋札幌市電&lt;/a&gt;と同程度の計算量と思われる。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHVi7m2h5rMEFa99KeadBuf3unDVQ3dMtpww-JO62QpavaROrZ4dfelQWyY5ne4qGRE88O2ojBjXd9r6SRr5PAk2_Q3JEQMdieh1VGl9BjbEgrCK0ocpkapuNtARZ9Eo3kaebq5xWc8YFb/s1600/%E7%A6%8F%E5%B2%A1%E5%B8%82%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;140&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHVi7m2h5rMEFa99KeadBuf3unDVQ3dMtpww-JO62QpavaROrZ4dfelQWyY5ne4qGRE88O2ojBjXd9r6SRr5PAk2_Q3JEQMdieh1VGl9BjbEgrCK0ocpkapuNtARZ9Eo3kaebq5xWc8YFb/s400/%E7%A6%8F%E5%B2%A1%E5%B8%82%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;天神駅スタート&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE1xRamkY0QgyFn6GFuNWiSAEgACdsl8LvpChrV9oIix-B-SM4YpL6Un1HbqHVRDh3fAFWbIXILBoacJtTS6rmuUiam4iGTGs4xQ1zOs_8UiqiCtGLQWuFyRXTRrnA6YGUe4f2zqXsql9h/s1600/20120307_%E5%A4%A9%E7%A5%9E.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE1xRamkY0QgyFn6GFuNWiSAEgACdsl8LvpChrV9oIix-B-SM4YpL6Un1HbqHVRDh3fAFWbIXILBoacJtTS6rmuUiam4iGTGs4xQ1zOs_8UiqiCtGLQWuFyRXTRrnA6YGUe4f2zqXsql9h/s400/20120307_%E5%A4%A9%E7%A5%9E.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
計算時間は&lt;b&gt;0.1秒&lt;/b&gt;。&lt;br /&gt;
あまりにも速く、一瞬で結果が表示されたので間違いかと思って&lt;b&gt;検算&lt;/b&gt;したら合ってた。&lt;br /&gt;
&lt;br /&gt;
4路線あるが&lt;u&gt;交差(4分岐)が無く分岐(3分岐)だけ&lt;/u&gt;なのでルート数が少ないと思われる。&lt;br /&gt;
&lt;b&gt;所要時間は160分&lt;/b&gt;。&lt;br /&gt;
最短完乗ルートは上記画面の結果以外に3ルート、全部で4ルートあった。&lt;br /&gt;
乗車の順番が違うだけで、所要時間160分は同じ。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;続いて橋本駅スタート&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivXkiRorr6ArlUFJNEUNcIWY02aF8YBYGihGX0qhdT_fiSW9ydqCQ_ejIKUyA4hK08gBgoHHpE2NAWE6J7I-dmPExsTRAnhkMzhTS6o0hH-TK6c5MOtlWQ6_kRfLKEzJRoMJxEB-H1UdLc/s1600/20120307_%E6%A9%8B%E6%9C%AC.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;233&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivXkiRorr6ArlUFJNEUNcIWY02aF8YBYGihGX0qhdT_fiSW9ydqCQ_ejIKUyA4hK08gBgoHHpE2NAWE6J7I-dmPExsTRAnhkMzhTS6o0hH-TK6c5MOtlWQ6_kRfLKEzJRoMJxEB-H1UdLc/s400/20120307_%E6%A9%8B%E6%9C%AC.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
計算時間は更に短くて表示は&lt;b&gt;0秒&lt;/b&gt;。&lt;br /&gt;
測定限度以下で0秒。&lt;br /&gt;
&lt;br /&gt;
ルートの所要時間は&lt;b&gt;129分&lt;/b&gt;だった。&lt;br /&gt;
こちらは最短完乗ルートは上記の1ルートだけ。&lt;br /&gt;
&lt;b&gt;ゴール駅&lt;/b&gt;は箱崎線の&lt;b&gt;貝塚駅&lt;/b&gt;。&lt;br /&gt;
区間乗車時間が長い空港線の姪浜駅がゴールのルートが最短完乗ルートになるような気がしてたけど、乗換時間の差だろうか。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7駅をスタート駅にした結果結果は次の通り。&lt;br /&gt;
最短は橋本駅スタートのルートと、逆の貝塚駅スタートのルート。
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi90a3jg-lNdJ1QhRwwbROTerm0YvbBxQPExV29OAQQiRgwBESjJO2wJ42q40kBoKB6m7sZRaZK6NjWkdRdcJuIkb9ai1T5l4ScjgvRt-Ool2AJYKEDm9TLF6JrrBN_i6fk5PJPfQ7OmARh/s1600/20120307_%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%88%E9%A7%85%E5%88%A5%E5%AE%8C%E4%B9%97%E3%83%AB%E3%83%BC%E3%83%88.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;185&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi90a3jg-lNdJ1QhRwwbROTerm0YvbBxQPExV29OAQQiRgwBESjJO2wJ42q40kBoKB6m7sZRaZK6NjWkdRdcJuIkb9ai1T5l4ScjgvRt-Ool2AJYKEDm9TLF6JrrBN_i6fk5PJPfQ7OmARh/s400/20120307_%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%88%E9%A7%85%E5%88%A5%E5%AE%8C%E4%B9%97%E3%83%AB%E3%83%BC%E3%83%88.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUG3J1OnXN3hvENBBtBIaLfKJrZNjTbHE_c0AOodwJsfZ3YgHTYOCF2R4xPtJqorgajweu1R8JNjIe1ws0fa3z4NqxC8mN8mcCqvXdyDvjaOsNGaVTewQ_HoJaCJTDNhT1W1uJjLnbe30f/s1600/20120307_1_%E5%A7%AA%E6%B5%9C.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUG3J1OnXN3hvENBBtBIaLfKJrZNjTbHE_c0AOodwJsfZ3YgHTYOCF2R4xPtJqorgajweu1R8JNjIe1ws0fa3z4NqxC8mN8mcCqvXdyDvjaOsNGaVTewQ_HoJaCJTDNhT1W1uJjLnbe30f/s320/20120307_1_%E5%A7%AA%E6%B5%9C.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfPC0IvBlYnpjbcnvlfNdd0EWqqIZuonY5o7ujxmBcY8n4VsmxGohyJfgjVyNThFoWaxUfVClgmL3sqLT-i02FpszN4LgTVFdKA_a8-c19jGf5bKt-wIUDWS9IdppzHKJRgG60Gua91FK7/s1600/20120307_2_%E5%A4%A9%E7%A5%9E.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;198&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfPC0IvBlYnpjbcnvlfNdd0EWqqIZuonY5o7ujxmBcY8n4VsmxGohyJfgjVyNThFoWaxUfVClgmL3sqLT-i02FpszN4LgTVFdKA_a8-c19jGf5bKt-wIUDWS9IdppzHKJRgG60Gua91FK7/s320/20120307_2_%E5%A4%A9%E7%A5%9E.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7tgKVVUaKtXseljQzzkWmaL6_9YuyqDCkHUaeryF9mUYu0ozOZYODqubCFb5jFhlM6WMFzi5VA7pN9OjihaM4TpmHvbmlKV0MiQvI5kn_GdquGXqk6K9OHKImV1abfVc-guvN5TEkPgak/s1600/20120307_3_%E4%B8%AD%E6%B4%B2%E5%B7%9D%E7%AB%AF.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7tgKVVUaKtXseljQzzkWmaL6_9YuyqDCkHUaeryF9mUYu0ozOZYODqubCFb5jFhlM6WMFzi5VA7pN9OjihaM4TpmHvbmlKV0MiQvI5kn_GdquGXqk6K9OHKImV1abfVc-guvN5TEkPgak/s320/20120307_3_%E4%B8%AD%E6%B4%B2%E5%B7%9D%E7%AB%AF.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiD-klW_ZqA4enOI9sDZU__-zSN1VG0tYxIQkqR2RK7fYqtc9yWdZirJUPhbg-J-eMVMsXgjoUgvNwgyjTqrWHGzptLiVP72JHPfvF9GrY7L3R9CcLfmuPWCRnuwFOhIh6J32TEZ1hdxEnM/s1600/20120307_4_%E7%A6%8F%E5%B2%A1%E7%A9%BA%E6%B8%AF.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiD-klW_ZqA4enOI9sDZU__-zSN1VG0tYxIQkqR2RK7fYqtc9yWdZirJUPhbg-J-eMVMsXgjoUgvNwgyjTqrWHGzptLiVP72JHPfvF9GrY7L3R9CcLfmuPWCRnuwFOhIh6J32TEZ1hdxEnM/s320/20120307_4_%E7%A6%8F%E5%B2%A1%E7%A9%BA%E6%B8%AF.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj57falkN_shbZdkkvkz5thMcAjXJmO6dA-xEuvr3dNE515bgEAwu_TycJe60noN1ZNJcxaPjzZ6UcDpFOqihMOO7YAmbtVsT9dBHt5ec_GmfgzAxFkAn5t7tNacatKQAZram-uR-mM1IzW/s1600/20120307_5_%E8%B2%9D%E5%A1%9A.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj57falkN_shbZdkkvkz5thMcAjXJmO6dA-xEuvr3dNE515bgEAwu_TycJe60noN1ZNJcxaPjzZ6UcDpFOqihMOO7YAmbtVsT9dBHt5ec_GmfgzAxFkAn5t7tNacatKQAZram-uR-mM1IzW/s320/20120307_5_%E8%B2%9D%E5%A1%9A.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2-qqWrZSq9E6tprUPpbgo_VAa0DWRYu-zQFetNGrPuwXnFXXGfUfWgSli2tLN6znY8f1qBrWsnKHh_yUAW0tDC3lG-lCWUh3HwWhYIAuuBk1sF0v8eu-0V_5rmxdLp8ahZuFf-qN4A3I1/s1600/20120307_6_%E6%A9%8B%E6%9C%AC.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2-qqWrZSq9E6tprUPpbgo_VAa0DWRYu-zQFetNGrPuwXnFXXGfUfWgSli2tLN6znY8f1qBrWsnKHh_yUAW0tDC3lG-lCWUh3HwWhYIAuuBk1sF0v8eu-0V_5rmxdLp8ahZuFf-qN4A3I1/s320/20120307_6_%E6%A9%8B%E6%9C%AC.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeIdfhmVYV_wAPi3nea5S63yPy1NEc9uL0s3vSLULvJEVoqlPRA187FX8cHq2RCpc-EqdYY1DQeAJDWh6xggyoAHHBdeSjQCOMgv1-X8n9apeVWSVp2k4vQJ-cX_-xaTAvq-H3yjgZDrlV/s1600/20120307_7_%E5%A4%A9%E7%A5%9E%E5%8D%97.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeIdfhmVYV_wAPi3nea5S63yPy1NEc9uL0s3vSLULvJEVoqlPRA187FX8cHq2RCpc-EqdYY1DQeAJDWh6xggyoAHHBdeSjQCOMgv1-X8n9apeVWSVp2k4vQJ-cX_-xaTAvq-H3yjgZDrlV/s320/20120307_7_%E5%A4%A9%E7%A5%9E%E5%8D%97.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
つづく。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/1991965068243055311/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_9916.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/1991965068243055311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/1991965068243055311'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_9916.html' title='福岡市地下鉄～最短完乗ルート計算'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHVi7m2h5rMEFa99KeadBuf3unDVQ3dMtpww-JO62QpavaROrZ4dfelQWyY5ne4qGRE88O2ojBjXd9r6SRr5PAk2_Q3JEQMdieh1VGl9BjbEgrCK0ocpkapuNtARZ9Eo3kaebq5xWc8YFb/s72-c/%E7%A6%8F%E5%B2%A1%E5%B8%82%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-219228093228996214</id><published>2012-03-07T00:07:00.000+09:00</published><updated>2012-03-07T00:07:14.100+09:00</updated><title type='text'>福岡市地下鉄（路線データ、時間データ）</title><content type='html'>&lt;br /&gt;
福岡市地下鉄の最短完乗ルートの検索。&lt;br /&gt;
路線図、乗車時間のデータを用意。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;■ 路線図 ■&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://ja.wikipedia.org/wiki/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB:Fukuoka_city_subway_map_JA.png&quot;&gt;Wikipedia - 福岡市地下鉄 路線図&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://subway.city.fukuoka.lg.jp/eki/route/index.html&quot;&gt;福岡市交通局 - 路線図&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6z55UsBakprVQXCAXZqxLfULm5-Fx-SFr82fqOf4NCjnxFmMMaUR3OZvJZ8iPN6QQYrg1rvMYdpcHiYNBA_s567RXsCBxEOSuHJcjZs7nfLngZ-PtnAhx6_ODS991ys0bKzLw16tQZrs5/s1600/%E7%A6%8F%E5%B2%A1%E5%B8%82%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;140&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6z55UsBakprVQXCAXZqxLfULm5-Fx-SFr82fqOf4NCjnxFmMMaUR3OZvJZ8iPN6QQYrg1rvMYdpcHiYNBA_s567RXsCBxEOSuHJcjZs7nfLngZ-PtnAhx6_ODS991ys0bKzLw16tQZrs5/s400/%E7%A6%8F%E5%B2%A1%E5%B8%82%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;3路線&lt;/b&gt;で構成され、&lt;b&gt;空港線&lt;/b&gt;と&lt;b&gt;箱崎線&lt;/b&gt;は&lt;b&gt;中州川端駅&lt;/b&gt;で接続。&lt;br /&gt;
空港線はJR筑肥線に乗り入れているが、今回は地下鉄線だけを対象とする。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;七隈線&lt;/b&gt;は&lt;b&gt;空港線&lt;/b&gt;と隣接しているが&lt;b&gt;同じ駅での接続は無い&lt;/b&gt;。&lt;br /&gt;
「&lt;u&gt;空港線や箱崎線へは一旦改札を出て、天神地下街を介して天神駅で乗り換えとなる。&lt;/u&gt;」とあり、また、「&lt;u&gt;改札内を出場してから120分以内に天神駅の改札内に入場する場合に限り、天神駅と当駅を同一駅扱いとし、営業キロを通算した運賃で乗車することができる。&lt;/u&gt;」とのこなので乗換駅として扱うことにする。&lt;br /&gt;
&lt;br /&gt;
空港線と七隈線で&lt;b&gt;駅名が異なる&lt;/b&gt;ことと&lt;b&gt;乗換え時間が掛かる&lt;/b&gt;ことから、天神駅～天神南駅の間は&lt;b&gt;徒歩&lt;/b&gt;の路線扱いでデータを用意することにする。&lt;br /&gt;
&lt;br /&gt;
移動時間はYahoo!の路線検索では&lt;b&gt;7分&lt;/b&gt;、Google Mapsの路線検索では&lt;b&gt;12分&lt;/b&gt;となっている。&lt;br /&gt;
大雑把だが&lt;b&gt;10分&lt;/b&gt;と想定。&lt;br /&gt;
別路線扱いとすることで、天神駅と天神南駅の両方で乗り換えが発生することになるので、乗換え×2回+移動時間ということになる。&lt;br /&gt;
&lt;br /&gt;
今回も乗換え時間は&lt;b&gt;10分&lt;/b&gt;とするので、空港線から七隈線への乗換えは&lt;b&gt;30分&lt;/b&gt;も掛かることになる。&lt;br /&gt;
徒歩10分の距離で30分は多過ぎると思われるし、同一駅での乗り換え時間を10分と設定していることを考えると、&lt;b&gt;10分+移動時間(10分)で20分程度が適当&lt;/b&gt;と思われる。&lt;br /&gt;
今のプログラムを使うために、&lt;b&gt;移動時間を0分&lt;/b&gt;と設定し、トータルで&lt;b&gt;乗換え時間20分&lt;/b&gt;となるようにする。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;■ 路線 ■&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
(1) 空港線&lt;br /&gt;
(2) 箱崎線&lt;br /&gt;
(3) 七隈線&lt;br /&gt;
(4) 天神地下街&lt;br /&gt;
&lt;br /&gt;
■ 駅 ■&lt;br /&gt;
(1) 姪浜、天神、中洲川端、福岡空港&lt;br /&gt;
(2) 中洲川端、貝塚&lt;br /&gt;
(3) 橋本、天神南&lt;br /&gt;
(4) 天神、天神南&lt;br /&gt;
駅は終端と乗換え駅のみ。&lt;br /&gt;
途中の駅は今回は省略。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;■ 乗車時間 ■&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
(1-1) 空港線：姪浜～天神、13分&lt;br /&gt;
(1-2) 空港線：天神～中洲川端、1分&lt;br /&gt;
(1-3) 空港線：中洲川端～福岡空港、9分&lt;br /&gt;
(2-1) 箱崎線：中洲川端～貝塚、10分&lt;br /&gt;
(3-1) 七隈線：橋本～天神南、24分&lt;br /&gt;
(4-1) 天神地下街：天神～天神南、0分&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;■ 乗換時間 ■&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
電車を降りて別の路線に乗り換える時間。&lt;br /&gt;
今回はすべて10(分)とする。&lt;br /&gt;
駅別、路線別の違いは考えない。&lt;br /&gt;
実際に乗り換えるために歩く時間と、次の電車の待ち時間を含めている。&lt;br /&gt;
&lt;br /&gt;
前述の通り、天神駅と天神南駅の乗り換えはトータルで20分になるように移動時間を0分として調整する。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;■ 折返時間 ■&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
終点に到着した後、同じ路線を戻るときの時間。&lt;br /&gt;
今回はすべて10(分)とする&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;■ スタート駅 ■&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
博多駅と、おそらく所要時間が最短になると思われる橋本駅をスタート駅とする。&lt;br /&gt;
札幌市営地下鉄と同様に、すべての駅をスタート駅にした結果も試すことにする。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
つづく。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/219228093228996214/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_07.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/219228093228996214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/219228093228996214'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_07.html' title='福岡市地下鉄（路線データ、時間データ）'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6z55UsBakprVQXCAXZqxLfULm5-Fx-SFr82fqOf4NCjnxFmMMaUR3OZvJZ8iPN6QQYrg1rvMYdpcHiYNBA_s567RXsCBxEOSuHJcjZs7nfLngZ-PtnAhx6_ODS991ys0bKzLw16tQZrs5/s72-c/%E7%A6%8F%E5%B2%A1%E5%B8%82%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-58998310367714244</id><published>2012-03-05T23:03:00.001+09:00</published><updated>2012-03-05T23:03:34.600+09:00</updated><title type='text'>横浜市営地下鉄、神戸市営地下鉄</title><content type='html'>&lt;a href=&quot;http://best-kanj.blogspot.com/2012/02/blog-post_27.html&quot;&gt;名古屋市営地下鉄以外で最短完乗ルートの検索&lt;/a&gt;では、3～5路線の地下鉄事業者、&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;札幌市営地下鉄、3路線&lt;/li&gt;
&lt;li&gt;都営地下鉄、4路線&lt;/li&gt;
&lt;li&gt;横浜市営地下鉄、3路線&lt;/li&gt;
&lt;li&gt;神戸市営地下鉄、4路線&lt;/li&gt;
&lt;li&gt;福岡市地下鉄、3路線&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
の5事業者について、「&lt;b&gt;次回から順次試していくことにする。&lt;/b&gt;」とした。&lt;br /&gt;
&lt;br /&gt;
ところが、実際にデータ作成のために調べてみると、横浜市営地下鉄には「&lt;b&gt;ブルーライン&lt;/b&gt;」と「&lt;b&gt;グリーンライン&lt;/b&gt;」の2路線しかない。&lt;br /&gt;
&lt;br /&gt;
もう一度、&lt;a href=&quot;http://ja.wikipedia.org/wiki/%E6%97%A5%E6%9C%AC%E3%81%AE%E5%9C%B0%E4%B8%8B%E9%89%84&quot;&gt;Wikipediaの一覧&lt;/a&gt;を見てみると、&lt;u&gt;1・3号線（ブルーライン）は一体的に運行しているので実質は路線数2&lt;/u&gt;と書かれている。&lt;br /&gt;
&lt;br /&gt;
同様に4路線の神戸市営地下鉄も、「&lt;b&gt;西神・山手線&lt;/b&gt;」と「&lt;b&gt;海岸線&lt;/b&gt;」の2路線しかない。&lt;br /&gt;
&lt;u&gt;西神延伸・西神・山手線は一体的に運行しているので実質は路線数2&lt;/u&gt;と書かれている。&lt;br /&gt;
&lt;br /&gt;
2路線の&lt;b&gt;最短完乗ルート検索&lt;/b&gt;はもちろん可能だけれど、あまり面白味が無い。&lt;br /&gt;
&lt;br /&gt;
福岡市地下鉄は3路線あるので、次は福岡市地下鉄の検索。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
つづく。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/58998310367714244/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_05.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/58998310367714244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/58998310367714244'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_05.html' title='横浜市営地下鉄、神戸市営地下鉄'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-7108595839670780944</id><published>2012-03-04T23:12:00.002+09:00</published><updated>2012-03-04T23:12:44.989+09:00</updated><title type='text'>都営地下鉄</title><content type='html'>札幌市営地下鉄の次は&lt;b&gt;都営地下鉄&lt;/b&gt;。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;浅草線&lt;/li&gt;
&lt;li&gt;三田線&lt;/li&gt;
&lt;li&gt;新宿線&lt;/li&gt;
&lt;li&gt;大江戸線&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
の4路線。&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
路線図はこの辺りから。&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://ja.wikipedia.org/wiki/%E9%83%BD%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84&quot;&gt;http://ja.wikipedia.org/wiki/%E9%83%BD%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.kotsu.metro.tokyo.jp/subway/line.pdf&quot;&gt;http://www.kotsu.metro.tokyo.jp/subway/line.pdf&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.kotsu.metro.tokyo.jp/subway/timetable/&quot;&gt;http://www.kotsu.metro.tokyo.jp/subway/timetable/&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKmseP1tIQgTn1jy0y0Y3hVGQfaYMhPYv5xp0VyUDtb40EpjaKRxhcN5KIgByeZFZnKQwQdZfdBDV4IwrwhiLnXXNEiLE2rGH-nexzjGV0x0PdUP8W6rX6RpMVzd_KGpCV5YP4zasz8V60/s1600/%E9%83%BD%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;183&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKmseP1tIQgTn1jy0y0Y3hVGQfaYMhPYv5xp0VyUDtb40EpjaKRxhcN5KIgByeZFZnKQwQdZfdBDV4IwrwhiLnXXNEiLE2rGH-nexzjGV0x0PdUP8W6rX6RpMVzd_KGpCV5YP4zasz8V60/s400/%E9%83%BD%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
4路線なので比較的簡単と考えて始めたけど...&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;浅草線&lt;/li&gt;
&lt;li&gt;三田線&lt;/li&gt;
&lt;li&gt;新宿線&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div&gt;
の3路線は特に問題ないけど問題は&lt;b&gt;大江戸線&lt;/b&gt;。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
大江戸線は光が丘～新宿の&lt;b&gt;放射部&lt;/b&gt;と、新宿から左回りに都庁前までの&lt;b&gt;環状部&lt;/b&gt;で構成されている。&lt;/div&gt;
&lt;div&gt;
環状部と言っても山手線、大阪環状線や名古屋の地下鉄名城線のような環状運転ではなく、数字の「&lt;b&gt;６&lt;/b&gt;」を横にしたような感じで折返し運転をしている。&lt;/div&gt;
&lt;div&gt;
これだけなら問題ないが、問題は&lt;b&gt;放射部の途中に都庁前駅がある&lt;/b&gt;こと。&lt;/div&gt;
&lt;div&gt;
環状部の終点の都庁前と同じ駅なのでここで&lt;b&gt;乗り換えができてしまう&lt;/b&gt;。&lt;/div&gt;
&lt;div&gt;
これをどう表現するのか。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
今のプログラムではこれが表現できない。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
放射部、環状部と言っても同じ大江戸線で直通運転なので路線は1つ。&lt;/div&gt;
&lt;div&gt;
今まで通に区間データを作ると、&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
(4-1) 光が丘～都庁前&lt;/div&gt;
&lt;div&gt;
(4-2) 都庁前～新宿(新宿線)&lt;/div&gt;
&lt;div&gt;
(4-3) 新宿～&lt;/div&gt;
&lt;div&gt;
(4-n) ～都庁前&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
と言った感じになるが、&lt;b&gt;放射部の都庁前駅&lt;/b&gt;と&lt;b&gt;環状部の終点の都庁前駅&lt;/b&gt;は繋がってないので、光が丘から都庁前を経由して環状部を右回りするルートはあり得ない。&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
これが表現できない。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;(案１) 放射部の都庁前駅と環状部の都庁前駅を別の駅として扱う&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;都庁前A駅&lt;/b&gt;と&lt;b&gt;都庁前B駅&lt;/b&gt;といった感じ。&lt;/div&gt;
&lt;div&gt;
これなら上記のような問題は無い。&lt;/div&gt;
&lt;div&gt;
ただし、乗換はできるので、それを表現する必要がある。&lt;/div&gt;
&lt;div&gt;
例えば、乗車時間0分の仮想路線を作って、都庁前A駅と都庁前B駅を繋ぐ。&lt;/div&gt;
&lt;div&gt;
今は乗換時間は一律10分にしているのでこの方法だと、都庁前駅での乗換時間が20分になってしまう。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;(案2) 上記(案1)+乗換時間を駅毎に設定でいるようにする&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
一律10分の乗換時間を、駅毎に別々に設定できるようにプログラムに機能追加する。&lt;/div&gt;
&lt;div&gt;
都庁前A駅と都庁前B駅は乗換時間は5分、その他は10分とすれば解決する。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
他の路線でも、実際には駅によって乗換時間も折返し時間も異なるはずなので、いずれは対応したいと思っている機能ではあるが、まだ、当面の目標の名古屋市営地下鉄全6線の最短完乗ルートの検索ができていないので、今の段階では優先度が低い。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;(案3) 光が丘～都庁前と、都庁前～都庁前を別の路線とする&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
単純に別路線とすると、直通運転でも乗換時間が発生してしまう。&lt;/div&gt;
&lt;div&gt;
複数路線を跨る直通運転に対応するようにプログラムに機能追加する。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
もう1つ、他の路線に乗換ができるが、駅名が異なるケースの対応も問題。&lt;/div&gt;
&lt;div&gt;
都営地下鉄では新宿線の馬喰横山駅と浅草線の東日本橋駅。&lt;/div&gt;
&lt;div&gt;
これもプログラムの機能追加が必要で、更に、データの持ち方の見直しも必要になってくる。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
今のところ1事業者だけの完乗ルートの検索をしているが、いずれは地域内の複数事業者で最短完乗ルートの検索ができるようにしたいと思っているので、大江戸線の(案3)での&lt;b&gt;複数路線の直通運転に対応する機能&lt;/b&gt;、&lt;b&gt;路線で駅名が異なる乗換に対応する機能&lt;/b&gt;は必要になってくるし、(案2)の&lt;b&gt;駅毎、路線毎の乗換時間の設定、折返し時間の設定機能&lt;/b&gt;も必要になってくると思う。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
いずれは対応したいが、今の段階では優先度を下げておきたい。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
ということで、都営地下鉄は路線データの作成で行き詰ってしまった。&lt;/div&gt;
&lt;div&gt;
何かいいアイデア、解決策を思い付くまで、機能強化するまで保留。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
つづく。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/7108595839670780944/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_04.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/7108595839670780944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/7108595839670780944'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_04.html' title='都営地下鉄'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKmseP1tIQgTn1jy0y0Y3hVGQfaYMhPYv5xp0VyUDtb40EpjaKRxhcN5KIgByeZFZnKQwQdZfdBDV4IwrwhiLnXXNEiLE2rGH-nexzjGV0x0PdUP8W6rX6RpMVzd_KGpCV5YP4zasz8V60/s72-c/%E9%83%BD%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-1335111936030984549</id><published>2012-03-01T23:52:00.003+09:00</published><updated>2012-03-01T23:52:58.589+09:00</updated><title type='text'>札幌市営地下鉄＋札幌市電～最短完乗ルート計算</title><content type='html'>さっそく、札幌市営地下鉄＋札幌市電の4路線で最短完乗ルートの計算をしてみた。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi61IIrT29G-BvfG4z7sNc5CTvrGojadtlWdt7VmtMBJuYEaUuYTZ6ctbAdeID5ySl628k-Gi38XpQ9_0O9EezBkgAgyQ6ZMT6-_7ou9AYYJYKFzqcu0CpIRL2Yo6-WnpwIQWQzbS0YkQuU/s1600/%25E6%259C%25AD%25E5%25B9%258C%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584_%25E5%25B8%2582%25E9%259B%25BB%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;236&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi61IIrT29G-BvfG4z7sNc5CTvrGojadtlWdt7VmtMBJuYEaUuYTZ6ctbAdeID5ySl628k-Gi38XpQ9_0O9EezBkgAgyQ6ZMT6-_7ou9AYYJYKFzqcu0CpIRL2Yo6-WnpwIQWQzbS0YkQuU/s400/%25E6%259C%25AD%25E5%25B9%258C%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584_%25E5%25B8%2582%25E9%259B%25BB%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;u&gt;さっぽろ駅スタート&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ3j_TmDkpcWy2Lg3y43z6vE8-i_wE9_lM01hBCJusaBNvPUjFla5li4yDOnfCAFQMhtV-kfGo7W7Vr5Oyo_BfEXrK5wfu3rvWB73rb_y-Xh4APkGzgLMdGk0OMEybt7_U8ULFKPa4w4MH/s1600/20120301_%E3%81%95%E3%81%A3%E3%81%BD%E3%82%8D.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;261&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ3j_TmDkpcWy2Lg3y43z6vE8-i_wE9_lM01hBCJusaBNvPUjFla5li4yDOnfCAFQMhtV-kfGo7W7Vr5Oyo_BfEXrK5wfu3rvWB73rb_y-Xh4APkGzgLMdGk0OMEybt7_U8ULFKPa4w4MH/s400/20120301_%E3%81%95%E3%81%A3%E3%81%BD%E3%82%8D.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
最短完乗ルート(所要時間&lt;b&gt;266分&lt;/b&gt;)は上記のルートを含めて&lt;b&gt;6ルート&lt;/b&gt;あった。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
地下鉄×3路線の最短完乗ルートの所要時間は&lt;b&gt;217分&lt;/b&gt;だったので&lt;b&gt;プラス49分&lt;/b&gt;で市電も含めて完乗できる。&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;u&gt;新さっぽろ駅スタート&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQMoyRvlV5VtsJT8S7WUtlOpHUcC6A7YsLlh2qGgL7eyGUYYjaQDqIgdNO38gJi9L0mAdh3UAGMTHPsj7Z0hXzYN6fea7wqkevV_lbNLqs0IGe9BWr3_Z7Owy80Vm05Rh0qf44Cka11WT1/s1600/20120301_%E6%96%B0%E3%81%95%E3%81%A3%E3%81%BD%E3%82%8D.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQMoyRvlV5VtsJT8S7WUtlOpHUcC6A7YsLlh2qGgL7eyGUYYjaQDqIgdNO38gJi9L0mAdh3UAGMTHPsj7Z0hXzYN6fea7wqkevV_lbNLqs0IGe9BWr3_Z7Owy80Vm05Rh0qf44Cka11WT1/s400/20120301_%E6%96%B0%E3%81%95%E3%81%A3%E3%81%BD%E3%82%8D.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
最短完乗ルート(所要時間&lt;b&gt;243分&lt;/b&gt;)は上記のルートを含めて&lt;b&gt;3ルート&lt;/b&gt;あった。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
地下鉄×3路線の最短完乗ルートの所要時間は&lt;b&gt;190分&lt;/b&gt;だったので、市電の乗車分は&lt;b&gt;プラス53分&lt;/b&gt;。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
地下鉄×3路線のときは、&lt;b&gt;2.9～17.5秒&lt;/b&gt;で計算できてたけど、今回はずいぶんと掛かった。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;さっぽろ駅&lt;/b&gt;スタートで&lt;b&gt;171.5(秒)&lt;/b&gt;、&lt;b&gt;新さっぽろ駅&lt;/b&gt;スタートで&lt;b&gt;39.9(秒)&lt;/b&gt;掛かっている。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
つづく。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/1335111936030984549/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_01.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/1335111936030984549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/1335111936030984549'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post_01.html' title='札幌市営地下鉄＋札幌市電～最短完乗ルート計算'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi61IIrT29G-BvfG4z7sNc5CTvrGojadtlWdt7VmtMBJuYEaUuYTZ6ctbAdeID5ySl628k-Gi38XpQ9_0O9EezBkgAgyQ6ZMT6-_7ou9AYYJYKFzqcu0CpIRL2Yo6-WnpwIQWQzbS0YkQuU/s72-c/%25E6%259C%25AD%25E5%25B9%258C%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584_%25E5%25B8%2582%25E9%259B%25BB%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-2071595151003689815</id><published>2012-03-01T22:48:00.003+09:00</published><updated>2012-03-01T22:48:51.548+09:00</updated><title type='text'>札幌市営地下鉄＋札幌市電</title><content type='html'>&lt;br /&gt;
札幌には地下鉄のほかに&lt;b&gt;札幌市電&lt;/b&gt;もある。&lt;br /&gt;
&lt;a href=&quot;http://www.city.sapporo.jp/st/index.html&quot;&gt;http://www.city.sapporo.jp/st/index.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;札幌市電&lt;/b&gt;は3路線。&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;一条線（西4丁目停留場～西15丁目停留場）&lt;/li&gt;
&lt;li&gt;山鼻西線（西15丁目停留場～中央図書館前停留場）&lt;/li&gt;
&lt;li&gt;山鼻線（中央図書館前停留場～すすきの停留場）&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
3路線あるが、1本で繋がっていて直通運転されているので&lt;b&gt;実質1路線&lt;/b&gt;と考えて良さそう。&lt;br /&gt;
&lt;br /&gt;
札幌市電を加えた&lt;b&gt;4路線&lt;/b&gt;でも&lt;b&gt;最短完乗ルート&lt;/b&gt;を計算してみることにする。&lt;br /&gt;
&lt;br /&gt;
地下鉄とは6駅/停留所で乗換えができるが、始点/終点の大通駅/西4丁目とすすきの駅でのみ乗り換えるものとする。&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi61IIrT29G-BvfG4z7sNc5CTvrGojadtlWdt7VmtMBJuYEaUuYTZ6ctbAdeID5ySl628k-Gi38XpQ9_0O9EezBkgAgyQ6ZMT6-_7ou9AYYJYKFzqcu0CpIRL2Yo6-WnpwIQWQzbS0YkQuU/s1600/%E6%9C%AD%E5%B9%8C%E5%B8%82%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84_%E5%B8%82%E9%9B%BB%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;236&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi61IIrT29G-BvfG4z7sNc5CTvrGojadtlWdt7VmtMBJuYEaUuYTZ6ctbAdeID5ySl628k-Gi38XpQ9_0O9EezBkgAgyQ6ZMT6-_7ou9AYYJYKFzqcu0CpIRL2Yo6-WnpwIQWQzbS0YkQuU/s400/%E6%9C%AD%E5%B9%8C%E5%B8%82%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84_%E5%B8%82%E9%9B%BB%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
追加したの路線データ、時間データは次の通り。（&lt;span style=&quot;color: blue;&quot;&gt;青字&lt;/span&gt;が追加・変更分）&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;■ 路線 ■&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
(1) 南北線&lt;/div&gt;
&lt;div&gt;
(2) 東西線&lt;/div&gt;
&lt;div&gt;
(3) 東豊線&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;(4) 市電&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;■ 駅 ■&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
(1) 麻生、さっぽろ、大通、&lt;span style=&quot;color: blue;&quot;&gt;すすきの&lt;/span&gt;、真駒内&lt;/div&gt;
&lt;div&gt;
(2) 宮の沢、大通、新さっぽろ&lt;/div&gt;
&lt;div&gt;
(3) 栄町、さっぽろ、大通、福住&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;(4) 大通、すすきの&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;■ 乗車時間 ■&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
(1-1) 南北線：麻生～さっぽろ、8分&lt;/div&gt;
&lt;div&gt;
(1-2) 南北線：さっぽろ～大通、1分&lt;/div&gt;
&lt;div&gt;
(1-3) 南北線：大通&lt;span style=&quot;color: blue;&quot;&gt;～すすきの、1分&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;(1-4) 南北線：すすきの～&lt;/span&gt;真駒内、&lt;span style=&quot;color: blue;&quot;&gt;15分&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
(2-1) 東西線：宮の沢～大通、15分&lt;/div&gt;
&lt;div&gt;
(2-2) 東西線：大通～新さっぽろ、20分&lt;/div&gt;
&lt;div&gt;
(3-1) 東豊線：栄町～さっぽろ、11分&lt;/div&gt;
&lt;div&gt;
(3-2) 東豊線：さっぽろ～大通、1分&lt;/div&gt;
&lt;div&gt;
(3-3) 東豊線：大通～福住、12分&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;(4-1) 市電：大通～すすきの、40分&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
つづく。&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/2071595151003689815/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/2071595151003689815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/2071595151003689815'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/03/blog-post.html' title='札幌市営地下鉄＋札幌市電'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi61IIrT29G-BvfG4z7sNc5CTvrGojadtlWdt7VmtMBJuYEaUuYTZ6ctbAdeID5ySl628k-Gi38XpQ9_0O9EezBkgAgyQ6ZMT6-_7ou9AYYJYKFzqcu0CpIRL2Yo6-WnpwIQWQzbS0YkQuU/s72-c/%E6%9C%AD%E5%B9%8C%E5%B8%82%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84_%E5%B8%82%E9%9B%BB%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-2295940539587852363</id><published>2012-02-29T23:26:00.001+09:00</published><updated>2012-02-29T23:29:54.806+09:00</updated><title type='text'>札幌市営地下鉄～最短完乗ルート計算２</title><content type='html'>&lt;br /&gt;
&lt;a href=&quot;http://best-kanj.blogspot.com/2012/02/blog-post_28.html&quot;&gt;前回&lt;/a&gt;は&lt;b&gt;さっぽろ駅&lt;/b&gt;スタートの場合と&lt;b&gt;新さっぽろ駅&lt;/b&gt;スタートの場合で&lt;b&gt;最短完乗ルート&lt;/b&gt;の検索を行なった。&lt;br /&gt;
結果は、&lt;b&gt;さっぽろ駅&lt;/b&gt;スタートの所要時間が&lt;b&gt;217分&lt;/b&gt;、&lt;b&gt;新さっぽろ駅&lt;/b&gt;スタートで&lt;b&gt;190分&lt;/b&gt;だった。&lt;br /&gt;
予想通り、&lt;b&gt;新さっぽろ駅&lt;/b&gt;スタートの場合の方が所要時間が短い&lt;b&gt;最短完乗ルート&lt;/b&gt;になったけど、果たして&lt;b&gt;&lt;u&gt;本当にこのルートが最短&lt;/u&gt;&lt;/b&gt;なんだろうか。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIB2jIY_Vnq-fhEzcpO8X1CssKh-wXX7KW4LbThwrSk05Yuggotr9tSmUB_dodDUc7cUunSIikZdTYY8uqgqcQ24hnUnzp_c3pMGfCjsSGpdpQyfAev_Pi2GOXVsOZpmfGZfwi4eZp9Neh/s1600/%25E6%259C%25AD%25E5%25B9%258C%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIB2jIY_Vnq-fhEzcpO8X1CssKh-wXX7KW4LbThwrSk05Yuggotr9tSmUB_dodDUc7cUunSIikZdTYY8uqgqcQ24hnUnzp_c3pMGfCjsSGpdpQyfAev_Pi2GOXVsOZpmfGZfwi4eZp9Neh/s400/%25E6%259C%25AD%25E5%25B9%258C%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
札幌市営地下鉄の場合、スタート駅の候補は&lt;b&gt;8駅&lt;/b&gt;。&lt;br /&gt;
せっかくなので&lt;b&gt;8駅&lt;/b&gt;すべてをスタート駅にして計算しみた。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi__GA7Dl_FftdDvafduR6Ep36kwZ2GAHDM8v-10kBwn6b049RWnmGdpNrkN1j5AHJ5cVScmhybuUPzsvIRXxMgAa-aU3lPLSkelRYxgk0kXhDhH5-E-t4Vct3mSNODAX57RJr5oyy2jAcT/s1600/20120229_%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%88%E9%A7%85%E5%88%A5%E5%AE%8C%E4%B9%97%E3%83%AB%E3%83%BC%E3%83%88.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi__GA7Dl_FftdDvafduR6Ep36kwZ2GAHDM8v-10kBwn6b049RWnmGdpNrkN1j5AHJ5cVScmhybuUPzsvIRXxMgAa-aU3lPLSkelRYxgk0kXhDhH5-E-t4Vct3mSNODAX57RJr5oyy2jAcT/s1600/20120229_%E3%82%B9%E3%82%BF%E3%83%BC%E3%83%88%E9%A7%85%E5%88%A5%E5%AE%8C%E4%B9%97%E3%83%AB%E3%83%BC%E3%83%88.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
前回計算した&lt;b&gt;新さっぽろ&lt;/b&gt;駅スタートは札幌市営地下鉄の最短完乗ルートだったが、もう1つ、同じ所要時間のルートがあった。&lt;br /&gt;
&lt;b&gt;真駒内&lt;/b&gt;駅スタートでゴール駅が新さっぽろ駅の&lt;b&gt;逆ルート&lt;/b&gt;。&lt;br /&gt;
&lt;br /&gt;
ほとんどの区間を2回乗っているけど、スタートとゴールの区間だけが1回乗車。&lt;br /&gt;
この区間が長いルートが最も効率がいい&lt;b&gt;最短完乗ルート&lt;/b&gt;。&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioGdDcWqrR9WP3nJiwnbvISjmUZrsdgmE9YsFheQXEzHXs4IUpQsoBDhxfpL7pNFp6nm3vqHW_p62u8yyTviAwo434YqtgkbwEpulJwD_ThzjTsMxJQBuMVACmC0TlN6AHZje5NimeY8Up/s1600/20120229_1_%25E9%25BA%25BB%25E7%2594%259F.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioGdDcWqrR9WP3nJiwnbvISjmUZrsdgmE9YsFheQXEzHXs4IUpQsoBDhxfpL7pNFp6nm3vqHW_p62u8yyTviAwo434YqtgkbwEpulJwD_ThzjTsMxJQBuMVACmC0TlN6AHZje5NimeY8Up/s400/20120229_1_%25E9%25BA%25BB%25E7%2594%259F.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmXvexnAal-xcZhP79rCRn7dRHP0l3QcQsLRk3mOX6B6JlANFqaeMpe0sRyGuyE_8ikXmw51wstMQ9w58MpNE5h48b6Wd5RjmH7epO0waKJa6mRUPgBqLBXfXB-05fWBjicJql302xc7b2/s1600/20120229_2_%25E3%2581%2595%25E3%2581%25A3%25E3%2581%25BD%25E3%2582%258D.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmXvexnAal-xcZhP79rCRn7dRHP0l3QcQsLRk3mOX6B6JlANFqaeMpe0sRyGuyE_8ikXmw51wstMQ9w58MpNE5h48b6Wd5RjmH7epO0waKJa6mRUPgBqLBXfXB-05fWBjicJql302xc7b2/s400/20120229_2_%25E3%2581%2595%25E3%2581%25A3%25E3%2581%25BD%25E3%2582%258D.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOjiWYLilOtB2a-YQ8htpkYKNFvu5nWQ4HqjK5JisXyibGEwKtxnOmriXkndCg8hHH1ERumezHvsXMQNqY5ajPhb8gnuxiI-MENVBfhN8bI7sPGHveHWpSwayiz-tkqZFNjtbq0F8X6j65/s1600/20120229_3_%25E5%25A4%25A7%25E9%2580%259A.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOjiWYLilOtB2a-YQ8htpkYKNFvu5nWQ4HqjK5JisXyibGEwKtxnOmriXkndCg8hHH1ERumezHvsXMQNqY5ajPhb8gnuxiI-MENVBfhN8bI7sPGHveHWpSwayiz-tkqZFNjtbq0F8X6j65/s400/20120229_3_%25E5%25A4%25A7%25E9%2580%259A.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6DdiJzOGPrxsbJDZDJzJLlwOw2kt3PmnnrHEheJ5DoTmYBwrGBdfQ-plx23Pj22PTaBd1_gnOHJlUSm8NOSN5A__Iqh3cOmxXoZrPpqLYY2_CTaISqC1E8N5Jnr6t-QUpVjU1hPFcAk0u/s1600/20120229_4_%25E7%259C%259F%25E9%25A7%2592%25E5%2586%2585.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6DdiJzOGPrxsbJDZDJzJLlwOw2kt3PmnnrHEheJ5DoTmYBwrGBdfQ-plx23Pj22PTaBd1_gnOHJlUSm8NOSN5A__Iqh3cOmxXoZrPpqLYY2_CTaISqC1E8N5Jnr6t-QUpVjU1hPFcAk0u/s400/20120229_4_%25E7%259C%259F%25E9%25A7%2592%25E5%2586%2585.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0qlWTFKTL_c7YpD1_QS_8LsqmiWpGm7rV_pnNkEjT3qrNmINze60gNJMmRtYnSUIEoNerOf6pX_GOyhXMoavg1YI2Oh4brZK2Mi0LnivIjfMYU52vY4tI2sRHet5oISrug0pYv8jpkv9m/s1600/20120229_5_%25E5%25AE%25AE%25E3%2581%25AE%25E6%25B2%25A2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0qlWTFKTL_c7YpD1_QS_8LsqmiWpGm7rV_pnNkEjT3qrNmINze60gNJMmRtYnSUIEoNerOf6pX_GOyhXMoavg1YI2Oh4brZK2Mi0LnivIjfMYU52vY4tI2sRHet5oISrug0pYv8jpkv9m/s400/20120229_5_%25E5%25AE%25AE%25E3%2581%25AE%25E6%25B2%25A2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbKZXXbP7eO_7wSJXEUZk0btNhyphenhyphenh7Jzrx0esuxCXOmQEyVmRGaF3QpSi4T-_18BchHAgv2nJQm4b-ifP8mgpBV8gKL84QqoRwNfp7N49AaMaMAvvUBUwKtkvF0-LxFPhd2KnyDubNEky3s/s1600/20120229_6_%25E6%2596%25B0%25E3%2581%2595%25E3%2581%25A3%25E3%2581%25BD%25E3%2582%258D.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbKZXXbP7eO_7wSJXEUZk0btNhyphenhyphenh7Jzrx0esuxCXOmQEyVmRGaF3QpSi4T-_18BchHAgv2nJQm4b-ifP8mgpBV8gKL84QqoRwNfp7N49AaMaMAvvUBUwKtkvF0-LxFPhd2KnyDubNEky3s/s400/20120229_6_%25E6%2596%25B0%25E3%2581%2595%25E3%2581%25A3%25E3%2581%25BD%25E3%2582%258D.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikEBzYsX9CJLLjPgtwunfSw9Lt7MGxKNeoy5meJvcoFMuAQW4_PbTRyK9ZcK1RKJtakcqBJHw2I70alUo6I63wXcWkoIhx2J5ax2JZcMuhmFDZVgyV1BkiBC5bl7sTN21uu0MDgSwwkDwY/s1600/20120229_7_%25E6%25A0%2584%25E7%2594%25BA.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikEBzYsX9CJLLjPgtwunfSw9Lt7MGxKNeoy5meJvcoFMuAQW4_PbTRyK9ZcK1RKJtakcqBJHw2I70alUo6I63wXcWkoIhx2J5ax2JZcMuhmFDZVgyV1BkiBC5bl7sTN21uu0MDgSwwkDwY/s400/20120229_7_%25E6%25A0%2584%25E7%2594%25BA.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp6lGFYchmMT66nbH1oS_Ml2xZuRJc4weU8-DXAtZmufo2tgjTZi1kAjDpZ_D5LBiX6MxWEpLDiInNucSaLwlHq7Ltpv7QJ4Rm69B2u4jR9Fi904pYE2tdu2SMqC27nLu7s3DKFQ-ozRPS/s1600/20120229_8_%25E7%25A6%258F%25E4%25BD%258F.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp6lGFYchmMT66nbH1oS_Ml2xZuRJc4weU8-DXAtZmufo2tgjTZi1kAjDpZ_D5LBiX6MxWEpLDiInNucSaLwlHq7Ltpv7QJ4Rm69B2u4jR9Fi904pYE2tdu2SMqC27nLu7s3DKFQ-ozRPS/s400/20120229_8_%25E7%25A6%258F%25E4%25BD%258F.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
つづく。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/2295940539587852363/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_29.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/2295940539587852363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/2295940539587852363'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_29.html' title='札幌市営地下鉄～最短完乗ルート計算２'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIB2jIY_Vnq-fhEzcpO8X1CssKh-wXX7KW4LbThwrSk05Yuggotr9tSmUB_dodDUc7cUunSIikZdTYY8uqgqcQ24hnUnzp_c3pMGfCjsSGpdpQyfAev_Pi2GOXVsOZpmfGZfwi4eZp9Neh/s72-c/%25E6%259C%25AD%25E5%25B9%258C%25E5%25B8%2582%25E5%2596%25B6%25E5%259C%25B0%25E4%25B8%258B%25E9%2589%2584%25EF%25BC%259A%25E8%25B7%25AF%25E7%25B7%259A%25E5%259B%25B3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-994436971857027481</id><published>2012-02-28T23:35:00.000+09:00</published><updated>2012-02-29T00:08:47.947+09:00</updated><title type='text'>札幌市営地下鉄～最短完乗ルート計算</title><content type='html'>&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;a href=&quot;http://best-kanj.blogspot.com/2012/02/blog-post_3859.html&quot;&gt;札幌市営地下鉄の計算用のデータ（路線データ、時間データ）を準備した&lt;/a&gt;ので実際に、最短完乗ルートを計算してみた。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;3路線、乗換駅は2駅なので比較的簡単に結果が出ると思われる。&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIB2jIY_Vnq-fhEzcpO8X1CssKh-wXX7KW4LbThwrSk05Yuggotr9tSmUB_dodDUc7cUunSIikZdTYY8uqgqcQ24hnUnzp_c3pMGfCjsSGpdpQyfAev_Pi2GOXVsOZpmfGZfwi4eZp9Neh/s1600/%E6%9C%AD%E5%B9%8C%E5%B8%82%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIB2jIY_Vnq-fhEzcpO8X1CssKh-wXX7KW4LbThwrSk05Yuggotr9tSmUB_dodDUc7cUunSIikZdTYY8uqgqcQ24hnUnzp_c3pMGfCjsSGpdpQyfAev_Pi2GOXVsOZpmfGZfwi4eZp9Neh/s400/%E6%9C%AD%E5%B9%8C%E5%B8%82%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;u&gt;&lt;b&gt;まずはスタート駅をさっぽろ駅&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9z4Y67nY6Lm8fjGDhws4ZvD_RnsXQshpEiKSM3HguebpOQ1PBt5xhswob_bVBWbdogyxyMIAVLMBXhSNXT-MJrdXQdVoYHY7pihxd_E0_nLn_lFc_ogEy9MK6mWW-Cx24MsUxDWE34D4b/s1600/20120228_%E6%9C%AD%E5%B9%8C.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9z4Y67nY6Lm8fjGDhws4ZvD_RnsXQshpEiKSM3HguebpOQ1PBt5xhswob_bVBWbdogyxyMIAVLMBXhSNXT-MJrdXQdVoYHY7pihxd_E0_nLn_lFc_ogEy9MK6mWW-Cx24MsUxDWE34D4b/s400/20120228_%E6%9C%AD%E5%B9%8C.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;計算時間は&lt;b&gt;13.8秒&lt;/b&gt;。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;ルートの所要時間は&lt;b&gt;217分&lt;/b&gt;で、単純な乗車時間の合計84分&lt;b&gt;2.6倍&lt;/b&gt;。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;放射状に延びる路線を中心駅からスタートしているので、ほぼ全線について&lt;b&gt;行って戻る&lt;/b&gt;ために2倍。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;これに、折り返しが5回で50分と乗換え時間が掛かるため。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;最短完乗ルートは上記画面の結果以外に&lt;b&gt;7ルート&lt;/b&gt;あった。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;乗車の順番が違うだけで、所要時間217分は同じ。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;u&gt;&lt;b&gt;続いて新さっぽろ駅スタート&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj60wDlB-1igaxgGuy9TJi0ZTFyJJH8RSCtemwrWMGgi_3DihRVgCs9WDz5CHWRcyuDWC2C5B9J6Ro9bUZ-eqp6k-9HSz65NLxDy-_fbLH7OFM_gMQn-Y127xbiSqqs15d7voXR7gPwGO4z/s1600/20120228_%E6%96%B0%E3%81%95%E3%81%A3%E3%81%BD%E3%82%8D.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj60wDlB-1igaxgGuy9TJi0ZTFyJJH8RSCtemwrWMGgi_3DihRVgCs9WDz5CHWRcyuDWC2C5B9J6Ro9bUZ-eqp6k-9HSz65NLxDy-_fbLH7OFM_gMQn-Y127xbiSqqs15d7voXR7gPwGO4z/s400/20120228_%E6%96%B0%E3%81%95%E3%81%A3%E3%81%BD%E3%82%8D.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;計算時間は僅か&lt;b&gt;3.2秒&lt;/b&gt;。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;ルートの所要時間は&lt;b&gt;190分&lt;/b&gt;だった。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;さっぽろ駅&lt;/b&gt;スタートの場合と異なり、こちらは最短完乗ルートは上記の1ルートだけ。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;札幌市営地下鉄では&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;名古屋市営地下鉄と違う、興味深い結果になった。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;計算時間は&lt;b&gt;13.8秒&lt;/b&gt;と&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;3.2&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;秒で&lt;/b&gt;今まで改善してきた効果が現れているが、逆にこれだけ短時間で結果が出るならここまでプログラムの改善をする必要は無いのかもしれない。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;数分程度で計算できれば実用性という面(このプログラムに実用性があるかどかという本質は別として)では充分なので。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;最初に、名古屋市営地下鉄の&lt;b&gt;全6路線の最短完乗ルートを検索&lt;/b&gt;するために作り始めたプログラム。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;まだ完成していないけど、ある程度の高めの目標があったから&lt;b&gt;改善に取り組むモチベーションを維持&lt;/b&gt;できてきた。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;最初から簡単に結果が出ていたら、ここまで改善しなかったと思う。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;つづく。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/994436971857027481/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_28.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/994436971857027481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/994436971857027481'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_28.html' title='札幌市営地下鉄～最短完乗ルート計算'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIB2jIY_Vnq-fhEzcpO8X1CssKh-wXX7KW4LbThwrSk05Yuggotr9tSmUB_dodDUc7cUunSIikZdTYY8uqgqcQ24hnUnzp_c3pMGfCjsSGpdpQyfAev_Pi2GOXVsOZpmfGZfwi4eZp9Neh/s72-c/%E6%9C%AD%E5%B9%8C%E5%B8%82%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-4733621149797502065</id><published>2012-02-27T23:57:00.000+09:00</published><updated>2012-02-27T23:57:30.753+09:00</updated><title type='text'>札幌市営地下鉄（路線データ、時間データ）</title><content type='html'>&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;名古屋の時と同じように、路線図、乗車時間のデータを用意。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;u style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;■ 路線図 ■&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;a href=&quot;http://ja.wikipedia.org/wiki/%E6%9C%AD%E5%B9%8C%E5%B8%82%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84&quot;&gt;Wikipedia - 札幌市営地下鉄&lt;/a&gt;、&lt;a href=&quot;http://ja.wikipedia.org/wiki/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB:Sapporo_Subway_Map_jp_tol.svg&quot;&gt;路線図&lt;/a&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;a href=&quot;http://www.city.sapporo.jp/st/subway/route_time/route_time.html&quot;&gt;札幌市 地下鉄路線図&lt;/a&gt;&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJcNG7_RxA3EEnHS5sHcQQzrECK0-K2_lHiszQHwuUJe8z6IJwzxuqsuI3FOvLNHSo8UKrJGSDmCPWrUhz2TKoYJGRcozUEPSnwLEwBgxFt9m_wxry1wkRU1vp3hHZF4MYC7q63eJiNA4t/s1600/%E6%9C%AD%E5%B9%8C%E5%B8%82%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJcNG7_RxA3EEnHS5sHcQQzrECK0-K2_lHiszQHwuUJe8z6IJwzxuqsuI3FOvLNHSo8UKrJGSDmCPWrUhz2TKoYJGRcozUEPSnwLEwBgxFt9m_wxry1wkRU1vp3hHZF4MYC7q63eJiNA4t/s400/%E6%9C%AD%E5%B9%8C%E5%B8%82%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;　&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;大通駅で全3路線、さっぽろ駅で2路線の乗換ができる。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;u&gt;&lt;b&gt;■ 路線 ■&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(1) 南北線&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(2) 東西線&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(3) 東豊線&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;u&gt;&lt;b&gt;■ 駅 ■&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(1) 麻生、さっぽろ、大通、真駒内&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(2) 宮の沢、大通、新さっぽろ&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(3) 栄町、さっぽろ、大通、福住&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;駅は終端と乗換え駅のみ。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;途中の駅は今回は省略。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;u&gt;&lt;b&gt;■ 乗車時間 ■&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(1-1) 南北線：麻生～さっぽろ、8分&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(1-2) 南北線：さっぽろ～大通、1分&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(1-3) 南北線：大通～真駒内、16分&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(2-1) 東西線：宮の沢～大通、15分&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(2-2) 東西線：大通～新さっぽろ、20分&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(3-1) 東豊線：栄町～さっぽろ、11分&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(3-2) 東豊線：さっぽろ～大通、1分&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(3-3) 東豊線：大通～福住、12分&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;u&gt;&lt;b&gt;■ 乗換時間 ■&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;電車を降りて別の路線に乗り換える時間。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;名古屋と同じく、今回は&lt;b&gt;すべて10(分)&lt;/b&gt;とする。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;駅別、路線別の違いは今回は考えない。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;実際に乗り換えるために歩く時間と、次の電車の待ち時間を含めている。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;南北線と東豊線は&lt;b&gt;さっぽろ駅&lt;/b&gt;から&lt;b&gt;すすきの辺り&lt;/b&gt;まで並行していて、&lt;b&gt;さっぽろ駅&lt;/b&gt;と&lt;b&gt;大通駅&lt;/b&gt;では路線の乗換ができるが、地図を見ると南北線と東豊線は2街区離れている。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;乗換時間10分というのが妥当なのか、良く判らない。&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;u&gt;&lt;b&gt;■ 折返時間 ■&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;終点に到着した後、同じ路線を戻るときの時間。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;名古屋と同じく、今回は&lt;b&gt;すべて10(分)&lt;/b&gt;とする &lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;u&gt;&lt;b&gt;■ スタート駅 ■&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;JR札幌駅(函館本線)がある&lt;b&gt;さっぽろ駅&lt;/b&gt;をスタート駅とする。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;もう1つ、おそらく所要時間が最短になると思われる&lt;b&gt;新さっぽろ駅&lt;/b&gt;もスタート駅とする。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;札幌市営地下鉄特有の条件もあると思いますが、今回は上記の条件で。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;つづく。&lt;/span&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/4733621149797502065/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_3859.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/4733621149797502065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/4733621149797502065'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_3859.html' title='札幌市営地下鉄（路線データ、時間データ）'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJcNG7_RxA3EEnHS5sHcQQzrECK0-K2_lHiszQHwuUJe8z6IJwzxuqsuI3FOvLNHSo8UKrJGSDmCPWrUhz2TKoYJGRcozUEPSnwLEwBgxFt9m_wxry1wkRU1vp3hHZF4MYC7q63eJiNA4t/s72-c/%E6%9C%AD%E5%B9%8C%E5%B8%82%E5%96%B6%E5%9C%B0%E4%B8%8B%E9%89%84%EF%BC%9A%E8%B7%AF%E7%B7%9A%E5%9B%B3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-463109994155403918</id><published>2012-02-27T22:45:00.002+09:00</published><updated>2012-03-05T23:10:34.089+09:00</updated><title type='text'>名古屋市営地下鉄以外で最短完乗ルートの検索</title><content type='html'>&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;今のプログラムでは、4～5路線程度まで最短完乗ルートの検索ができる。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;名古屋市営地下鉄の全6路線の最短完乗ルートの検索のために作り始めたプログラムだけど、なかなか6路線の検索に辿り着けない。(&lt;a href=&quot;http://best-kanj.blogspot.com/2012/02/6.html&quot;&gt;全6路線の最短完乗ルートの検索に向けて&lt;/a&gt; を参照）&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;ここでプログラムの開発/改善を一休みして、名古屋以外の地下鉄で最短完乗ルートの検索をしてみようと思う。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;特に地下鉄に拘る訳じゃないけど、もともと地下鉄で始めたので。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;Wikipediaで調べてみると、日本には公営で10事業者、民間で6事業者が地下鉄を運行している。&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://ja.wikipedia.org/wiki/%E6%97%A5%E6%9C%AC%E3%81%AE%E5%9C%B0%E4%B8%8B%E9%89%84&quot;&gt;Wikipedia - 日本の地下鉄&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;1路線、2路線ではプログラムを作って検索する必要もないので3路線以上。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;現時点では5路線が限界なので、3～5路線で絞ると次の5事業者。&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;a href=&quot;http://best-kanj.blogspot.com/2012/02/blog-post_3859.html&quot;&gt;札幌市営地下鉄、3路線&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;都営地下鉄、4路線&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;横浜市営地下鉄、3路線&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;神戸市営地下鉄、4路線&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;福岡市地下鉄、3路線 &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;次回から順次試していくことにする。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;名古屋市営地下鉄の6路線の最短完乗ルートの検索ができたら、&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;大阪市営地下鉄、8路線&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;東京メトロ、9路線&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;も試してみたい。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;更に、&lt;b&gt;東京の地下鉄、都営地下鉄と東京メトロを合わせた合わせた13路線&lt;/b&gt;も試してみたい。 &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;つづく。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;u&gt;追記 - 2012年3月5日&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;横浜市営地下鉄の3路線は「ブルーライン」と「グリーンライン」の実質2路線。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;神戸市営地下鉄の4路線も、「西神・山手線」と「海岸線」の実質2路線。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;であることに気が付いた。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;ちゃんとWikipediaの一覧に書いてあるのに見落としてた。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;ということで、最短完乗ルートの検索対象からは除外することにた。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/463109994155403918/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_27.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/463109994155403918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/463109994155403918'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_27.html' title='名古屋市営地下鉄以外で最短完乗ルートの検索'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-705372692905558476</id><published>2012-02-26T22:08:00.001+09:00</published><updated>2012-03-10T23:33:01.266+09:00</updated><title type='text'>改善：最短区間数に満たないルートを評価対象外にする</title><content type='html'>&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;今のプログラムでは、5路線で45分とか200分掛かる。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;前回の検証で、名古屋市営地下鉄の全6路線の最短完乗ルートの検索には&lt;b&gt;150日&lt;/b&gt;もの時間が掛かるという予測。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;抜本的な改善が必要ではあるけど、まずは今のプログラムを少しでも速くするためにプログラムコードを見直してみた。&lt;/span&gt;&lt;br /&gt;
&lt;u style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/u&gt;&lt;br /&gt;
&lt;u style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;ルートの評価、時間の計算に掛かるコストを削減&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;例えば、東山線と桜通線に限定すると路線は次のようになる。&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyVeKNXY80JHRYM3cWCa4Y3wi_-1U0PhMzk8lbhYP95cDwF5p81-2vSRQcJVXp44Z9tyFV6L_e702foar1dxMrmIkuL6oLdbIXuC7gtFufE1aMKBbf72OitJGxVDc9BMXneWYO9rhtb4XC/s1600/20120226_%E8%B7%AF%E7%B7%9A%E5%9B%B3_2%E8%B7%AF%E7%B7%9A_HS.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;141&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyVeKNXY80JHRYM3cWCa4Y3wi_-1U0PhMzk8lbhYP95cDwF5p81-2vSRQcJVXp44Z9tyFV6L_e702foar1dxMrmIkuL6oLdbIXuC7gtFufE1aMKBbf72OitJGxVDc9BMXneWYO9rhtb4XC/s400/20120226_%E8%B7%AF%E7%B7%9A%E5%9B%B3_2%E8%B7%AF%E7%B7%9A_HS.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;この2路線は2ヵ所で交差していて乗換えができる。&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;それぞれに終端駅が2駅、合計4駅の終端駅がある&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;2路線で6区間あるので(上図参照)、最低でも6区間のルートでないと完全乗車ルートにはならない。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;更に、終端駅では折り返しをするので、4駅の折り返して4区間余分に乗車する必要があるので6+4で10区間。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;でも、スタート駅を終端駅にすれば、その駅での折り返しは不要。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;更に、ゴール駅も終端駅のルートなら、その駅での折り返しも不要。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;そう考えると、2区間少ないルートも成立する。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;6+4-2 = 8区間&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;8区間がこの路線図での完乗ルートの最短区間数&lt;/b&gt;ということになる。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;つまり、&lt;b&gt;作成したルートが8区間未満なら、その路線を評価(所要時間の計算や比較)をする必要が無い&lt;/b&gt;。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;他のケースでも同様。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;東山線と名城線(環状線)だと路線は次のようになる。&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIdRw4z7fM00o13YLT5W0pFX9D9MDYzrdpnNktA4moCAZW9EsTUSyJXoetWBk8qYlijcgWuhpVlmrC7vK5R_ZcSvUdE64c_mwZec6xvTHCIBzU9lrSnTOuXMVi9P-4oOs-ogPwsLYh3Njx/s1600/20120226_%E8%B7%AF%E7%B7%9A%E5%9B%B3_2%E8%B7%AF%E7%B7%9A_HM.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;141&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIdRw4z7fM00o13YLT5W0pFX9D9MDYzrdpnNktA4moCAZW9EsTUSyJXoetWBk8qYlijcgWuhpVlmrC7vK5R_ZcSvUdE64c_mwZec6xvTHCIBzU9lrSnTOuXMVi9P-4oOs-ogPwsLYh3Njx/s400/20120226_%E8%B7%AF%E7%B7%9A%E5%9B%B3_2%E8%B7%AF%E7%B7%9A_HM.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;この2路線は5区間で構成されていて、2ヵ所で交差していて乗換えができる。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;終端駅は東山線に2駅だけで、名城線には無い。&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;よって、5+2-2=5で、最低5区間でルートが成立。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;この路線図での完乗ルートの最短区間数は5区間。&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;u&gt;&lt;b&gt;プログラムを改善&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;最短区間数に満たないルートを評価の対象外にするようにプログラムを改善。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;改善前、3路線(東山線、桜通線、名城線)&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVgejFp-qqherBV-inK0sUxIy_eb9UmLy98qH9xB9TKPFeIJZXeRQg1GTemLTTH_jCmuAV4cFMFUQpM8y2rvhuBm9qe4izyqsfEmMZ30R6hUShxUvaO2kLOcWJgjUuDLRnL7zfw6zoXqAV/s1600/20120226_v0_8_old.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVgejFp-qqherBV-inK0sUxIy_eb9UmLy98qH9xB9TKPFeIJZXeRQg1GTemLTTH_jCmuAV4cFMFUQpM8y2rvhuBm9qe4izyqsfEmMZ30R6hUShxUvaO2kLOcWJgjUuDLRnL7zfw6zoXqAV/s400/20120226_v0_8_old.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;改善後、3路線(東山線、桜通線、名城線)&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWH5DzqncobUpWyajdRFMi70knY9oVNSfu4rzf7RC5fR-37hN6iqSu0a_LKLzBWlHAZKjg-TYpkGbOPBJz-oYGg-uRaczbXHmqWJNjBr6qT1OGUs0Dw4XNNPC3wdWw-UaXjJWvsC03pLSx/s1600/20120226_v0_9_new.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWH5DzqncobUpWyajdRFMi70knY9oVNSfu4rzf7RC5fR-37hN6iqSu0a_LKLzBWlHAZKjg-TYpkGbOPBJz-oYGg-uRaczbXHmqWJNjBr6qT1OGUs0Dw4XNNPC3wdWw-UaXjJWvsC03pLSx/s400/20120226_v0_9_new.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;計算結果は同じ。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;計算時間は、&lt;b&gt;改善前が218.1秒&lt;/b&gt;、&lt;b&gt;改善後が217.9秒&lt;/b&gt;。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;改善効果は&lt;b&gt;わずか0.1%弱&lt;/b&gt;。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;最短区間数に満たないルートを&lt;b&gt;評価の対象外&lt;/b&gt;にしたことによる&lt;b&gt;コストの減少&lt;/b&gt;と、&lt;b&gt;評価の対象にするかどうかの判断を行うコスト&lt;/b&gt;がほとんど変わらないということなんだろうか。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;それとも、プログラムの改善方法に問題があるのだろうか。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;残念ながら、この改善の効果はほとんど無かった。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;つづく。&lt;/span&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/705372692905558476/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_26.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/705372692905558476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/705372692905558476'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_26.html' title='改善：最短区間数に満たないルートを評価対象外にする'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyVeKNXY80JHRYM3cWCa4Y3wi_-1U0PhMzk8lbhYP95cDwF5p81-2vSRQcJVXp44Z9tyFV6L_e702foar1dxMrmIkuL6oLdbIXuC7gtFufE1aMKBbf72OitJGxVDc9BMXneWYO9rhtb4XC/s72-c/20120226_%E8%B7%AF%E7%B7%9A%E5%9B%B3_2%E8%B7%AF%E7%B7%9A_HS.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-2514488217973285869</id><published>2012-02-25T15:17:00.001+09:00</published><updated>2012-02-25T15:17:19.459+09:00</updated><title type='text'>全6路線の最短完乗ルートの検索に向けて</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;http://best-kanj.blogspot.com/2012/02/2.html&quot; style=&quot;background-color: white; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;前回の計算&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;で、5路線、東山線、名城線、名港線、鶴舞線、上飯田線の最短完乗ルートの計算に&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;約45分&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;掛かった。&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;目標は名古屋市営地下鉄の全6路線の最短完乗ルートの検索。&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;上記の5路線に桜通線を加えるだけだけど、プログラムを動かすといつまでたっても計算が終わらない。&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;どこのくら時間が掛かるのかを予想してみることにした。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;今のプログラムで何とか5路線までは計算できる。&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;4路線、東山線、名城線、名港線、上飯田線と、これに桜通線を加えた5路線で計算時間とルート数を比較。&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;u&gt;4路線、東山線、名城線、名港線、上飯田線&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjELLYal3o-egbJ0X2ZHBAX9SpvmwMMQNn1cZrgzRj8smSpsE5HepZMlEcGP95S9Oon9eG29htjMV2WDjilMeidgXhOVdMxKQidqU9bZVg39SlDqOHZRToCGeH85BeOKbzUgd2aC-HxzOyb/s1600/20120225-2_v0_8_4Line.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjELLYal3o-egbJ0X2ZHBAX9SpvmwMMQNn1cZrgzRj8smSpsE5HepZMlEcGP95S9Oon9eG29htjMV2WDjilMeidgXhOVdMxKQidqU9bZVg39SlDqOHZRToCGeH85BeOKbzUgd2aC-HxzOyb/s400/20120225-2_v0_8_4Line.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;u&gt;５路線、東山線、名城線、名港線、上飯田線&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAHliVGHrFo88H-fspIt2EBAO2Z5CiQ90CLw7_8kUr0rw2n2F0pk65p-6qqKrtgSmnu-R6Grn-Avmj6PobAAGEZrXAmq9sryXBTqwV-UC9-7qYPr4zMZWtr2h0Lu0gL0wrfRGVyNYjjlse/s1600/20120225-2_v0_8_5Line.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;286&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAHliVGHrFo88H-fspIt2EBAO2Z5CiQ90CLw7_8kUr0rw2n2F0pk65p-6qqKrtgSmnu-R6Grn-Avmj6PobAAGEZrXAmq9sryXBTqwV-UC9-7qYPr4zMZWtr2h0Lu0gL0wrfRGVyNYjjlse/s400/20120225-2_v0_8_5Line.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;計算時間と検索ルート数は次の通り。&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUUzzHGYHCBPzJdA6jRQ8UhdOYCk1J47jaltQEwxOOqG_-Mb_YJsFWwERt5BjDD-nIOpHLEXvo1DtgAWbIJz93HMAGS7n0ii5xRl1qhFWxms-MpWghnw1ELKmh8ulCNdrvq_-xDiat_8WI/s1600/20120225-2_%E8%A1%A81.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUUzzHGYHCBPzJdA6jRQ8UhdOYCk1J47jaltQEwxOOqG_-Mb_YJsFWwERt5BjDD-nIOpHLEXvo1DtgAWbIJz93HMAGS7n0ii5xRl1qhFWxms-MpWghnw1ELKmh8ulCNdrvq_-xDiat_8WI/s1600/20120225-2_%E8%A1%A81.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;4路線に桜通線を加えることで、&lt;b&gt;計算時間は約4800倍&lt;/b&gt;、&lt;b&gt;検索ルート数は約3000倍以上&lt;/b&gt;になっている。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;同じ5路線でも鶴舞線を桜通線に変えただけで計算時間が45分から200分、4.4倍になった。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;区間数が、鶴舞線の6区間に対して、桜通線は7区間で1区間多いためと思われる。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;1区間増えるとそこでの分岐が1回増えるので、他路線との交差の場合は単純計算で4倍。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;4.4倍というのは妥当なところと言えそう。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;前回の桜通線を除く5路線での計算時間は約45分(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;2707.3秒)、ルート数は230万(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;2,304,666)だった。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;これに、桜通線を加えるには上記の比率、&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;計算時間は4800倍、ルート数は3000倍する。&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioTJIA3Q52sjA9qHRh8Ho3aiN2mrrph2iMmoPdsHrza0G0fbpHSDcfT629TvKTjuwTy0pFhWHYnkfHmRZIrxwCFrJtV3d28WAxkRbFMg8AtAskc9XhQBdxU9RSkTpoxStEjTrYJ07gTSPO/s1600/20120225-2_%E8%A1%A82.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioTJIA3Q52sjA9qHRh8Ho3aiN2mrrph2iMmoPdsHrza0G0fbpHSDcfT629TvKTjuwTy0pFhWHYnkfHmRZIrxwCFrJtV3d28WAxkRbFMg8AtAskc9XhQBdxU9RSkTpoxStEjTrYJ07gTSPO/s1600/20120225-2_%E8%A1%A82.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;全6路線の計算時間は計算時間は&lt;b&gt;21.6万分(=150日)&lt;/b&gt;、計算ルート数は&lt;b&gt;69億&lt;/b&gt;と予想できる。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;名古屋市営地下鉄の全6路線の最短完乗ルートの検索は、今のプログラムではまだまだ無理そう。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;つづく。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/2514488217973285869/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/02/6.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/2514488217973285869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/2514488217973285869'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/02/6.html' title='全6路線の最短完乗ルートの検索に向けて'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjELLYal3o-egbJ0X2ZHBAX9SpvmwMMQNn1cZrgzRj8smSpsE5HepZMlEcGP95S9Oon9eG29htjMV2WDjilMeidgXhOVdMxKQidqU9bZVg39SlDqOHZRToCGeH85BeOKbzUgd2aC-HxzOyb/s72-c/20120225-2_v0_8_4Line.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-1622922580401593516</id><published>2012-02-25T01:33:00.002+09:00</published><updated>2012-02-25T01:33:25.217+09:00</updated><title type='text'>改善：ルートを削減～引き換えしルートを検索しない～その2</title><content type='html'>&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;先日の改善版プログラム。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;東山線、名城線、名港線、鶴舞線の4路線を10分弱で計算したけど、ちょっと時間を掛けて5路線のルート計算をしてみることにした。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;桜通線を加えるのは無理そうなので、東山線、名城線、名港線、 鶴舞線、上飯田線の5路線で計算。&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNPDIEsqZg1TJkRc9f1Vac88QGfRdlZru7fogpUuaPlGKEK6P2OUL2uSMFDxlv6YID4rOaKS1NFFac1kKlaGTx05lvD1VpZ9aDFyWf1RvA80MQofUJabieV0oqNzHCtLASuh6R0BAGIKrH/s1600/20120225_v0_8_5Line.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;282&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNPDIEsqZg1TJkRc9f1Vac88QGfRdlZru7fogpUuaPlGKEK6P2OUL2uSMFDxlv6YID4rOaKS1NFFac1kKlaGTx05lvD1VpZ9aDFyWf1RvA80MQofUJabieV0oqNzHCtLASuh6R0BAGIKrH/s400/20120225_v0_8_5Line.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;計算時間は2707.3秒。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;45分&lt;/b&gt;で最短完乗ルートが計算できた。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;検索ルート数は、4路線(東山線、名城線、名港線、 鶴舞線)の時は&lt;/span&gt;
&lt;b style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;529,845(53万)&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;だったけど、5路線だと &lt;b&gt;2,304,666(230万)&lt;/b&gt;にもなている。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;上飯田線って1区間だけで、名城線の平安通駅から分岐してるので行って戻るだけなんだけど。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;検索ルート数は実に&lt;b&gt;約4.3倍&lt;/b&gt;。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;最短完乗ルートの&lt;b&gt;所要時間&lt;/b&gt;は、4路線が&lt;b&gt;245分&lt;/b&gt;で5路線が&lt;b&gt;277分&lt;/b&gt;だからその差は&lt;b&gt;32分&lt;/b&gt;。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;上飯田線は平安通駅から分岐して戻るので、乗車時間が往復で2分、折り返しが1回で10分、乗換が2回で20分で合計&lt;b&gt;32分&lt;/b&gt;。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;合ってる。&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;何とか5路線まで計算できたけど、桜通線を加えて全6路線の計算をするためには、&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;もう一工夫必要かな。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;つづく。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/1622922580401593516/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/02/2.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/1622922580401593516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/1622922580401593516'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/02/2.html' title='改善：ルートを削減～引き換えしルートを検索しない～その2'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNPDIEsqZg1TJkRc9f1Vac88QGfRdlZru7fogpUuaPlGKEK6P2OUL2uSMFDxlv6YID4rOaKS1NFFac1kKlaGTx05lvD1VpZ9aDFyWf1RvA80MQofUJabieV0oqNzHCtLASuh6R0BAGIKrH/s72-c/20120225_v0_8_5Line.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-8011556313107921191</id><published>2012-02-23T23:43:00.000+09:00</published><updated>2012-02-23T23:49:12.086+09:00</updated><title type='text'>改善：ルートを削減 ～ 引き返しルートを検索しない</title><content type='html'>&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;今回はルールを追加して、余分な検索を行わないようにしてみた。&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;同じ駅間(セグメント)を通るのは2回まで&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;所要時間がそれまでの最短時間を上回ったら、それ以降のルートは検索しない&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;《追加》 引き返しルートを検索しないようにする(終点を除く)&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;東山線、名城線、名港線、上飯田線の4路線で確認。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;まずは改善前。&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip-QRirMf8IbOLxtSPkharHof_MAZZTKQ_L0UUB7ZEZ32AXVKrQ6prcSEGx6r7r9NZUAlaUj3nkE9CEATbN2W7QquKRBJ7jFD85nP3m88pWR7z96xes-o-o9nxFllND2FzQZxpR_W7YE_h/s1600/20120223_v0_7_old_4Line.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip-QRirMf8IbOLxtSPkharHof_MAZZTKQ_L0UUB7ZEZ32AXVKrQ6prcSEGx6r7r9NZUAlaUj3nkE9CEATbN2W7QquKRBJ7jFD85nP3m88pWR7z96xes-o-o9nxFllND2FzQZxpR_W7YE_h/s400/20120223_v0_7_old_4Line.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; text-align: -webkit-auto; white-space: pre-wrap;&quot;&gt;続いて改善後。&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGixEY3ptIc8IboMncoiO8dHtgv6gkxlN0W3ITZ-5oPioc1WyZn9FUvYb-1Yv6vnvejII_awmeT1Nh-A1YQwqFFknnmiqYdjrkwJj13RkhHD4edWxJY4MvUfDliSYv7u7Tq53_IIiHk474/s1600/20120223_v0_8_new_4Line.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGixEY3ptIc8IboMncoiO8dHtgv6gkxlN0W3ITZ-5oPioc1WyZn9FUvYb-1Yv6vnvejII_awmeT1Nh-A1YQwqFFknnmiqYdjrkwJj13RkhHD4edWxJY4MvUfDliSYv7u7Tq53_IIiHk474/s400/20120223_v0_8_new_4Line.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;改善前が&lt;b&gt;55.2(秒)&lt;/b&gt;(あれ?、前回よりも早くなってる)で、改善後は何と&lt;b&gt;2.5(秒)&lt;/b&gt;。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;なんと、&lt;b&gt;22倍に高速化&lt;/b&gt;。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;検索された最短完乗ルートはまったく同じ。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;検索ルート数は、&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;75669&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;から&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;3174&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;に激減。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;約24分の1&lt;/b&gt;になっている。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;ルールを追加してルート数を減らした効果が出ている。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;東山線、名城線、名港線の3路線の最短完乗ルートは、&lt;a href=&quot;http://best-kanj.blogspot.com/2012/02/blog-post_13.html&quot;&gt;&lt;b&gt;所要時間155分&lt;/b&gt;、&lt;b&gt;乗車時間125分&lt;/b&gt;だった&lt;/a&gt;。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;上飯田線は1区間で移動時間は1分なので、移動時間が2分、折り返し1回で10分、乗換え2回で20分。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;合計、&lt;b&gt;32分追加&lt;/b&gt;になるはず。&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkrdIISSq9QRv1KbrWdvvcltdAcTF0jZgk4aOOOge-x9p-p4icUGIEcDwUsuq2vY5Sl0JkD3OakDziFubVQGlF3YSfddpfv66AUA8ou9hAv0vu1FpLFQXS4a-LKz0p7FFFvuLrxquzWAKh/s1600/nagoya_network.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkrdIISSq9QRv1KbrWdvvcltdAcTF0jZgk4aOOOge-x9p-p4icUGIEcDwUsuq2vY5Sl0JkD3OakDziFubVQGlF3YSfddpfv66AUA8ou9hAv0vu1FpLFQXS4a-LKz0p7FFFvuLrxquzWAKh/s320/nagoya_network.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;上記の計算結果、東山線、名城線、名港線、上飯田線の4路線は、&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;所要時間187分&lt;/b&gt;、&lt;b&gt;乗車時間127分&lt;/b&gt;なので、きちんと&lt;b&gt;32分&lt;/b&gt;、&lt;b&gt;2分&lt;/b&gt;増えてる。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;結果は合ってそう。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;今度は&lt;b&gt;4路線&lt;/b&gt;を、東山線、名城線、名港線、鶴舞線で計算。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;改善前は計算が終わらなくて諦めたけど、改善後は計算結果が出た。&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRMqKuALqlVNNzMPeKAvdgFMS88hLkGUp1WgKruShUbpWqgeeALhdzprr9XnCpo1z5YRT7s0ze1_UeXN8RcU074pXXioSjlHTj4LezSvFtIatyH5TcoPbCxbguiViJyufZlZSYQLme_njB/s1600/20120223_v0_8_new_4LineB.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;261&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRMqKuALqlVNNzMPeKAvdgFMS88hLkGUp1WgKruShUbpWqgeeALhdzprr9XnCpo1z5YRT7s0ze1_UeXN8RcU074pXXioSjlHTj4LezSvFtIatyH5TcoPbCxbguiViJyufZlZSYQLme_njB/s400/20120223_v0_8_new_4LineB.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;計算時間は&lt;b&gt;575.4(秒)&lt;/b&gt;、&lt;b&gt;10分弱&lt;/b&gt;。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;検索ルート数は &lt;b&gt;529845 &lt;/b&gt;で、東山線、名城線、名港線、上飯田線の4路線から&lt;b&gt;167倍&lt;/b&gt;に増えている。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;このプログラムでは5路線以上は無理そう。 &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;つづく。&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/8011556313107921191/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_23.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/8011556313107921191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/8011556313107921191'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_23.html' title='改善：ルートを削減 ～ 引き返しルートを検索しない'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip-QRirMf8IbOLxtSPkharHof_MAZZTKQ_L0UUB7ZEZ32AXVKrQ6prcSEGx6r7r9NZUAlaUj3nkE9CEATbN2W7QquKRBJ7jFD85nP3m88pWR7z96xes-o-o9nxFllND2FzQZxpR_W7YE_h/s72-c/20120223_v0_7_old_4Line.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9084974778164859377.post-6525075125950927535</id><published>2012-02-21T23:09:00.002+09:00</published><updated>2012-02-21T23:11:13.766+09:00</updated><title type='text'>改善：繰り返し行なう処理の効率化～何度も同じことを行なわない</title><content type='html'>&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;3路線(東山線、名城線、名港線)まで、最短完乗ルートの計算が&lt;a href=&quot;http://best-kanj.blogspot.com/2012/02/blog-post_14.html&quot;&gt;できるようになった&lt;/a&gt;けど、4路線は1時間経っても終わらない。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;前回の改善ではルート作成のルールを追加。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;今回は処理の効率化。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;何度も繰り返される処理&lt;/b&gt;を効率化することで、処理速度をアップさせようという改善。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;改善点は&lt;b&gt;完成チェック&lt;/b&gt;と&lt;b&gt;重複チェック&lt;/b&gt;の高速化。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;具体的には、前のバージョンではチェックの都度行っていた&lt;b&gt;セグメント数のカウント&lt;/b&gt;を&lt;b&gt;ルート作成と同時に行なう&lt;/b&gt;ようにする。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;処理が複雑になるのでバグが入らないように慎重にプログラムを改善。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;3路線(東山線、名城線、名港線)での計算結果は次の通り。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;まずは改善前。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhweNksewQl2k7-wRsKKycUghvl344UJ0YZz9jCTN6xc6PKCsJIFrARRgcAxVZ4HkYGHMzWmie7rRHbfMAEr5RR9tOA1cn00PYWX27dxbcLVlVk_XNQlWjctKWpAPIwBMF0KBfJ-QaBxt50/s1600/20120221_v0_6_old_3Line.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;231&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhweNksewQl2k7-wRsKKycUghvl344UJ0YZz9jCTN6xc6PKCsJIFrARRgcAxVZ4HkYGHMzWmie7rRHbfMAEr5RR9tOA1cn00PYWX27dxbcLVlVk_XNQlWjctKWpAPIwBMF0KBfJ-QaBxt50/s400/20120221_v0_6_old_3Line.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;次に改善後。&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkjru2JCefc1_IUp2NjxzYjW9hyphenhyphen4UhjVLZqGPlHdjIyv5pvZaSPM-SIOfU3iqvFidwf65PhMJYDI9PZ6Ex_wlGa03mc_P8i2n5t-itCzmL6S4p3cQjiVT7mEmrANMIx2ygI7_oxWChyphenhyphenswI/s1600/20120221_v0_7_new_3Line.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;231&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkjru2JCefc1_IUp2NjxzYjW9hyphenhyphen4UhjVLZqGPlHdjIyv5pvZaSPM-SIOfU3iqvFidwf65PhMJYDI9PZ6Ex_wlGa03mc_P8i2n5t-itCzmL6S4p3cQjiVT7mEmrANMIx2ygI7_oxWChyphenhyphenswI/s400/20120221_v0_7_new_3Line.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;計算結果は同じ。&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;計算ルート数&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;(intMakeRrouteNum)は &lt;/span&gt;&lt;b style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;17623 &lt;/b&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;で&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;同じ&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;だけど、&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;処理時間&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;が、&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;18秒&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;から&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;11.3秒&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;に改善されている。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;改善効果は&lt;b&gt;約1.6倍&lt;/b&gt;。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;更に4路線(東山線、名城線、名港線、鶴舞線)で試してみた。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;なかなか終わらない。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;この程度の改善では無理なのかな。&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;4路線を、東山線、名城線、名港線、上飯田線にして試してみた。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;まずは改善前。&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf_NZm7y99CVukP4N7JYdoO1GTlIt5223_sEB7w0tdxgSR-2qiHKq3aisXofqF6Cs2HdOehF6HM-sxJZQm5OoRJVR-GVrmSL0RHJXgsHtB6XzWU-wniev-HqFETrsSiegyqjQ3LCG7_0z3/s1600/20120221_v0_6_old_4LineB.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf_NZm7y99CVukP4N7JYdoO1GTlIt5223_sEB7w0tdxgSR-2qiHKq3aisXofqF6Cs2HdOehF6HM-sxJZQm5OoRJVR-GVrmSL0RHJXgsHtB6XzWU-wniev-HqFETrsSiegyqjQ3LCG7_0z3/s400/20120221_v0_6_old_4LineB.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;続いて改善後。&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDMCLp0CMn2dCfnsYSyZkeiHguLcUZ_cxli2Z3rO82pAEGSlY0vrvUDgm_lKyJj6JiubZNoHWNFBoac31IJCQzWKK_qD_VjVmVkftE8uPepSTcsyvpmnQeXtpMvr48pXu9oHfLrTeaK9W4/s1600/20120221_v0_7_new_4LineB.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDMCLp0CMn2dCfnsYSyZkeiHguLcUZ_cxli2Z3rO82pAEGSlY0vrvUDgm_lKyJj6JiubZNoHWNFBoac31IJCQzWKK_qD_VjVmVkftE8uPepSTcsyvpmnQeXtpMvr48pXu9oHfLrTeaK9W4/s400/20120221_v0_7_new_4LineB.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;計算結果は同じで、検索ルート数も &lt;/span&gt;&lt;b style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;75669 &lt;/b&gt;&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;で同じ。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;計算時間は、改善前の&lt;b&gt;130.8秒&lt;/b&gt;から&lt;b&gt;84.5秒&lt;/b&gt;、&lt;b&gt;約1.5倍&lt;/b&gt;に改善。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;全6路線はまだまだ遠い。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3c3c3c; font-family: &#39;Helvetica Neue&#39;, Arial, sans-serif; font-size: 14px; line-height: 19px; white-space: pre-wrap;&quot;&gt;つづく。&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://best-kanj.blogspot.com/feeds/6525075125950927535/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_21.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/6525075125950927535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9084974778164859377/posts/default/6525075125950927535'/><link rel='alternate' type='text/html' href='http://best-kanj.blogspot.com/2012/02/blog-post_21.html' title='改善：繰り返し行なう処理の効率化～何度も同じことを行なわない'/><author><name>ひまわりこ～ん</name><uri>http://www.blogger.com/profile/03936356232960947489</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgru_Na6hF-sxkJ3qQd6doZBdCQort4wtY_-eZ6tJhWPlCdZRTqjDfMtw4H6L2auB263ZloZ6LuWQse0x1LfuDU49Jzzb4EzFgaOhB3Ip6yAuoz8WqIM5XwgAuMTR6FPw/s220/himawari_500.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhweNksewQl2k7-wRsKKycUghvl344UJ0YZz9jCTN6xc6PKCsJIFrARRgcAxVZ4HkYGHMzWmie7rRHbfMAEr5RR9tOA1cn00PYWX27dxbcLVlVk_XNQlWjctKWpAPIwBMF0KBfJ-QaBxt50/s72-c/20120221_v0_6_old_3Line.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>