# HG changeset patch # User Masataka Kohagura # Date 1454744259 -32400 # Node ID e8efe3b71cf0bab32abbb059bb336f2f2e78f969 # Parent 33effa89120a4f90ed4cde5550f567774bf9cb0e add wordcount images diff -r 33effa89120a -r e8efe3b71cf0 c4.tex --- a/c4.tex Sat Feb 06 15:19:21 2016 +0900 +++ b/c4.tex Sat Feb 06 16:37:39 2016 +0900 @@ -24,6 +24,29 @@ 読み込んだテキストを先頭から見ていき、単語の末端に空白文字か改行文字があれば単語数、改行文字があれば行数を数えることができる。 分割された部分に単語が含まれた場合、単語数や行数について整合性を取る必要がある。 +図\ref{fig:wordcountline} ではファイル分割無しの Word Count である。 + +分割しない状態では単語数(Word Num) 3、行数(Line Num) 2 となる。 + +\begin{figure}[htpb] + \begin{center} + \includegraphics[scale=0.2]{images/example/wordcountline.pdf} + \end{center} + \caption{ファイル分割無しの Word Count} + \label{fig:wordcountline} +\end{figure} + +単語で分割された場合、分割されたファイルそれぞれの結果を合計すると単語数 4、行数 2 となり、分割されていない時と結果が変わってしまう。 + +(図\ref{fig:wordcountseparate}) + +\begin{figure}[htpb] + \begin{center} + \includegraphics[scale=0.2]{images/example/wordcountseparate.pdf} + \end{center} + \caption{ファイル分割有りの Word Count} + \label{fig:wordcountseparate} +\end{figure} \section{Boyer-Moore String Search} diff -r 33effa89120a -r e8efe3b71cf0 images/example/bmsearchbasic.bb --- a/images/example/bmsearchbasic.bb Sat Feb 06 15:19:21 2016 +0900 +++ b/images/example/bmsearchbasic.bb Sat Feb 06 16:37:39 2016 +0900 @@ -1,5 +1,5 @@ %%Title: images/example/bmsearchbasic.pdf %%Creator: extractbb 20150315 %%BoundingBox: 0 0 309 270 -%%CreationDate: Fri Feb 5 17:02:19 2016 +%%CreationDate: Sat Feb 6 16:15:24 2016 diff -r 33effa89120a -r e8efe3b71cf0 images/example/bmsearchinlucde.bb --- a/images/example/bmsearchinlucde.bb Sat Feb 06 15:19:21 2016 +0900 +++ b/images/example/bmsearchinlucde.bb Sat Feb 06 16:37:39 2016 +0900 @@ -1,5 +1,5 @@ %%Title: images/example/bmsearchinlucde.pdf %%Creator: extractbb 20150315 -%%BoundingBox: 0 0 239 201 -%%CreationDate: Fri Feb 5 17:02:19 2016 +%%BoundingBox: 0 0 1149 978 +%%CreationDate: Sat Feb 6 16:15:24 2016 diff -r 33effa89120a -r e8efe3b71cf0 images/example/bmsearchsame.bb --- a/images/example/bmsearchsame.bb Sat Feb 06 15:19:21 2016 +0900 +++ b/images/example/bmsearchsame.bb Sat Feb 06 16:37:39 2016 +0900 @@ -1,5 +1,5 @@ %%Title: images/example/bmsearchsame.pdf %%Creator: extractbb 20150315 -%%BoundingBox: 0 0 292 233 -%%CreationDate: Fri Feb 5 17:02:19 2016 +%%BoundingBox: 0 0 1362 1527 +%%CreationDate: Sat Feb 6 16:15:24 2016 diff -r 33effa89120a -r e8efe3b71cf0 images/example/bmsearchthink.bb --- a/images/example/bmsearchthink.bb Sat Feb 06 15:19:21 2016 +0900 +++ b/images/example/bmsearchthink.bb Sat Feb 06 16:37:39 2016 +0900 @@ -1,5 +1,5 @@ %%Title: images/example/bmsearchthink.pdf %%Creator: extractbb 20150315 -%%BoundingBox: 0 0 234 259 -%%CreationDate: Fri Feb 5 17:02:19 2016 +%%BoundingBox: 0 0 1254 1041 +%%CreationDate: Sat Feb 6 16:15:24 2016 diff -r 33effa89120a -r e8efe3b71cf0 images/example/bmskiptable.bb --- a/images/example/bmskiptable.bb Sat Feb 06 15:19:21 2016 +0900 +++ b/images/example/bmskiptable.bb Sat Feb 06 16:37:39 2016 +0900 @@ -1,5 +1,5 @@ %%Title: images/example/bmskiptable.pdf %%Creator: extractbb 20150315 %%BoundingBox: 0 0 348 480 -%%CreationDate: Fri Feb 5 17:02:19 2016 +%%CreationDate: Sat Feb 6 16:15:24 2016 diff -r 33effa89120a -r e8efe3b71cf0 images/example/bmskiptable1.bb --- a/images/example/bmskiptable1.bb Sat Feb 06 15:19:21 2016 +0900 +++ b/images/example/bmskiptable1.bb Sat Feb 06 16:37:39 2016 +0900 @@ -1,5 +1,5 @@ %%Title: images/example/bmskiptable1.pdf %%Creator: extractbb 20150315 %%BoundingBox: 0 0 318 67 -%%CreationDate: Fri Feb 5 17:02:19 2016 +%%CreationDate: Sat Feb 6 16:15:24 2016 diff -r 33effa89120a -r e8efe3b71cf0 images/example/bruteforth.bb --- a/images/example/bruteforth.bb Sat Feb 06 15:19:21 2016 +0900 +++ b/images/example/bruteforth.bb Sat Feb 06 16:37:39 2016 +0900 @@ -1,5 +1,5 @@ %%Title: images/example/bruteforth.pdf %%Creator: extractbb 20150315 -%%BoundingBox: 0 0 246 252 -%%CreationDate: Fri Feb 5 17:02:19 2016 +%%BoundingBox: 0 0 1281 1491 +%%CreationDate: Sat Feb 6 16:15:24 2016 diff -r 33effa89120a -r e8efe3b71cf0 images/example/dividefile.bb --- a/images/example/dividefile.bb Sat Feb 06 15:19:21 2016 +0900 +++ b/images/example/dividefile.bb Sat Feb 06 16:37:39 2016 +0900 @@ -1,5 +1,5 @@ %%Title: images/example/dividefile.pdf %%Creator: extractbb 20150315 %%BoundingBox: 0 0 2124 1236 -%%CreationDate: Fri Feb 5 17:02:19 2016 +%%CreationDate: Sat Feb 6 16:15:24 2016 diff -r 33effa89120a -r e8efe3b71cf0 images/example/includeiotask.bb --- a/images/example/includeiotask.bb Sat Feb 06 15:19:21 2016 +0900 +++ b/images/example/includeiotask.bb Sat Feb 06 16:37:39 2016 +0900 @@ -1,5 +1,5 @@ %%Title: images/example/includeiotask.pdf %%Creator: extractbb 20150315 %%BoundingBox: 0 0 385 245 -%%CreationDate: Fri Feb 5 17:02:19 2016 +%%CreationDate: Sat Feb 6 16:15:24 2016 diff -r 33effa89120a -r e8efe3b71cf0 images/example/iodivfail.bb --- a/images/example/iodivfail.bb Sat Feb 06 15:19:21 2016 +0900 +++ b/images/example/iodivfail.bb Sat Feb 06 16:37:39 2016 +0900 @@ -1,5 +1,5 @@ %%Title: images/example/iodivfail.pdf %%Creator: extractbb 20150315 %%BoundingBox: 0 0 666 215 -%%CreationDate: Fri Feb 5 17:02:19 2016 +%%CreationDate: Sat Feb 6 16:15:24 2016 diff -r 33effa89120a -r e8efe3b71cf0 images/example/iodivsuc.bb --- a/images/example/iodivsuc.bb Sat Feb 06 15:19:21 2016 +0900 +++ b/images/example/iodivsuc.bb Sat Feb 06 16:37:39 2016 +0900 @@ -1,5 +1,5 @@ %%Title: images/example/iodivsuc.pdf %%Creator: extractbb 20150315 %%BoundingBox: 0 0 664 215 -%%CreationDate: Fri Feb 5 17:02:19 2016 +%%CreationDate: Sat Feb 6 16:15:24 2016 diff -r 33effa89120a -r e8efe3b71cf0 images/example/wordcount.bb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/images/example/wordcount.bb Sat Feb 06 16:37:39 2016 +0900 @@ -0,0 +1,5 @@ +%%Title: images/example/wordcount.pdf +%%Creator: extractbb 20150315 +%%BoundingBox: 0 0 1272 720 +%%CreationDate: Sat Feb 6 16:15:24 2016 + diff -r 33effa89120a -r e8efe3b71cf0 images/example/wordcount.pdf Binary file images/example/wordcount.pdf has changed diff -r 33effa89120a -r e8efe3b71cf0 images/example/wordcountline.bb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/images/example/wordcountline.bb Sat Feb 06 16:37:39 2016 +0900 @@ -0,0 +1,5 @@ +%%Title: images/example/wordcountline.pdf +%%Creator: extractbb 20150315 +%%BoundingBox: 0 0 1230 372 +%%CreationDate: Sat Feb 6 16:15:24 2016 + diff -r 33effa89120a -r e8efe3b71cf0 images/example/wordcountline.pdf Binary file images/example/wordcountline.pdf has changed diff -r 33effa89120a -r e8efe3b71cf0 images/example/wordcountseparate.bb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/images/example/wordcountseparate.bb Sat Feb 06 16:37:39 2016 +0900 @@ -0,0 +1,5 @@ +%%Title: images/example/wordcountseparate.pdf +%%Creator: extractbb 20150315 +%%BoundingBox: 0 0 1272 363 +%%CreationDate: Sat Feb 6 16:15:24 2016 + diff -r 33effa89120a -r e8efe3b71cf0 images/example/wordcountseparate.pdf Binary file images/example/wordcountseparate.pdf has changed diff -r 33effa89120a -r e8efe3b71cf0 images/image.graffle --- a/images/image.graffle Sat Feb 06 15:19:21 2016 +0900 +++ b/images/image.graffle Sat Feb 06 16:37:39 2016 +0900 @@ -26,7 +26,7 @@ MasterSheets ModificationDate - 2016-02-06 06:17:03 +0000 + 2016-02-06 07:03:05 +0000 Modifier MasaKoha NotesVisible @@ -36697,6 +36697,110 @@ Bounds + {{459.05250628530149, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} + Class + ShapedGraphic + ID + 99 + Style + + shadow + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1404\cocoasubrtf340 +{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} +{\colortbl;\red255\green255\blue255;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs32 \cf0 \\0} + + + + Bounds + {{433.24841844191263, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} + Class + ShapedGraphic + ID + 98 + Style + + shadow + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1404\cocoasubrtf340 +{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} +{\colortbl;\red255\green255\blue255;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs32 \cf0 \\n} + + + + Bounds + {{459.05250628530149, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} + Class + ShapedGraphic + ID + 97 + Style + + shadow + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1404\cocoasubrtf340 +{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} +{\colortbl;\red255\green255\blue255;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs32 \cf0 \\0} + + + + Bounds + {{433.24841844191263, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} + Class + ShapedGraphic + ID + 96 + Style + + shadow + + Draws + NO + + + Text + + Text + {\rtf1\ansi\ansicpg932\cocoartf1404\cocoasubrtf340 +{\fonttbl\f0\fnil\fcharset0 HelveticaNeue;} +{\colortbl;\red255\green255\blue255;} +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\qc\partightenfactor0 + +\f0\fs32 \cf0 \\n} + + + + Bounds {{212.8858261672531, 170.0787417006305}, {132.75590671632563, 35}} Class ShapedGraphic @@ -36803,7 +36907,7 @@ Bounds - {{484.77559241367754, 104.88189071538879}, {37.322834984305047, 28.346456950105065}} + {{407.44433059852469, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -36829,7 +36933,7 @@ Bounds - {{447.45275742937241, 104.88189071538879}, {37.322834984305047, 28.346456950105065}} + {{381.64024275513583, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -36855,7 +36959,7 @@ Bounds - {{410.12992244506728, 104.88189071538879}, {37.322834984305047, 28.346456950105065}} + {{355.83615491174754, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -36881,7 +36985,7 @@ Bounds - {{372.80708746076226, 104.88189071538879}, {37.322834984305047, 28.346456950105065}} + {{330.03206706835903, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -36907,7 +37011,7 @@ Bounds - {{335.48425247645736, 104.88189071538879}, {37.322834984305047, 28.346456950105065}} + {{304.22797922497062, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -36933,7 +37037,7 @@ Bounds - {{298.16141749215245, 104.88189071538879}, {37.322834984305047, 28.346456950105065}} + {{278.42389138158188, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -36959,7 +37063,7 @@ Bounds - {{260.83858250784743, 104.88189071538879}, {37.322834984305047, 28.346456950105065}} + {{252.6198035381932, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -36985,7 +37089,7 @@ Bounds - {{223.51574752354244, 104.88189071538879}, {37.322834984305047, 28.346456950105065}} + {{226.81571569480502, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37011,7 +37115,7 @@ Bounds - {{186.19291253923731, 104.88189071538879}, {37.322834984305047, 28.346456950105065}} + {{201.01162785141645, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37027,7 +37131,7 @@ Bounds - {{148.87007755493235, 104.88189071538879}, {37.322834984305047, 28.346456950105065}} + {{175.20754000802793, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37053,7 +37157,7 @@ Bounds - {{111.5472425706275, 104.88189071538879}, {37.322834984305047, 28.346456950105065}} + {{149.40345216463959, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37079,7 +37183,7 @@ Bounds - {{74.224407586322485, 104.88189071538879}, {37.322834984305047, 28.346456950105065}} + {{123.59936432125124, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37105,7 +37209,7 @@ Bounds - {{36.901572602017431, 104.88189071538879}, {37.322834984305047, 28.346456950105065}} + {{97.795276477862529, 102.04724502037828}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37131,7 +37235,7 @@ Bounds - {{335.72047295104142, 334.48819201124002}, {132.75590671632563, 35}} + {{330.03206706835869, 286.29921519606137}, {132.75590671632563, 35}} Class ShapedGraphic FitText @@ -37184,7 +37288,7 @@ Bounds - {{335.72047295104142, 304.72441221362965}, {132.75590671632563, 35}} + {{330.03206706835869, 256.53543539845094}, {132.75590671632563, 35}} Class ShapedGraphic FitText @@ -37237,7 +37341,7 @@ Bounds - {{72.283465222767944, 334.48819201124002}, {132.75590671632563, 35}} + {{116.48631927081925, 286.29921519606137}, {132.75590671632563, 35}} Class ShapedGraphic FitText @@ -37285,12 +37389,12 @@ \deftab720 \pard\pardeftab720\qc\partightenfactor0 -\f0\fs32 \cf0 Line Num : 1} - - - - Bounds - {{72.283465222767944, 304.72441221362965}, {132.75590671632563, 35}} +\f0\fs32 \cf0 Line Num : 0} + + + + Bounds + {{116.48631927081925, 256.53543539845094}, {132.75590671632563, 35}} Class ShapedGraphic FitText @@ -37343,7 +37447,7 @@ Bounds - {{495.405513769967, 267.87401817849297}, {37.322834984305047, 28.346456950105065}} + {{407.44433059852412, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37369,7 +37473,7 @@ Bounds - {{458.08267878566187, 267.87401817849297}, {37.322834984305047, 28.346456950105065}} + {{381.64024275513538, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37395,7 +37499,7 @@ Bounds - {{420.75984380135674, 267.87401817849297}, {37.322834984305047, 28.346456950105065}} + {{355.83615491174686, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37421,7 +37525,7 @@ Bounds - {{383.43700881705172, 267.87401817849297}, {37.322834984305047, 28.346456950105065}} + {{330.03206706835869, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37447,7 +37551,7 @@ Bounds - {{346.11417383274681, 267.87401817849297}, {37.322834984305047, 28.346456950105065}} + {{304.22797922497017, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37473,7 +37577,7 @@ Bounds - {{308.79133884844191, 267.87401817849297}, {37.322834984305047, 28.346456950105065}} + {{263.72536033155058, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37499,7 +37603,7 @@ Bounds - {{271.46850386413689, 267.87401817849297}, {37.322834984305047, 28.346456950105065}} + {{237.92127248816189, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37525,7 +37629,7 @@ Bounds - {{212.8858261672531, 267.87401817849297}, {37.322834984305047, 28.346456950105065}} + {{212.1171846447732, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37551,7 +37655,7 @@ Bounds - {{175.56299118294797, 267.87401817849297}, {37.322834984305047, 28.346456950105065}} + {{186.31309680138483, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37567,7 +37671,7 @@ Bounds - {{138.24015619864295, 267.87401817849297}, {37.322834984305047, 28.346456950105065}} + {{160.50900895799626, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37593,7 +37697,7 @@ Bounds - {{100.9173212143381, 267.87401817849297}, {37.322834984305047, 28.346456950105065}} + {{134.70492111460791, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37619,7 +37723,7 @@ Bounds - {{63.594486230033056, 267.87401817849297}, {37.322834984305047, 28.346456950105065}} + {{108.9008332712192, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37645,7 +37749,7 @@ Bounds - {{26.27165124572803, 267.87401817849297}, {37.322834984305047, 28.346456950105065}} + {{83.096745427830854, 221.10236421081962}, {25.804087843388512, 28.346456950105065}} Class ShapedGraphic ID @@ -37737,7 +37841,7 @@ キャンバス 7 Frame - {{739, 151}, {1198, 966}} + {{722, 165}, {1198, 966}} ShowInfo ShowRuler diff -r 33effa89120a -r e8efe3b71cf0 master_paper.pdf Binary file master_paper.pdf has changed