作者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
1F:推 joeboy229:懂了!!感激不尽 06/02 16:31
2F:推 complication:原来是这样@@ 06/04 02:07