comparison 2015/0811.html @ 33:8a5b151da414

add 0804.html
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Tue, 11 Aug 2015 18:35:42 +0900
parents 2015/0804.html@1b92285a767a
children 60a678b8539c
comparison
equal deleted inserted replaced
32:1b92285a767a 33:8a5b151da414
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="content-type" content="text/html;charset=utf-8">
5 <title>seminar</title>
6
7 <!--
8 Notes on CSS media types used:
9
10 1) projection -> slideshow mode (display one slide at-a-time; hide all others)
11 2) screen -> outline mode (display all slides-at-once on screen)
12 3) print -> print (and print preview)
13
14 Note: toggle between projection/screen (that is, slideshow/outline) mode using t-key
15
16 Questions, comments?
17 - send them along to the mailinglist/forum online @ http://groups.google.com/group/webslideshow
18 -->
19
20 <!-- styles -->
21 <style media="screen,projection">
22
23 html,
24 body,
25 .presentation { margin: 0; padding: 0; }
26
27 .slide { display: none;
28 position: absolute;
29 top: 0; left: 0;
30 margin: 0;
31 border: none;
32 padding: 2% 4% 0% 4%; /* css note: order is => top right bottom left */
33 -moz-box-sizing: border-box;
34 -webkit-box-sizing: border-box;
35 box-sizing: border-box;
36 width: 100%; height: 100%; /* css note: lets use border-box; no need to add padding+border to get to 100% */
37 overflow-x: hidden; overflow-y: auto;
38 z-index: 2;
39 }
40
41 .slide.current { display: block; } /* only display current slide in projection mode */
42
43 .slide .stepcurrent { color: black; }
44 .slide .step { color: silver; } /* or hide next steps e.g. .step { visibility: hidden; } */
45
46 .slide {
47 /*
48 background-image: -webkit-linear-gradient(top, blue, aqua, blue, aqua);
49 background-image: -moz-linear-gradient(top, blue, aqua, blue, aqua);
50 */
51 }
52 </style>
53
54 <style media="screen">
55 .slide { border-top: 1px solid #888; }
56 .slide:first-child { border: none; }
57 </style>
58
59 <style media="print">
60 .slide { page-break-inside: avoid; }
61 .slide h1 { page-break-after: avoid; }
62 .slide ul { page-break-inside: avoid; }
63 </style>
64
65
66 <!-- add js lib (jquery) -->
67 <script src="js/jquery-1.7.min.js"></script>
68
69 <!-- S6 JS -->
70 <script src="js/jquery.slideshow.js"></script>
71 <script src="js/jquery.slideshow.counter.js"></script>
72 <script src="js/jquery.slideshow.controls.js"></script>
73 <script>
74 $(document).ready( function() {
75 Slideshow.init();
76
77 // Example 2: Start Off in Outline Mode
78 // Slideshow.init( { mode: 'outline' } );
79
80 // Example 3: Use Custom Transition
81 // Slideshow.transition = transitionScrollUp;
82 // Slideshow.init();
83
84 // Example 4: Start Off in Autoplay Mode with Custom Transition
85 // Slideshow.transition = transitionScrollUp;
86 // Slideshow.init( { mode: 'autoplay' } );
87 } );
88 </script>
89
90 </head>
91 <body>
92
93 <div class="presentation">
94
95 <div class='slide cover'>
96 <table width="90%" height="90%" border="0" align="center">
97 <tr>
98 <td><div align="center">
99 <h1>Cerium 上での正規表現の実装</h1>
100 </div>
101 </td>
102 </tr>
103 <tr>
104 <td><div align="right">
105 <name>Masataka Kohagura 4th, August , 2015</name>
106 </div></td>
107 </tr>
108 </tr>
109 </table>
110 </div>
111
112 <div id="cover">
113 <h1>研究目的</h1>
114 正規表現はオートマトンに変換することができ、 そしてオートマトンの受理の問題は Class NC と呼ばれる問題でもある。<br>
115 この問題は計算機の台数が多ければ多いほど高速化できるという特徴を持ち、並列化に向いている問題といえる。<br>
116 コンピュータの動作やゲームの動作などの多くの問題はオートマトンの受理問題に落としこむことができるので、この問題を解決すれば様々な問題に対応できるようになる。<br>
117 本研究では正規表現を並列処理で実装することによってこの問題を解決し、Class NC に対応するライブラリを作成する。
118 </ul>
119 </div>
120
121 <div id="cover">
122 <h1>現在していること</h1>
123 <p>正規表現の Subset Constraction の状態の集合を生成するために正規表現の Parser を記述している</p>
124 <p>正規表現の Parser によって生成された Tree が</p>
125 </div>
126
127 <div id="cover">
128 <h1>どのように正規表現の Parser によって生成された木を表示させるか</h1>
129 <pre>
130 <code>
131 % ./regexParser -regex abc
132
133 #-c
134 #-+
135 # #-b
136 +
137 #-a
138
139 % ./regexParser -regex (a*|bc)d
140
141
142 #-d
143 +
144 # #-c
145 # #-+
146 # # #-b
147 #-|
148 #
149 #-*
150 #-a
151
152 </code>
153 </pre>
154 <p>string なのか literal なのか判断しないで createNode をしてる</p>
155 </div>
156
157 <div id="cover">
158 <h1>問題点</h1>
159 <p>正規表現 a*b の tree 構造(本当はこうなってほしい)</p>
160
161 <object data="images/vector/aastabtrue.svg" type="image/svg+xml"></object><br>
162 <p>正規表現 a*b の tree 構造(現状)</p>
163 <object data="images/vector/aastabfalse.svg" type="image/svg+xml"></object><br>
164 </div>
165
166 <!--
167 <pre>
168 <code>
169 NodePtr string() {
170 char c = *ptr;
171 NodePtr n = NULL;
172 if (isLiteral(c)) {
173 n = createNode(0,literal(),string());
174 } else {
175 n = createNode(0,0,0);
176 }
177 return n;
178 }
179 </code>
180 </pre>
181 <p>string なのか literal なのか判断しないで createNode をしてる</p>
182 </div>
183 -->
184
185 <div id="cover">
186 <h1>これからすること</h1>
187 <ul>
188 <li>
189 tree 生成の修正
190 </li>
191 <li>
192 tree を見やすく表示
193 </li>
194 </ul>
195 </div>
196
197
198 <!--
199 <div id="cover">
200 <h1>今週のしたこと</h1>
201 例題 : ab(ab)+
202 <ul>
203 <object data="images/vector/abab.svg" type="image/svg+xml"></object><br>
204 </ul>
205 テキストが abab の途中で分割される場合を考える
206 <ul>
207 <object data="images/vector/ababautomata.svg" type="image/svg+xml"></object><br>
208 </ul>
209 分割されたファイルの1コ前の終わりが状態(3)の場合で、分割されたファイルの先頭が b の場合状態(4)に遷移して受理される。(正規表現にマッチする)
210 <ul>
211 <object data="images/vector/ababtable.svg" type="image/svg+xml"></object><br>
212 </ul>
213 <ul>
214 <object data="images/vector/bitvectorTable.svg" type="image/svg+xml"></object><br>
215 </ul>
216 </div>
217 -->
218
219 <!--
220 <div id="cover">
221 <h1>prog</h1>
222 <ul>
223 <li>
224
225 </li>
226
227 <pre>
228 <code>
229 typedef struct SDL_AudioSpec {
230 int freq; /** DSP frequency samples per second */
231 Uint16 format; /** Audio data format */
232 Uint8 channels; /** Number of channels: 1 mono, 2 stereo */
233 Uint8 silence; /** Audio buffer silence value (calculated) */
234 Uint16 samples; /** Audio buffer size in samples (power of 2) */
235 Uint16 padding; /** Necessary for some compile environments */
236 Uint32 size; /** Audio buffer size in bytes (calculated) */
237 void (SDLCALL *callback)(void *userdata, Uint8 *stream, int len);
238 void *userdata;
239 } SDL_AudioSpec;
240 </code>
241 </pre>
242 <img src="./images/sqrWave.png" width="50%" height="">
243 </ul>
244 </div>
245
246 -->
247
248 </div> <!-- presentation -->
249 </body>
250 </html>