ラベル 雑学 の投稿を表示しています。 すべての投稿を表示
ラベル 雑学 の投稿を表示しています。 すべての投稿を表示

2012年7月19日木曜日

『素数入門』を読んだ

Project Euler をやっているうちに、数論を勉強してみたくなって、この本を買ってみた。

LINK
『素数入門』

同じ著者による続編、『数論入門』での著者自身による前書きによると、「初等・初等整数論」って位置づけらしいけど、初等整数論の初級入門者な自分にはちょうど良い。

Project Euler でも見かける関数(オイラーのφ関数とか約数関数とか)が出てくるので、Project Eulerをやったことがある人には、けっこう面白いんじゃないだろうか。あと、こちとら一応プログラマなので、すぐにプログラムを書いて確認できる環境とスキルがあるのはラッキー。

全9章の真ん中の第5章で合同式が扱われているけど、ここをちゃんと理解するのがキーだと思った。合同式がちゃんと分からないと、後の章はほぼちんぷんかんぷんになる。つうか、欲を言えばだけど、もうちょい例題と問題を多くしてほしかった(特に合同式の割り算のあたり)。

9章あたりになると、結構むずかしくなる。フェルマーテストやカーマイケル数なんかは、一回読んだだけじゃ理解できなかった。

正直、読み急いでしまって問題を解くのをけっこう省いたが、「計算しながら理解する」のがこの本の趣向の一つでもあるので、やっぱやっといた方が良い(「計算」というか証明問題が多い気がするが)。実際に、計算してみないと、やはり腹落ちしない。そういうものなのだと思う。

2011年12月21日水曜日

小事の思案と割れ窓理論

葉隠と言えば、「武士道といふは死ぬ事と見付けたり…別に仔細なし。胸すわって進むなり。」で有名だけど、正直、自分みたいな「すくたれもの」には難しい。

だけど実は葉隠には、そんなムリなやつばかりじゃなくて、普通に実践的なアドバイスも結構ある。

『大事の思案は軽くすべし。/小事の思案は重くすべし。』

これについて自分は、やっぱり開発者で飯を食っているせいか、前半をリスク管理の問題、後半を品質管理の問題と捉えてしまう。

前半の『大事の思案』がなぜ軽いかについては、非常にクリティカルな事態に関しては、いざというときに判断に迷って対応が遅れたりしないように、普段から方針を定めておいて、即断即決できるように備えておくべきだという解釈になる。

後半の『小事の思案』がなぜ重いかについては、三島由紀夫が葉隠入門の中で、アリの穴から堤防が崩れるように、瑣末なことを軽んじる事によって生活の体系や重大な思想までもが台無しになると解説している。

で、もちろん前半も後半もどちらも大事なんだけど、どちらかというと自分なんかには後半の方が、より切実にピンと来る。(管理の比重が大きい人は前者かもしれない。)

例えば、コーディング規約なんかみたいなものでも、「ぎりぎり読めりゃいいじゃん」みたいに適当にしないで、きっちり律儀に守ってかないといけない。と自分は思う。

そこを疎かにするから、規約違反の放置->->内部品質の低下->->外部品質の低下->->製品品質の低下 ってな感じで、結局、また地獄になってくんじゃないかと。


で、この小さい事こそ大事ってのを、別角度から現代風に理論化したのが、割れ窓理論だと思う。

一般には、ジュリアーニ市長の時代にニューヨーク市が治安を回復したときにベースになった理論として有名なアレだけど、Wikipedia によるとこうなる

「建物の窓が壊れているのを放置すると、誰も注意を払っていないという象徴になり、やがて他の窓もまもなく全て壊される」

ささいに見える Duplicate code の放置が、コピペだらけの巨大な糞コードの山に繋がっていくという、まあ、ありがちなあれと同じじゃないだろうか。

で、この割れ窓理論をベースにした政策が「ゼロトレランス」だけど、開発現場に当てはめてみると、さしずめ Refactoring Mercilessly といったところか。

なんて事を考えていると、例えば、「途中return は是か非か」みたいな、一見不毛でアホらしい事についてムキになって議論するのも、けっこう大事というか、度を越さない範囲ならむしろ健全だとも思えてくる。もちろん自分もわりとムキになる方だ。

2011年12月9日金曜日

Prolog で楽典クイズ

我々が日ごろ聞いてるふつうの音楽は、1オクターブの中に高さの異なる音が12個あって、それぞれの音は「音名」という名前を持っている。

実は、ほとんどの音はそれぞれ三つの音名を持っている。例えば、ミ♯、ファ、ソ♭♭の組み合わせや、レx、ミ、ファ♭の組み合わせは同じ音高であったりする。

ところが、ある音だけは二つの音名しか持っていない。この音が何かわかるだろうか。

ダブルシャープとかダブルフラットを使ってるから、小学校で習うかどうかは分からないけど、たぶん義務教育の範囲には入ってる気がするくらいの基礎的な楽典知識だけで構成された問いだけど、面白いことに、意外と音楽をやってる人でも即座には答えられなかったりする。

ピアノの鍵盤を思い浮かべて単なる図形として捉えたら簡単なんだけど、今日は、これを「寝る前ちょこっとプログラミング」のお題にしてみようと、帰りの電車で思いついた。Prolog でやってみる。

====

note(0, 'C').
note(2, 'D').
note(4, 'E').
note(5, 'F').
note(7, 'G').
note(9, 'A').
note(11, 'B').

notes([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]).

alteration('x', -2).
alteration('♯',  -1).
alteration('♮',   0).
alteration('♭',   1).
alteration('♭♭',  2).

noteWithThreeNames(Names)   :- findNoteNamesByCount(Names, 3).
noteWithOnlyTwoNames(Names) :- findNoteNamesByCount(Names, 2).

findNoteNamesByCount(Names, Count) :-
   notes(Notes), member(Note, Notes),
   collectNoteNames(Note, Names),
   length(Names, Count).

collectNoteNames(Note, Names) :-
  findall(Name, findName(Note, Name), Names).

findName(Note, Names) :- 
  alteration(Alteration, Diff), 
  getNote(Note + Diff, NaturalTone),
  concat_atom([NaturalTone, Alteration], Names).

getNote(N, X) :- N2 is N mod 12, note(N2, X).

素朴な実装だけど、以下のように正しい結果が得られる。
?- noteWithThreeNames(Names).
Names = ['B♯', 'C♮', 'D♭♭'] ;
Names = ['Bx', 'C♯', 'D♭'] ;
Names = ['Cx', 'D♮', 'E♭♭'] ;
Names = ['D♯', 'E♭', 'F♭♭'] ;
Names = ['Dx', 'E♮', 'F♭'] ;
Names = ['E♯', 'F♮', 'G♭♭'] ;
Names = ['Ex', 'F♯', 'G♭'] ;
Names = ['Fx', 'G♮', 'A♭♭'] ;
Names = ['Gx', 'A♮', 'B♭♭'] ;
Names = ['A♯', 'B♭', 'C♭♭'] ;
Names = ['Ax', 'B♮', 'C♭'].

?- noteWithOnlyTwoNames(Names).
Names = ['G♯', 'A♭'] ;
false.

====

音楽の話題でいえば、厳格対位法という、こんなのとは比較にならないくらいパズルっぽいやつがある。これは与えられた音の配列(定旋律)に対して、たくさんの「禁則」をくぐり抜けてごく限られた音の配列(対旋律)を見つけ出していくという、古典音楽作曲の伝統的なトレーニングなんだけど、視点を変えるとパズルの「川渡り問題」に似てなくもない。

たぶん、とっくにどこかのプログラマが挑戦してるだろうけど、もうちょいヒマができたら自分でもやってみたい気がする。

2010年6月5日土曜日

ブラック・ショールズ方程式の解のグラフ

wikipedia のブラックショールズ方程式の解の式をグラフ化してみる。

以下の条件で、
権利行使価格(K)110
安全利子率(r)0.07
ボラティリティ(σ)0.2
期間(τ=T-t)0.25
横軸にとった原資産価格に対するコールオプションプレミアムの適正価格を、Excel で折れ線グラフにしたものが下図。


原資産価格110のところがアットザマネー(ATM)で、左側がアウトオブザマネー(OTM)、右側がインザマネー(ITM)ということになる。OTMからATMに近づく辺りで上昇し始めて、ITMではK・exp(-rτ)≒108 から右上45℃に延びる線に漸近する形になる。

式だけ見ても全然想像がつかないけど、グラフに描いてみるとなんとなくイメージがつかめる。正規分布なんかでも、誰でもそのグラフ形状ならしってるけど、式自体は結構難しかったりするし。

2009年12月27日日曜日

円周上に7つの点をムラなく並べるには?


円周を12分割して、12時の位置から時計回りに7つの点を並べるとする。

ただし偏りのないようムラなく並べたい。ここで「ムラなく」を、以下のように定義するとする。
  1. 30度が連続しない(そこが密になるから)。
  2. 60度を超えない(そこが疎になるから)。
どんな並べ方があるか。

やってみると14通りの並べ方があるのがわかる。
121314
p091224_01.draw("canvas091224_1", [0, 1, 3, 4, 6, 8, 10]);
p091224_01.draw("canvas091224_2", [0, 1, 3, 5, 6, 8, 10]);
・・⇒・・
p091224_01.draw("canvas091224_3", [0, 2, 4, 6, 7, 9, 11]);
p091224_01.draw("canvas091224_4", [0, 2, 4, 6, 8, 9, 11]);

実は、この円(360度)を音階の 1オクターブと捉えると、7つの点の組み合わせは十二平均律上の 7音の音階と考えることができる。さらによく見ると、14通りとは、長音階(Ionian)を転回した7通りと、旋律的短音階上昇形(Melodic Minor)を転回した7通りの計14である事がわかる。
Lydian AugLydianIonianMelodic Minor
p091224_01.draw2("canvas091226_0", [0, 2, 4, 6, 8, 9, 11]);
p091224_01.draw2("canvas091226_1", [0, 2, 4, 6, 7, 9, 11]);
p091224_01.draw2("canvas091226_2", [0, 2, 4, 5, 7, 9, 11]);
p091224_01.draw2("canvas091226_3", [0, 2, 3, 5, 7, 9, 11]);
Lydian ♭7MixolydianDorianDorian♭2
p091224_01.draw2("canvas091226_4", [0, 2, 4, 6, 7, 9, 10]);
p091224_01.draw2("canvas091226_5", [0, 2, 4, 5, 7, 9, 10]);
p091224_01.draw2("canvas091226_6", [0, 2, 3, 5, 7, 9, 10]);
p091224_01.draw2("canvas091226_7", [0, 1, 3, 5, 7, 9, 10]);
Mixolydian♭6AeolianPhrygianLocrian♮2
p091224_01.draw2("canvas091226_8", [0, 2, 4, 5, 7, 8, 10]);
p091224_01.draw2("canvas091226_9", [0, 2, 3, 5, 7, 8, 10]);
p091224_01.draw2("canvas091226_a", [0, 1, 3, 5, 7, 8, 10]);
p091224_01.draw2("canvas091226_b", [0, 2, 3, 5, 6, 8, 10]);
LocrianAltered
p091224_01.draw2("canvas091226_c", [0, 1, 3, 5, 6, 8, 10]);
p091224_01.draw2("canvas091226_d", [0, 1, 3, 4, 6, 8, 10]);

この14の音階は、以下のように2次元の表の上でグラデーションを構成するように並べる事ができる。

+5p5+4p4M3m3M2m2
Lyd+LydIonMel- 
M7
-Lyd♭7MixDorDor♭2m7
M6
--Mix♭6AeoPhrm6
p5
---Loc♮2Loc-5
p4
----Alt-4
 


円周の図と表を見比べると、表で右上-左下の対角線を挟んで対称の位置にある組が、円周の図でみると逆回転の組になっている。また左回りでも右回りでも対称なのは、Dorian と Mixolydian♭13 で、これらは表の対角線上に来ているのも分かる。

青文字で書いた Ionian の転回形は、一本につながってジグザグに配置され、その両側からMelodic Minor の転回形が挟み込む形に構成される。

なんだか見れば見るほど不思議な気がする。

ちなみに、冒頭の「ムラなく」並べるルールを6音に適用すると Whole Tone Scale になり、8音に適用すると Diminished Scale または Combination Diminished Scale になる。

参考までに書くと、普通のドレミファソラシド(Ionian)を頭の中で思い浮かべることができる人なら(できない人は見たことないが)、上の表で Ionian から始めて少しずつ他のマス目に移動していく形で、割と簡単に14個の7音音階と6音・8音の音階の計17通りの音階を自由に頭の中で鳴らせるようになる。

2009年12月12日土曜日

ear, war の読み方

Java の仕事をしていると、WAR(Web ARrchive) をワーと発音する人をみかける。また、EAR(Enterprise ARchive) をアーなんて発音する人も多い。ちょっと気になるので調べてみた。

まずは Youtube で 英語圏の人たちがどう発音しているか観察してみる。ejb だとか Tomcat だとかで検索すると、いろんなのがヒットする。例えば、以下のビデオでは、01分43秒のところで、次のように話しているのが聞き取れる。

http://www.youtube.com/watch?v=wIKdM-d7FiA

We go on a little bit about packaging our application. This is EAR, WAR and JAR files.

普通の英単語と同じように WAR ⇒ /wɔr/、EAR ⇒ /ɪər/、JAR ⇒ /dʒɑr/って言ってる(記号はここ参照)。「war」は、「戦争」という意味でも 「Web Archive」というい意味でも、発音については/wɔr/ で同じらしい。まあ極めて自然。

さて改めて、日本語による WAR の発音を考えてみると、結局「WAR」という英字スペルにマッピングするカタカナの配列を新たに発明するのではなく、普通の英単語「war」、あるいは発音記号 /wɔr/ で表される音列を表すときに、われわれ日本人がこれまでどんなカタカナの組み合わせを使ってきたかを考えてみれば良いのだと思う。

というか、・・・うーん、どうかんがえても「ウォー」以外ないのではなかろうか。「war」で考えても /wɔr/ で考えても「ワー」は無いわ。いや普段から「スター・ワーズ」とか、「ワン・ツー・スリー・ファー」とかいった感じで喋ってる人なら問題ないかもしれないけど。

あと warning を ワーニングって言う人も多いけど、これはある意味 war を「ワー」って言う以上になんか悲しい。WAR は Web Archive の略称でもあるから別の読みがあっても不思議じゃないけど、warning はどこから見ても普通の単語だし。まあ普段から「ハート・ワーミング・ストーリー」とか「ワーミング・アップ」なんて感じで喋ってる人なら、ある意味、一貫性があるけどさ。

ear も同じことで、イアーとイヤーで迷うなら分かるけど、何故「アー」なのか不思議。なんか earth とか heart あたりからインスパイアされたりしてるんだろうか。

ちなみに、false をファルス(男根の意味)と読むのも恥ずかしい。人前で喋るのを生業とする人たちにとって、彼らが「噛んだ」とき、単にいくつかの音節を発音し損ねるだけじゃなく、別の言葉として成立してしまうような噛み方をしてしまうのが最悪だというけど、それにも通じるパターンだ。いや、気付いていないという点で、それ以上かも。

2009年11月4日水曜日

構造化手法じゃなくて構造主義

クロード・レヴィ=ストロース氏が亡くなった。

プログラマになる前は、やたらとポストモダン(ポスト構造主義)系の本を読んでいた割りに、その前の構造主義者が書いた本は残念ながら未読。いつか読もうと後回しにして、結局読んでいない。

ただ一般向け解説の新書なら割と読んでいて、交叉イトコ婚なんかも図に描いて理解したりした。影響を受けたとしたら、どちらかといういと、よく喧伝されていた「人間存在を支配する不可視の構造」と言った大げさな話より、モデルとその変換といった辺りからだと思う。

それにしても、昔は面白く感じていたポストモダン系は、今思い返すと何故ああいったものを読んでいたのか分からず、むしろ気恥ずかしい。何かアートっぽくておしゃれなところにでも惹かれていたのかな。

相当に性格が変わった今では、ちょっと専門色が強くて、研究対象のはっきりした比較的実証性の高いものの方に面白味を感じる。まさにレヴィ=ストロースのやってきたような仕事が、それなんだと思う。

ちなみに構造主義を無理やりプログラミングの話題に関連付けると、手続き型手法における構造化とは、字面が似ているのと裏腹に全くかけ離れた思考で、むしろ関数型のパラダイムにこそ親和性が高かったりする。

2009年10月28日水曜日

A Chronology of Japanese History 100

前に作った年表暗記カードが80項目で、なんとなくキリが悪いので100項目に増やした。この年表→[リンク]が詳しすぎず粗すぎずちょうど良い感じ。

Japanese Chronological Table
{ "height":160,"width":400,"opacity":0.9,"answer-bg-color":"#FFEEDD","question-bg-color":"#FFEEDD","answer-color":"#006622","question-color":"#002266","caption":"暗記帳 アルファ版"}
Start of human activity on the Japanese archipelago.
ca.100,000B.C.
Spread of Late Paleolithic Culture.
ca.30,000B.C.
First use of pottery on Japanese archipelago.
ca.10,000B.C.
First production of clay images.
ca.7,000B.C.
First large Jomon communities.
ca.3,000B.C.
Establishment of Yayoi Culture in northern Kyushu. Start of rice cultivation.
ca.300B.C.
King Na of Wa (Japan) sends tribute to Eastern Han dynasty and is bestowed gift of a gold seal.
57 A.D.
First construction of large graves with burial mounds in western Japan.
ca.200
Queen Himiko of Yamatai in Wa sends emissaries to Wei in China.
239
Keyhole-shaped burial mounds are constructed in many parts of western Japan.
ca.300
Wa sends troops to the Korean peninsula (monument of Haotai Wang).
Religious rites begin around this time on Okinoshima off the coast of Kyushu.
391
King of Wa starts in this year to send tribute to the Southern Court in China.
421
Forging of the iron swords later unearthed at the Inariyama Burial Mound in Saitama Prefecture.
471
Buddhism introduced from Paekche on the Korean peninsula (538 according to one theory).
552
King of Wa sends emissaries to the Sui Dynasty in China.
600
Prince Shotoku creates the Seventeen-Article Constitution.
604
First emissaries sent to the Tang Dynasty.
630
Taika Reforms.
645
Japanese troops defeated by troops of Tang and Silla on the Korean peninsula. Defenses of western Japan are strengthened.
663
Completion of the Taiho Ritsuryo Code. Establishment of a state based on the Ritsuryo laws.
701
Capital is moved to Heijokyo (Nara).
710
Construction of Tagajo Castle in Tohoku region (monument of Tagajo) .
724
Completion of the Great Buddha at Todaiji Temple.
752
Belongings of Emperor Shomu moved to Todaiji. Construction of Shosoin.
758
Hyakumanto Darani (Dharani of the Million Towers) is completed.
770
Transfer of the capital to Heiankyo (Kyoto).
794
Practice of sending emissaries to China is discontinued.
894
Fujiwara Michinaga takes hold of power. Flourishing of the Fujiwara family.
995
Murasaki Shikibu completes The Tale of Genji.
1005
Sutra mounds created in great numbers out of beliefs that Mappo (The Age of Decline) has started.
1052
Minamoto Yoritomo establishes his headquarters in Kamakura.
1180
Yoritomo becomes Seii tai shogun ("Barbarian Conquering General") and establishes the Kamakura shogunate.
1192
Monk Shinran founds the Jodo Shinshu Sect (Ikko Sect).
1224
Monk Ippen founds the Ji Sect.
1275
Collapse of Kamakura shogunate. Kamakura enveloped in the flames of war.
1333
Ashikaga Takauji becomes Seii tai shogun and founds the Muromachi shogunate.
1338
Japanese pirates begin raid along China's coastline.
1350
Ashikaga Yoshimitsu restores relations with Ming China. Ashikaga is recognized by the Ming court as the "King of Japan".
1401
Sho Hashi unites all of Okinawa and becomes the Ryukyu King.
1422
Do ikki uprising develops in Kyoto and results in the Tokusei edict. Tea ceremony begins to flourish at this time.
1441
Onin War. Kyoto is enveloped in flames of war.
1467
Ikko ikki breaks out in Kaga and assumes control of the entire Kaga Province.
1488
Asakura Norikage quells the Ikko ikki.
1531
Date Tanemune enacts the Jinkaishu which established domain. Daimyo in different areas begin at this time to enact their own legal systems.
1536
Portuguese bring guns to Tanegashima.
1543
Francis Xavier arrives in Japan to begin missionary activities.
1549
Fall of the Asakura daimyo family in Ichijodani, Echizen Province.
1573
Toyotomi Hideyoshi unites all of Japan.
Start of printing of Christian books in Romanized Japanese.
1590
Start of the system of Shuinsen or "red seal ships". Hideyoshi sends troops to Korea.
1592
Tokugawa Ieyasu becomes Seii tai shogun, establishes the Edo shogunate.
1603
Ieyasu has bronze movable type forged to print the Suruga edition.
1607
The hishigaki kaisen (lozenge-fenced cargo ships) begin to sail regularly between Edo and Osaka.
1619
Shogunate forbids Japanese to travel overseas.
Start of the sankin kotai system which required daimyo to reside alternate years in Edo.
Construction of national roads.
1635
Entry of Portuguese ships forbidden. Start of sakoku, a period in which Japan was closed off to the outside world.
1639
Dutch Trading Mission is moved to Dejima in Nagasaki which becomes the only port in Japan where foreign trade is allowed.
1641
Promulgation of the Keian no ofuregaki, a document outlining the duties and conduct of the farmers.
1649
Great Edo Fire. Following this, large spaces are created in the city to prevent further fires.
1657
Ainu rebellion in Ezochi (Hokkaido).
1669
Kawamura Zuiken opens eastern sea route. Western sea route is opened in following year.
1671
Start of Genroku Period. Development of Edo culture including Kabuki and Bunraku.
1688
Kyoho Famine. Rice stores broken into as prices on rice soar.
1732
Russian ships land in Ezochi, request trade.
1778
Ino Tadataka produces first accurate maps of the Japan's coastline.
1821
Franz von Siebold, a German physician of the Dutch Trading Mission, is banished from Japan for bringing maps of Japan out of the country.
1828
Admiral Perry arrives in Uraga and demands that Japan opens its ports.
1853
Japan concludes friendship treaties with the United States, Britain, Russia, France and the Netherlands. The ports of Hakodate, Shimoda and Nagasaki are opened to foreign trade.
1854
Meiji Restoration. Edo's name is changed to Tokyo ("Eastern Capital") .
1868
The Ryuku Islands become Okinawa Prefecture.
1879
Promulgation of the Constitution of the Empire of Japan.
1889
Outbreak of Russo-Japanese War.
1904
Korea becomes a Japanese colony.
1910
Japan presents China with a set of 21 demands for expanding its rights in China.
1915
Start of a financial panic. Government declares moratorium on gold standard.
1927
The so-called Liutaochu Incident is used as a pretext for the start of military maneuvers in northeast China. Start of invasion of China.
1931
Start of Pacific War.
1941
Promulgation of the Constitution of Japan. Agrarian reforms.
1946
Signing of the Treaty of San Francisco.
1951
Enactment of the Basic Agricultural Law.
1961
Start of the New Tokaido Railway (Shinkansen). Beginning of free economic system.
1964
Outbreak of itaiitai sickness in Toyama Prefecture (first case of pollution related diseases due to industrial wastes).
1967
Unified by Yamato regime.
ca. 350
The Jinshin war broke out.
672
Kojiki was edited.
712
Kukai returned to Japan.
806
Insei by retired emperor Shirakawa started.
1086
Taira no Kiyomori was appointed Daijo Daijin.
1167
The JMei Code (Goseibai Shikimoku) is issued.
1232
Yoshimitsu builds his retirement retreat at Kinkakuji.
1398
Yoshimasa begins construction of Ginkakuji.
1489
Battle of Okehazama
1560
Battle of Nagashino
1575
the Siege of Osaka(Winter Campaign).
1614
Incident of the 47 Ronin.
1701
The Kyoho reforms
1716
Kaitai Shinsho was published
1774
Mamiya Rinzo's exploration of Sakhalin
1808
Sakurada-mon Incident
1860
Seinan Rebellion
1877
enthronement of Hirohito.
1926
2-2-6 incident
1936

wikipediaも併用して20項目を追加したけど、英語になった日本史キーワードは、やはりちょっと面白い。大阪冬の陣が Seige of Osaka (Winter campaign) になるんだなあ。Siege はウィーン包囲(Siege of Vienna)の seige だから解るけど、campaign にそんな用法があったんだ。あと「Battle of Okehazama」なんて言うのが、何故かちょっと格好いい。ってミーハーか。

2009年9月30日水曜日

日本史のサマリ

何となく英語の年表を探していたら、80個程度の少ない項目で日本史の概略をまとめてあるのを見つけた。→リンク
見慣れた日本史のキーワードが英文で書かれているのを見ると、何か新鮮で面白い。結構覚えているのも多いが、量も手ごろな事だし、この際西暦を全部覚えてしまう事にした。
Japanese Chronological Table
{ "height":160,"width":400,"opacity":0.9,"answer-bg-color":"#FFEEDD","question-bg-color":"#FFEEDD","answer-color":"#006622","question-color":"#002266","caption":"暗記帳 アルファ版"}


Start of human activity on the Japanese archipelago.

ca.100,000B.C.



Spread of Late Paleolithic Culture.

ca.30,000B.C.



First use of pottery on Japanese archipelago.

ca.10,000B.C.



First production of clay images.

ca.7,000B.C.



First large Jomon communities.

ca.3,000B.C.



Establishment of Yayoi Culture in northern Kyushu. Start of rice cultivation.

ca.300B.C.



King Na of Wa (Japan) sends tribute to Eastern Han dynasty and is bestowed gift of a gold seal.

57 A.D.



First construction of large graves with burial mounds in western Japan.

ca.200



Queen Himiko of Yamatai in Wa sends emissaries to Wei in China.

239



Keyhole-shaped burial mounds are constructed in many parts of western Japan.

ca.300



Wa sends troops to the Korean peninsula (monument of Haotai Wang).
Religious rites begin around this time on Okinoshima off the coast of Kyushu.

391



King of Wa starts in this year to send tribute to the Southern Court in China.

421



Forging of the iron swords later unearthed at the Inariyama Burial Mound in Saitama Prefecture.

471



Buddhism introduced from Paekche on the Korean peninsula (538 according to one theory).

552



King of Wa sends emissaries to the Sui Dynasty in China.

600



Prince Shotoku creates the Seventeen-Article Constitution.

604



First emissaries sent to the Tang Dynasty.

630



Taika Reforms.

645



Japanese troops defeated by troops of Tang and Silla on the Korean peninsula. Defenses of western Japan are strengthened.

663



Completion of the Taiho Ritsuryo Code. Establishment of a state based on the Ritsuryo laws.

701



Capital is moved to Heijokyo (Nara).

710



Construction of Tagajo Castle in Tohoku region (monument of Tagajo) .

724



Completion of the Great Buddha at Todaiji Temple.

752



Belongings of Emperor Shomu moved to Todaiji. Construction of Shosoin.

758



Hyakumanto Darani (Dharani of the Million Towers) is completed.

770



Transfer of the capital to Heiankyo (Kyoto).

794



Practice of sending emissaries to China is discontinued.

894



Fujiwara Michinaga takes hold of power. Flourishing of the Fujiwara family.

995



Murasaki Shikibu completes The Tale of Genji.

1005



Sutra mounds created in great numbers out of beliefs that Mappo (The Age of Decline) has started.

1052



Minamoto Yoritomo establishes his headquarters in Kamakura.

1180



Yoritomo becomes Seii tai shogun ("Barbarian Conquering General") and establishes the Kamakura shogunate.

1192



Monk Shinran founds the Jodo Shinshu Sect (Ikko Sect).

1224



Monk Ippen founds the Ji Sect.

1275



Collapse of Kamakura shogunate. Kamakura enveloped in the flames of war.

1333



Ashikaga Takauji becomes Seii tai shogun and founds the Muromachi shogunate.

1338



Japanese pirates begin raid along China's coastline.

1350



Ashikaga Yoshimitsu restores relations with Ming China. Ashikaga is recognized by the Ming court as the "King of Japan".

1401



Sho Hashi unites all of Okinawa and becomes the Ryukyu King.

1422



Do ikki uprising develops in Kyoto and results in the Tokusei edict. Tea ceremony begins to flourish at this time.

1441



Onin War. Kyoto is enveloped in flames of war.

1467



Ikko ikki breaks out in Kaga and assumes control of the entire Kaga Province.

1488



Asakura Norikage quells the Ikko ikki.

1531



Date Tanemune enacts the Jinkaishu which established domain. Daimyo in different areas begin at this time to enact their own legal systems.

1536



Portuguese bring guns to Tanegashima.

1543



Francis Xavier arrives in Japan to begin missionary activities.

1549



Fall of the Asakura daimyo family in Ichijodani, Echizen Province.

1573



Toyotomi Hideyoshi unites all of Japan.
Start of printing of Christian books in Romanized Japanese.

1590



Start of the system of Shuinsen or "red seal ships". Hideyoshi sends troops to Korea.

1592



Tokugawa Ieyasu becomes Seii tai shogun, establishes the Edo shogunate.

1603



Ieyasu has bronze movable type forged to print the Suruga edition.

1607



The hishigaki kaisen (lozenge-fenced cargo ships) begin to sail regularly between Edo and Osaka.

1619



Shogunate forbids Japanese to travel overseas.
Start of the sankin kotai system which required daimyo to reside alternate years in Edo.
Construction of national roads.

1635



Entry of Portuguese ships forbidden. Start of sakoku, a period in which Japan was closed off to the outside world.

1639



Dutch Trading Mission is moved to Dejima in Nagasaki which becomes the only port in Japan where foreign trade is allowed.

1641



Promulgation of the Keian no ofuregaki, a document outlining the duties and conduct of the farmers.

1649



Great Edo Fire. Following this, large spaces are created in the city to prevent further fires.

1657



Ainu rebellion in Ezochi (Hokkaido).

1669



Kawamura Zuiken opens eastern sea route. Western sea route is opened in following year.

1671



Start of Genroku Period. Development of Edo culture including Kabuki and Bunraku.

1688



Kyoho Famine. Rice stores broken into as prices on rice soar.

1732



Russian ships land in Ezochi, request trade.

1778



Ino Tadataka produces first accurate maps of the Japan's coastline.

1821



Franz von Siebold, a German physician of the Dutch Trading Mission, is banished from Japan for bringing maps of Japan out of the country.

1828



Admiral Perry arrives in Uraga and demands that Japan opens its ports.

1853



Japan concludes friendship treaties with the United States, Britain, Russia, France and the Netherlands. The ports of Hakodate, Shimoda and Nagasaki are opened to foreign trade.

1854



Meiji Restoration. Edo's name is changed to Tokyo ("Eastern Capital") .

1868



The Ryuku Islands become Okinawa Prefecture.

1879



Promulgation of the Constitution of the Empire of Japan.

1889



Outbreak of Russo-Japanese War.

1904



Korea becomes a Japanese colony.

1910



Japan presents China with a set of 21 demands for expanding its rights in China.

1915



Start of a financial panic. Government declares moratorium on gold standard.

1927



The so-called Liutaochu Incident is used as a pretext for the start of military maneuvers in northeast China. Start of invasion of China.

1931



Start of Pacific War.

1941



Promulgation of the Constitution of Japan. Agrarian reforms.

1946



Signing of the Treaty of San Francisco.

1951



Enactment of the Basic Agricultural Law.

1961



Start of the New Tokaido Railway (Shinkansen). Beginning of free economic system.

1964



Outbreak of itaiitai sickness in Toyama Prefecture (first case of pollution related diseases due to industrial wastes).

1967



一通りやってみると、「この項目はあるのにあれは無いな」とか、「本当にこの年でいいんだっけ」とか、いろいろ思う事もあったが、まあ良しとした。