フカシギおねえさん問題の高速計算アルゴリズム

Similar documents
素数ものさしの考察




鹿大広報148号

鹿大広報151


窶廰ナ・ア窶。X窶樞€昶€愴・.3

サーモモジュール_出力

CW3_A1083D05.indd

本文/年次報告  67‐107

32号 701062/きじ1

10西宮市立中央病院/本文

北九州高専 志遠 第63号/表紙・表4

特別プログラム

Ł\”ƒ

報告書(第2回NGO‐JICA)/はじめに・目次

P-12 P P-14 P-15 P P-17 P-18 P-19 P-20 P-21 P-22

ニューガラス100/100目次

untitled

program08.pdf



2 2 ( M2) ( )

P P P P P P P OS... P P P P P P

28/32/36D2700_H1_H4

...Z QX

Microsoft Word - ?????1?2009????????-1.docx

...Z QX


平成26年度「自然に親しむ運動」実施行事一覧

...Z QX


untitled

untitled

untitled


CPU Levels in the memory hierarchy Level 1 Level 2... Increasing distance from the CPU in access time Level n Size of the memory at each level 1: 2.2

- 1 -

%

ID010-2

2

求人面接資料PPT

GPGPU

untitled

untitled

23_33.indd


_2009MAR.ren

人間の育つ環境としての“子どもの実態”

初めに:

NEC All rights reserved 1

広報1504月号.indd

gm3280-d_j.indd

2 FLC5F-P

L4331/4431_000-.\..

DO 時間積分 START 反変速度の計算 contravariant_velocity 移流項の計算 advection_adams_bashforth_2nd DO implicit loop( 陰解法 ) 速度勾配, 温度勾配の計算 gradient_cell_center_surface 速

459

untitled

SIP「次世代農林水産業創造技術」研究開発計画

23_33.indd

本文27/A(CD-ROM

MATLAB® における並列・分散コンピューティング ~ Parallel Computing Toolbox™ & MATLAB Distributed Computing Server™ ~

/ / LIN X*** Y*** Z*** A*** F***; END; " " " " TB V10.jtd-2

Itanium2ベンチマーク

Plan of Talk CAS CAS 2 CAS Single Sign On CAS CAS 2 CAS Aug. 19, 2005 NII p. 2/32

chapter4.PDF

01_OpenMP_osx.indd

プリント

B 5 (2) VBA R / B 5 ( ) / 34

単位、情報量、デジタルデータ、CPUと高速化 ~ICT用語集~

パーキンソン病治療ガイドライン2002


27巻3号/FUJSYU03‐107(プログラム)

第101回 日本美容外科学会誌/nbgkp‐01(大扉)

日本内科学会雑誌第102巻第12号

L422277A_Xserve_Guide_01


"CAS を利用した Single Sign On 環境の構築"

p03.dvi

プリント

2011年10月 179号 新レイアウト/001     4C


untitled


日本内科学会雑誌第102巻第10号


template.dvi

3. XML, DB, DB (AP). DB, DB, AP. RDB., XMLDB, XML,.,,.,, (XML / ), XML,,., AP. AP AP AP 検索キー //A=1 //A=2 //A=3 返却 XML 全体 XML 全体 XML 全体 XMLDB <root> <A

ビッグデータアナリティクス - 第3回: 分散処理とApache Spark

広報さがみはら第1242号

Microsoft Word - nvsi_100221jp_vdr_extended_partition.doc

tnbp59-20_Web:P1/ky108679509610002943

IBM Software Group DB2 Information Management Software DB2 V8 XML SQL/XML 2 XML XML UDF XMLExtender XML XML XMLCollection, XMLColumn XML UDF Informati

Microsoft PowerPoint - GPUシンポジウム _d公開版.ppt [互換モード]

04菊崎泰枝_改

APR. JUL. AUG. MAY JUN. 2

untitled

…_…C…L…fi…J…o†[fiü“ePDF/−mflF™ƒ

Transcription:

JST ERATO 2013/7/26 Joint work with 1 / 37

1 2 3 4 5 6 2 / 37

1 2 3 4 5 6 3 / 37

: 4 / 37

9 9 6 10 10 25 5 / 37

9 9 6 10 10 25 Bousquet-Mélou (2005) 19 19 3 1GHz Alpha 8 Iwashita (Sep 2012) 21 21 3 2.67GHz Xeon 1 Spaans (Feb 2013) 24 24??? 30 Iwashita (Apr 2013) 25 25 1 2.67GHz Xeon 30 6 / 37

Sequence A007764 of the On-Line Encyclopedia of Integer Sequences n #path 1 2 2 12 3 184 4 8512 5 1262816 6 575780564 7 789360053252 8 3266598486981642 9 41044208702632496804 10 1568758030464750013214100 11 182413291514248049241470885236 12 64528039343270018963357185158482118 13 69450664761521361664274701548907358996488 14 227449714676812739631826459327989863387613323440 15 2266745568862672746374567396713098934866324885408319028 16 68745445609149931587631563132489232824587945968099457285419306 17 6344814611237963971310297540795524400449443986866480693646369387855336 18 1782112840842065129893384946652325275167838065704767655931452474605826692782532 19 1523344971704879993080742810319229690899454255323294555776029866737355060592877569255844 20 3962892199823037560207299517133362502106339705739463771515237113377010682364035706704472064940398 21 31374751050137102720420538137382214513103312193698723653061351991346433379389385793965576992246021316463868 22 755970286667345339661519123315222619353103732072409481167391410479517925792743631234987038883317634987271171404439792 23 55435429355237477009914318489061437930690379970964331332556958646484008407334885544566386924020875711242060085408513482933945720 24 12371712231207064758338744862673570832373041989012943539678727080484951695515930485641394550792153037191858028212512280926600304581386791094 25 8402974857881133471007083745436809127296054293775383549824742623937028497898215256929178577083970960121625602506027316549718402106494049978375604247408 23 23 : 5.544 10 127 2231 24 24 : 1.237 10 139 6792 25 25 : 8.403 10 150 7 / 37

1 2 3 4 5 6 8 / 37

a b e j {a, b, e, j} c f d b e j {b, c, d, e, f, j} 2 12 9 / 37

2 6 10 / 37

11 / 37

2 2 12 / 37

13 / 37

14 / 37

1: count 0 ; n+1 { }} { 2: count[ ] 1; 3: for i = 1 to n + 1 do 4: for j = 1 to n do 5: tmp 0 ; 6: for all s do 7: s 0 j s ; 8: s 1 j s ; 9: tmp[s 0 ] tmp[s 0 ] + count[s]; 10: tmp[s 1 ] tmp[s 1 ] + count[s]; 11: end for 12: count tmp; 13: end for 14: end for { n+1 }} { 15: return count[ ]; 15 / 37

1 2 3 4 5 6 16 / 37

Simpath S 17 / 37

18 / 37

19 / 37

Motzkin Motzkin M 0 = M 1 = 1 M n = 3(n 1)M n 2 + (2n + 1)M n 1 n + 2 M n 3 (1, 0), (1, 1), (1, 1) (0, 0) (n, 0) M 7 = 127 20 / 37

Motzkin = (1, 0), = (1, 1), = (1, 1) (0, 1) L (M L+1 M L ) 21 / 37

n n n + 1 : (M n+2 M n+1 ) 1 n + 1 n : (M n+1 M n ) (M n+2 M n ) 22 / 37

S φ : S {1, 2,..., S } {s k s S, k } count[φ(s)] 23 / 37

1 2 3 4 In-place 5 24 / 37

In-place 1: count 0 ; n+1 { }} { 2: count[ ] 1; 3: for i = 1 to n + 1 do 4: for j = 1 to n do 5: tmp 0 ; 6: for all s do 7: s 0 j s ; 8: s 1 j s ; 9: tmp[s 0 ] tmp[s 0 ] + count[s]; 10: tmp[s 1 ] tmp[s 1 ] + count[s]; 11: end for 12: count tmp; 13: end for 14: end for { n+1 }} { 15: return count[ ]; 25 / 37

In-place count In-place tmp 26 / 37

: = 00 00 00 0 = 00 00 01 5 = 00 00 10 9 00 00 11 = 00 01 00 12. = 00 00 00 1 = 00 00 01 1 = 00 00 10 00 00 11 = 00 01 00 2. = + 27 / 37

:. 1 0 2 0 1 2 0 1 2 3 28 / 37

: 1 2 2 2 1 29 / 37

: 1 2 2 2 1 m 1 m n + 1 2 m 2 ID 2 m 0 1 or m = 2 00 = 01 = or 10 = or 11 = or or 30 / 37

25 25 502 m 1, m 2,..., m k a 1, a 2,..., a k x a 1 (mod m 1 ) x a 2 (mod m 2 ). x a k (mod m k ) x m 1 m 2 m k 64 1/8 31 / 37

1 2 3 4 5 6 32 / 37

4 Original Grid-BS In-place Grid-FS Grid-BS Grid-FP Grid-FS CPU: Intel Xeon E7-8837 / 2.67GHz / 32 cores Memory: 1.5TB 12 33 / 37

CPU 1/3 1/3 12 1/10 34 / 37

In-place 1/5 35 / 37

1 2 3 4 5 6 36 / 37

In-place 25 25 Intel Xeon E7-8837 / 2.67GHz / 32 cores / 1.5TB memory 30 64 18 9 = 1 480GB 26 26 3 1400GB 37 / 37