作者zptdaniel ()
看板TransCSI
標題Re: [問題] 97台聯計概第9題
時間Mon Jun 1 22:31:16 2009
※ 引述《joeboy229 (高橋)》之銘言:
: 有關於遊程編碼(run-length)還不是很了解
: 只知道是用在壓縮資料
: Assume an image is represented by mostly 0s and some 1s.
: Use the run-length encoding algorithm to compress the
: string"00000 1 000 11 000000 1 000".By using a 4-bit binary
Run-length 好像是將一連串重複的資料化簡後來表示
這題的話應該是要化簡兩個1之間的0
00000,1,000,1 1,000000,1,000
5 3 0 6 3
0101 0011 0000 0110 0011
5 3 0 6 3
所以答案 B
: number for counting,the output should be:
: (1) 0101 1011 1000 1110 1011
: (2)0101 0011 0000 0110 0011
: (3)0101 1010
: (4)0001 0001 1101 0000
--
當財團老闆在剝削欺壓勞工階層時,我保持沉默,因為我不是廣大勞動階層。
當兩黨惡鬥階級世襲社會不公不義,我保持沉默,因為我非藍非綠中間選民。
當學測考40幾級分的權貴當醫生時,沒有人作聲,因為全都死在手術檯上了。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.194.100.216
推 joeboy229:懂了!!感激不盡 06/02 16:31
推 complication:原來是這樣@@ 06/04 02:07