comparison May-2013/7th.html @ 0:c9b2998eb516

add slide
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Tue, 10 Dec 2013 15:25:07 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c9b2998eb516
1 <!DOCTYPE html>
2
3 <!--
4 Google HTML5 slide template
5
6 Authors: Luke Mahé (code)
7 Marcin Wichary (code and design)
8
9 Dominic Mazzoni (browser compatibility)
10 Charles Chen (ChromeVox support)
11
12 URL: http://code.google.com/p/html5slides/
13 -->
14
15 <html>
16 <head>
17 <title>2013-05-07</title>
18
19 <meta charset='utf-8'>
20 <script
21 src='http://html5slides.googlecode.com/svn/trunk/slides.js'></script>
22 </head>
23
24 <style>
25 /* Your individual styles here, or just use inline styles if that’s
26 what you want. */
27 .slides article { background-image: none !important; background-color: white; }
28
29
30 </style>
31
32 <body style='display: none'>
33
34 <section class='slides layout-regular template-default'>
35
36 <!-- Your slides (<article>s) go here. Delete or comment out the
37 slides below.-->
38
39 <article>
40 <h1>
41 Ceriumによる
42 <br>
43 正規表現マッチャの実装
44 </h1>
45 <p>
46 Masataka Kohagura
47 <br>
48 7th May , 2013
49 </p>
50 </article>
51
52 <article>
53 <h3>
54 研究目的
55 </h3>
56 <p>
57 本研究室では、Cell用に作られたCeriumにて並列プログラミングを行なっている。
58 近年、マルチコアCPUが主流となっているが、それをフルに使用させるためにはプログラムの並列度を上げる必要がある。(続く)
59 </p>
60 <p>
61 現在は正規表現を並列実装している段階である。
62 </p>
63 </article>
64
65 <article>
66 <h3>
67 今週までにしたこと
68 </h3>
69 <p>
70 C言語ポインタ完全制覇でポインタの勉強(半分ほど)
71 </p>
72 <p>
73
74 </p>
75 </article>
76
77 <article class='smaller'>
78 <h3>
79 Exec.cc
80 </h3>
81 <section>
82 <pre>
83
84 for (; i < length; i++) {
85 if (i_data[i] == 0x0A) {
86
87 if (match_flag == true) {
88 line_print(line_num,line_length,line_data);
89 }
90 match_flag = false;
91 line_length = 0;
92 line_num++;
93 } else {
94 line_data[line_length] = i_data[i];
95 line_length++;
96 if (i_data[i] == 0x61) {
97 a_flag = true;
98 }else if ((i_data[i] == 0x62) && (a_flag == true)) {
99 match_flag = true;
100 }else if (i_data[i] == 0x20) {
101 a_flag = false;
102 }
103 }
104 }
105 </pre>
106 </article>
107 <article class='smaller'>
108 <h3>
109 line_print(line_num,line_length,line_data);
110 </h3>
111 <section>
112 <pre>
113 void line_print(int _line_num,int _line_length,char *input_data){
114
115 printf("%d : ",_line_num);
116 for (int k = 0; k < _line_length; k++) {
117 printf("%c",input_data[k]);
118 }
119 printf("\n");
120 }
121 </pre>
122 </section>
123 </article>
124
125 <article class='smaller'>
126 <h3>
127 実行結果(分割されないような小さなファイル)
128 </h3>
129 <section>
130 <pre>
131 [Masa]~% ./regex -file b.txt [~/hg/Cerium/example/regex_mas]
132 1 : ab aaa dddd ssss abab
133 2 : ab bbbbbbbbbb aaaaaaa
134 4 : ab aaaab
135 </pre>
136 <h3>
137 実行結果(分割されるようなファイル)
138 </h3>
139 <pre>
140 [Masa]~% ./regex -file c.txt [~/hg/Cerium/example/regex_mas]
141 1 : Pakistan who've volunteered to join private militias, called lashkars. These groups have vowed to help Pakistan's military in fighting the Taliban.
142 5 : Pakistani military officials credit the lashkars with helping chase the Taliban out of Swat Valley and neighboring districts once infested with the militants.
143 6 : Pakistan who've volunteered to join private militias, called lashkars. These groups have vowed to help Pakistan's military in fighting the Taliban.
144 [中略]
145 196 : Pakistan who've volunteered to join private militias, called lashkars. These groups have vowed to help Pakistan's military in fighting the Taliban.
146 200 : Pakistani military officials credit the lashkars with helping chase the Taliban out of Swat Valley and neighboring districts once infested with the militants.
147 1 : red to join private militias, called lashkars. These groups have vowed to help Pakistan's military in fighting the Taliban.
148 5 : Pakistani military officials credit the lashkars with helping chase the Taliban out of Swat Valley and neighboring districts once infested with the militants.
149 </pre>
150 </section>
151 </article>
152
153 </body>
154 </html>