-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnstructured-Data.html
More file actions
6320 lines (3309 loc) · 60.6 KB
/
Copy pathUnstructured-Data.html
File metadata and controls
6320 lines (3309 loc) · 60.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<title>非結構化的資料處理</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<base target="_blank">
<script type="text/javascript">
var SLIDE_CONFIG = {
// Slide settings
settings: {
title: '非結構化的資料處理',
useBuilds: true,
usePrettify: true,
enableSlideAreas: true,
enableTouch: true,
},
// Author information
presenters: [
{
name: 'Wush Wu' ,
company: '',
gplus: '',
twitter: '',
www: '',
github: ''
},
]
};
</script>
<link href="Unstructured-Data_files/ioslides-13.5.1/fonts/fonts.css" rel="stylesheet" />
<link href="Unstructured-Data_files/ioslides-13.5.1/theme/css/default.css" rel="stylesheet" />
<link href="Unstructured-Data_files/ioslides-13.5.1/theme/css/phone.css" rel="stylesheet" />
<script src="Unstructured-Data_files/ioslides-13.5.1/js/modernizr.custom.45394.js"></script>
<script src="Unstructured-Data_files/ioslides-13.5.1/js/prettify/prettify.js"></script>
<script src="Unstructured-Data_files/ioslides-13.5.1/js/prettify/lang-r.js"></script>
<script src="Unstructured-Data_files/ioslides-13.5.1/js/prettify/lang-yaml.js"></script>
<script src="Unstructured-Data_files/ioslides-13.5.1/js/hammer.js"></script>
<script src="Unstructured-Data_files/ioslides-13.5.1/js/slide-controller.js"></script>
<script src="Unstructured-Data_files/ioslides-13.5.1/js/slide-deck.js"></script>
<style type="text/css">
b, strong {
font-weight: bold;
}
em {
font-style: italic;
}
summary {
display: list-item;
}
slides > slide {
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
}
.auto-fadein {
-webkit-transition: opacity 0.6s ease-in;
-webkit-transition-delay: 0.4s;
-moz-transition: opacity 0.6s ease-in 0.4s;
-o-transition: opacity 0.6s ease-in 0.4s;
transition: opacity 0.6s ease-in 0.4s;
opacity: 0;
}
/* https://github.com/ropensci/plotly/pull/524#issuecomment-468142578 */
slide:not(.current) .plotly.html-widget{
display: block;
}
</style>
<link rel="stylesheet" href="unstructured-data.css" type="text/css" />
<link rel="stylesheet" href="../css/dsp.css" type="text/css" />
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/wush-custom.css" type="text/css" />
</head>
<body style="opacity: 0">
<slides class="layout-widescreen">
<slide class="title-slide segue nobackground">
<!-- The content of this hgroup is replaced programmatically through the slide_config.json. -->
<hgroup class="auto-fadein">
<h1 data-config-title><!-- populated from slide_config.json --></h1>
<h2 data-config-subtitle><!-- populated from slide_config.json --></h2>
<p data-config-presenter><!-- populated from slide_config.json --></p>
<p style="margin-top: 6px; margin-left: -2px;">2019/5/8</p>
</hgroup>
</slide>
<slide class=""><hgroup><h2>課程大綱</h2></hgroup><article id="section">
<ul>
<li>純文字的資料處理
<ul>
<li>分割與擷取</li>
<li>搜尋與取代</li>
<li>正則表示式</li>
</ul></li>
<li>中文資料的編碼</li>
<li>練習</li>
</ul>
</article></slide><slide class="segue dark nobackground level1"><hgroup class = 'auto-fadein'><h2>純文字的資料處理</h2></hgroup><article id="section-1">
</article></slide><slide class=""><hgroup><h2><code>strsplit</code></h2></hgroup><article id="strsplit">
<pre class = 'prettyprint lang-r'>args(strsplit)</pre>
<pre >## function (x, split, fixed = FALSE, perl = FALSE, useBytes = FALSE)
## NULL</pre>
<pre class = 'prettyprint lang-r'>strsplit("abc", "a")</pre>
<pre >## [[1]]
## [1] "" "bc"</pre>
<pre class = 'prettyprint lang-r'>strsplit(c("abc", "baca"), "a")</pre>
<pre >## [[1]]
## [1] "" "bc"
##
## [[2]]
## [1] "b" "c"</pre>
</article></slide><slide class=""><hgroup><h2>利用<code>strsplit</code>搭配中括號抓取資料</h2></hgroup><article id="strsplit-1">
<ul>
<li>能不能利用 <code>strsplit</code> 找出 <code><author>...</author></code> 之間的文字?</li>
</ul>
<pre ><fortune>
<quote>Okay, let's stand up and be counted: who has been writing diamond graph code? Mine's 60 lines.</quote>
<author>Barry Rowlingson</author>
<context>in a discussion about the patent for diamond graphs</context>
<source>R-help</source>
<date>August 2003</date>
</fortune>
<fortune>
<quote>Bug, undocumented behaviour, feature? I don't know. It all seems to work in 1.6.0, so everyone should downgrade now... :)</quote>
<author>Barry Rowlingson</author>
<context>NA</context>
<source>R-help</source>
<date>July 2003</date>
</fortune>
<fortune>
<quote>I'm always thrilled when people discover what lexical scoping really means.</quote>
<author>Robert Gentleman</author>
<context>NA</context>
<source>Statistical Computing 2003, Reisensburg</source>
<date>June 2003</date>
</fortune>
<fortune>
<quote>My institution has a particularly diabolical policy on intellectual property, especially on software.</quote>
<author>Ross Ihaka</author>
<context>NA</context>
<source>R-help</source>
<date>August 2003</date>
</fortune>
<fortune>
<quote>If you imagine that this pen is Trellis, then Lattice is not this pen.</quote>
<author>Paul Murrell</author>
<context>on the difference of Lattice (which eventually was called grid) and Trellis</context>
<source>DSC 2001, Wien</source>
<date>March 2001</date>
</fortune></pre>
</article></slide><slide class=""><hgroup><h2><code>strsplit</code></h2></hgroup><article id="strsplit-2">
<pre class = 'prettyprint lang-r'>x <- readLines("http://homepage.ntu.edu.tw/~wush978/rdataengineer/fortunes.xml")
. <- strsplit(x, "<author>")</pre>
<ul>
<li>在<code>.</code>中(<code>.</code>是<code>list</code>)
<ul>
<li>原文有<code><author></code>的字串,會被分割為長度是 2 的字串</li>
<li>原文沒有<code><author></code>的字串,長度是1</li>
</ul></li>
</ul>
<pre class = 'prettyprint lang-r'>length(.[[1]])</pre>
<pre >## [1] 1</pre>
<pre class = 'prettyprint lang-r'>length(.[[3]])</pre>
<pre >## [1] 2</pre>
</article></slide><slide class=""><hgroup><h2><code>strsplit</code></h2></hgroup><article id="strsplit-3">
<ul>
<li>寫迴圈處理</li>
</ul>
<pre class = 'prettyprint lang-r'>.tokens <- c()
for(.token in .) {
if (length(.token) == 2) stop("")
}</pre>
<ul>
<li>與R互動,看看<code>.token</code></li>
</ul>
<pre class = 'prettyprint lang-r'>.tokens <- c()
for(.token in .) {
if (length(.token) == 2) .tokens <- c(.tokens, .token[2])
}
.tokens</pre>
<pre >## [1] "Barry Rowlingson</author>" "Barry Rowlingson</author>"
## [3] "Robert Gentleman</author>" "Ross Ihaka</author>"
## [5] "Paul Murrell</author>"</pre>
</article></slide><slide class=""><hgroup><h2><code>strsplit</code></h2></hgroup><article id="strsplit-4">
<ul>
<li>再用<code></author></code>切一次</li>
</ul>
<pre class = 'prettyprint lang-r'>. <- strsplit(.tokens, "</author>")
unlist(.)</pre>
<pre >## [1] "Barry Rowlingson" "Barry Rowlingson" "Robert Gentleman"
## [4] "Ross Ihaka" "Paul Murrell"</pre>
</article></slide><slide class=""><hgroup><h2>小挑戰</h2></hgroup><article id="section-2">
<ul>
<li>請用相同的作法,找出<code>x</code>中的<code><date></code>與<code></date></code>之間的文字</li>
</ul>
<pre class = 'prettyprint lang-r'>download.file(
"http://homepage.ntu.edu.tw/~wush978/rdataengineer/fortunes250.xml.gz",
destfile = .tmp.path <- tempfile(fileext = ".gz"),
mode = "wb"
)
x250 <- readLines(.tmp.path)</pre>
<ul>
<li>請用相同的作法,找出<code>x250</code>中的<code><date></code>與<code></date></code>之間的文字</li>
</ul>
</article></slide><slide class=""><hgroup><h2><code>strsplit</code>的<code>fixed</code>參數</h2></hgroup><article id="strsplitfixed">
<pre class = 'prettyprint lang-r'>strsplit("a.b.c", ".")</pre>
<pre >## [[1]]
## [1] "" "" "" "" ""</pre>
<pre class = 'prettyprint lang-r'>strsplit("a.b.c", ".", fixed = TRUE)</pre>
<pre >## [[1]]
## [1] "a" "b" "c"</pre>
<ul>
<li><code>.</code> 是正則表示式的特殊字元,有特殊的含意
<ul>
<li><code>fixed = TRUE</code>之後,R會忽略正則表示式</li>
</ul></li>
</ul>
</article></slide><slide class=""><hgroup><h2>搜尋 <code>grep</code></h2></hgroup><article id="grep">
<pre class = 'prettyprint lang-r'>grep(pattern = "author", x)</pre>
<pre >## [1] 3 10 17 24 31</pre>
<pre class = 'prettyprint lang-r'>grep(pattern = "author", x, value = TRUE)</pre>
<pre >## [1] " <author>Barry Rowlingson</author>"
## [2] " <author>Barry Rowlingson</author>"
## [3] " <author>Robert Gentleman</author>"
## [4] " <author>Ross Ihaka</author>"
## [5] " <author>Paul Murrell</author>"</pre>
<pre class = 'prettyprint lang-r'>grepl(pattern = "author", x)</pre>
<pre >## [1] FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE
## [12] FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE
## [23] FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE
## [34] FALSE FALSE</pre>
</article></slide><slide class=""><hgroup><h2>取代 <code>gsub</code></h2></hgroup><article id="gsub">
<pre class = 'prettyprint lang-r'>(. <- grep(pattern = "author", x[1:10], value = TRUE))</pre>
<pre >## [1] " <author>Barry Rowlingson</author>"
## [2] " <author>Barry Rowlingson</author>"</pre>
<pre class = 'prettyprint lang-r'>(. <- gsub(pattern = " <author>", replacement = "", ., fixed = TRUE))</pre>
<pre >## [1] "Barry Rowlingson</author>" "Barry Rowlingson</author>"</pre>
<pre class = 'prettyprint lang-r'>(. <- gsub(pattern = "</author>", replacement = "", ., fixed = TRUE))</pre>
<pre >## [1] "Barry Rowlingson" "Barry Rowlingson"</pre>
</article></slide><slide class=""><hgroup><h2>小挑戰</h2></hgroup><article id="section-3">
<ul>
<li>怎麼用上面的方式,找出名字中包含<code>Paul</code>的人?</li>
<li>尋找<code>x250</code>中<code><author></code>與<code></author></code>中包含Paul的人</li>
</ul>
</article></slide><slide class=""><hgroup><h2>正則表示式:大絕招</h2></hgroup><article id="section-4">
<p>正則表示式是一種描述文字模式的語言。 它不是單純依照應用歸納出來的工具,背後具有相當的數學基礎。 正則表示式的誕生,來自於美國數學家Stephen Cole Kleene在超過半個世紀之前的研究成果:Kleene (1956)。 目前各種程式語言中,幾乎都內建正則表示式,但是他們的語法主要分成兩個派系:</p>
<pre >一種語法出自於電機電子工程師學會(IEEE)制定的標準
一種語法,則來自於另一個程式語言:Perl</pre>
<p>正則表示是可以讓我們撰寫程式來自文字中比對、取代甚至是抽取各種資訊。以下我們將從簡單的應用開始介紹。</p>
</article></slide><slide class=""><hgroup><h2><code>grep</code></h2></hgroup><article id="grep-1" class="r-source-small">
<pre class = 'prettyprint lang-r'>grep("<author>.*Paul.*</author>", x, value = TRUE)</pre>
<pre >## [1] " <author>Paul Murrell</author>"</pre>
<pre class = 'prettyprint lang-r'>grep("<author>.*Paul.*</author>", x250, value = TRUE)</pre>
<pre >## [1] " <author>Paul Murrell</author>"
## [2] " <author>Paul Gilbert, Douglas Bates, and Brian D. Ripley</author>"
## [3] " <author>Paul Murrell</author>"
## [4] " <author>Gustaf Rydevik and Paul Gilbert</author>"
## [5] " <author>Paul R. Stanley</author>"</pre>
<ul>
<li><code>pattern</code>參數中的<code>"<author>.*Paul.*</author>"</code>
<ul>
<li><code>.</code>與<code>.*</code>是特殊字元</li>
<li><code>.</code>代表一個任意字元</li>
<li><code>*</code>代表前面的符號重複無限次</li>
<li><code>.*</code>代表任意長度的任意符號</li>
</ul></li>
</ul>
</article></slide><slide class=""><hgroup><h2>子模式(sub-pattern),用<code>(</code>與<code>)</code>表示</h2></hgroup><article id="sub-pattern">
<pre class = 'prettyprint lang-r'>m <- regexec("<author>(.*)</author>", x)
. <- regmatches(x, m)
.[1:5]</pre>
<pre >## [[1]]
## character(0)
##
## [[2]]
## character(0)
##
## [[3]]
## [1] "<author>Barry Rowlingson</author>" "Barry Rowlingson"
##
## [[4]]
## character(0)
##
## [[5]]
## character(0)</pre>
</article></slide><slide class=""><hgroup><h2>適當的利用<code>sapply</code>化簡程式碼</h2></hgroup><article id="sapply">
<ul>
<li>在字串處理時,常常需要對每一個list的element作挑選或計算長度</li>
<li><code>sapply(., length)</code>可以得到每一個element的長度</li>
<li><code>sapply(., "[", 2)</code>可以得到每一個element vector的第二個element</li>
</ul>
<pre class = 'prettyprint lang-r'>(. <- .[sapply(., length) == 2])</pre>
<pre >## [[1]]
## [1] "<author>Barry Rowlingson</author>" "Barry Rowlingson"
##
## [[2]]
## [1] "<author>Barry Rowlingson</author>" "Barry Rowlingson"
##
## [[3]]
## [1] "<author>Robert Gentleman</author>" "Robert Gentleman"
##
## [[4]]
## [1] "<author>Ross Ihaka</author>" "Ross Ihaka"
##
## [[5]]
## [1] "<author>Paul Murrell</author>" "Paul Murrell"</pre>
<pre class = 'prettyprint lang-r'>sapply(., "[", 2)</pre>
<pre >## [1] "Barry Rowlingson" "Barry Rowlingson" "Robert Gentleman"
## [4] "Ross Ihaka" "Paul Murrell"</pre>
<ul>
<li>不熟悉的同學,仍然可以寫迴圈慢慢作</li>
</ul>
</article></slide><slide class=""><hgroup><h2>參考閱讀</h2></hgroup><article id="section-5">
<ul>
<li><a href='https://datascienceandr.org/articles/RegularExpression.html' title=''>正則表示式:文字處理的大絕招</a></li>
</ul>
</article></slide><slide class=""><hgroup><h2>練習</h2></hgroup><article id="section-6">
<ul>
<li>用正則表示式,找出x250中包含<code>Ripley</code>的那行文字</li>
<li>尋找<code>x250</code>中<code><author></code>與<code></author></code>中包含<code>Ripley</code>的人</li>
<li>找出所有出現過的作者,與他們的出現次數(還要用 and 做切割)</li>
</ul>
<aside class='note'><section><pre class = 'prettyprint lang-r'>grep("Ripley", x250, value = TRUE)
grep("<author>.*Ripley.*</author>", x250, value = TRUE)
m <- regexec("<author>(.*)</author>", x250)
. <- regmatches(x250, m)
. <- .[sapply(., length) >= 2]
. <- sapply(., "[", 2)
. <- strsplit(., split = "and")
. <- unlist(.)
. <- trimws(.)
sort(table(.))</pre></section></aside>
</article></slide><slide class=""><hgroup><h2>編碼問題</h2></hgroup><article id="section-7">
<ul>
<li>電腦的資料,最終都是0和1</li>
<li>怎麼把一連串的0和1解讀成數字或文字?型態</li>
</ul>
<pre class = 'prettyprint lang-r'>(. <- as.raw(17))</pre>
<pre >## [1] 11</pre>
<ul>
<li>這是 0 / 1 的十六進位表示法</li>
<li><code>11</code> 代表 <code>1 * 16 + 1</code></li>
</ul>
<pre class = 'prettyprint lang-r'>showBits <- function(r) stats::symnum(as.logical(rawToBits(r)), symbols = c("0", "1"))
showBits(as.raw(17))</pre>
<pre >## [1] 1 0 0 0 1 0 0 0</pre>
</article></slide><slide class=""><hgroup><h2>編碼問題</h2></hgroup><article id="section-8" class="height-80p">
<ul>
<li>一個整數在R中有4個bytes(8個0/1)
<ul>
<li>一個bytes可以用兩個16進位表示,稱為<code>hex code</code></li>
</ul></li>
</ul>
<div class="bigtable">
<table>
<thead>
<tr>
<th style="text-align:center;">
int
</th>
<th style="text-align:center;">
hex
</th>
<th style="text-align:center;">
bits
</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center;">
0
</td>
<td style="text-align:center;">
00
</td>
<td style="text-align:center;">
00000000
</td>
</tr>
<tr>
<td style="text-align:center;">
1
</td>
<td style="text-align:center;">
01
</td>
<td style="text-align:center;">
10000000
</td>
</tr>
<tr>
<td style="text-align:center;">
2
</td>
<td style="text-align:center;">
02
</td>
<td style="text-align:center;">
01000000
</td>
</tr>
<tr>
<td style="text-align:center;">
3
</td>
<td style="text-align:center;">
03
</td>
<td style="text-align:center;">
11000000
</td>
</tr>
<tr>
<td style="text-align:center;">
4
</td>
<td style="text-align:center;">
04
</td>
<td style="text-align:center;">
00100000
</td>
</tr>
<tr>
<td style="text-align:center;">
5
</td>
<td style="text-align:center;">
05
</td>
<td style="text-align:center;">
10100000
</td>
</tr>
<tr>
<td style="text-align:center;">
6
</td>
<td style="text-align:center;">
06
</td>
<td style="text-align:center;">
01100000
</td>
</tr>
<tr>
<td style="text-align:center;">
7
</td>
<td style="text-align:center;">
07
</td>
<td style="text-align:center;">
11100000
</td>
</tr>
<tr>
<td style="text-align:center;">
8
</td>
<td style="text-align:center;">
18
</td>
<td style="text-align:center;">
00011000
</td>
</tr>
<tr>
<td style="text-align:center;">
9
</td>
<td style="text-align:center;">
19
</td>
<td style="text-align:center;">
10011000
</td>
</tr>
<tr>
<td style="text-align:center;">
10
</td>
<td style="text-align:center;">
1a
</td>
<td style="text-align:center;">
01011000
</td>
</tr>
<tr>
<td style="text-align:center;">
11
</td>
<td style="text-align:center;">
1b
</td>
<td style="text-align:center;">
11011000
</td>
</tr>
<tr>
<td style="text-align:center;">
12
</td>
<td style="text-align:center;">
1c
</td>
<td style="text-align:center;">
00111000
</td>
</tr>
<tr>
<td style="text-align:center;">
13
</td>
<td style="text-align:center;">
1d
</td>
<td style="text-align:center;">
10111000
</td>
</tr>
<tr>
<td style="text-align:center;">
14
</td>
<td style="text-align:center;">
1e
</td>
<td style="text-align:center;">
01111000
</td>
</tr>
<tr>
<td style="text-align:center;">
15
</td>
<td style="text-align:center;">
1f
</td>
<td style="text-align:center;">
11111000
</td>
</tr>
<tr>
<td style="text-align:center;">
16
</td>
<td style="text-align:center;">
20
</td>
<td style="text-align:center;">
00000100
</td>
</tr>
<tr>
<td style="text-align:center;">
17
</td>
<td style="text-align:center;">
21
</td>
<td style="text-align:center;">
10000100
</td>
</tr>
<tr>
<td style="text-align:center;">
18
</td>
<td style="text-align:center;">
22
</td>
<td style="text-align:center;">
01000100
</td>
</tr>
<tr>
<td style="text-align:center;">
19
</td>
<td style="text-align:center;">
23
</td>
<td style="text-align:center;">
11000100
</td>
</tr>
<tr>
<td style="text-align:center;">
20
</td>
<td style="text-align:center;">
24
</td>
<td style="text-align:center;">
00100100
</td>
</tr>
<tr>
<td style="text-align:center;">
21
</td>
<td style="text-align:center;">
25
</td>
<td style="text-align:center;">
10100100
</td>
</tr>
<tr>
<td style="text-align:center;">
22
</td>
<td style="text-align:center;">
26