SlideShare uma empresa Scribd logo
1 de 10
Baixar para ler offline
1
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
1/20
Lecture 07
Nov. 03, 2022
Instructor:高立人
電子工程研究所
國立臺北科技大學
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
2/20
Arithmetic Code
Incremental Coding
November 3, 2022
2
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
3/20
Incremental Coding
 Incremental Coding: Further Analysis
 Bits sent to output bit stream in the process of encoding.
 For large N, we have u(n)=l(n) due to finite precision.
 Observe
 If u(n) = 0.b1b2…bk X X X
 If l(n) = 0.b1b2…bk X X X
 Do we have Tb = 0.b1b2…bk X X X ?
November 3, 2022
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
4/20
Incremental Coding
 Incremental Coding: Further Analysis Cont.
 Recall Arithmetic Coding:
 A symbol sequence:
       
   
       
   
n
X
n
n
n
n
n
X
n
n
n
n
x
F
l
u
l
u
x
F
l
u
l
l 1
1
1
1
1
1
1



















Y
N
x
x
x 2
1
     
 
 
   
 
 
1
1
Log
where
2
1
2
1
2
2
1
2
1
2
1
2
1











N
N
x
x
x
l
N
b
N
x
x
x
p
x
x
x
l
x
x
x
T
T
N
u
N
l
x
x
x
T
N





November 3, 2022
3
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
5/20
Incremental Coding
 Incremental Coding: Further Analysis Cont.
 Scaling:
   
   
n
l
n
l
n
u
n
u
k
k
2
2




       
   
     
   
 
 
   
1
2
1
1
2
2
1
1
1



















n
l
n
l
n
u
x
F
n
l
n
u
n
l
x
F
n
l
n
u
n
l
n
u
k
k
n
X
k
n
X
 新的符號(第N+1個)編碼後,其Interval大小是未放大
前的2k倍!
November 3, 2022
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
6/20
Incremental Coding
 Incremental Coding: Further Analysis Cont.
u’(n+1) = b1b2…bk . X X X
l’(n+1) = b1b2…bk . X X X
u(n+1) = 0.b1b2…bk X X X
l(n+1) = 0.b1b2…bk X X X
 Advantages:
 No need of b1b2…bk for update
 No need keeping b1b2…bk in buffer of l and u
November 3, 2022
4
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
7/20
Incremental Coding
 Scaling: E1, E2 Mapping
 E1(x)=2x (l, u < 0.5)
 E2(x)=2x-1 (l, u  0.5)
 E1: l(n), u(n) < 0.5
 
  xxx
0
.
0
xxx
0
.
0


n
u
n
l  
  xxx
.
0
xxx
.
0




n
u
n
l
E1
Output 0
 E2: l(n), u(n)  0.5
 
  xxx
1
.
0
xxx
1
.
0


n
u
n
l  
  xxx
.
0
xxx
.
0




n
u
n
l
E2
Output 1
November 3, 2022
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
8/20
Incremental Coding
 Scaling: E3 Mapping
 Scaling the interval when the shrinking interval straddles
0.5.
 E3 mapping can be applied when
   
4
3
2
1
4
1



 n
u
n
l
0 0.25 0.5 0.75 1
November 3, 2022
5
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
9/20
Incremental Coding
 Scaling: E3 Mapping Cont.
 Define:
 
  




















2
1
2
1
2
1
2
4
1
2
1
3
3
y
y
E
x
y
x
x
x
E
 Comments on E1, E2, and E3 Mapping
 By applying E1, E2, and E3 mapping in the process of
encoding, the resulting interval length >1/4.
 See next page for detailed analysis.
November 3, 2022
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
10/20
Incremental Coding
 Cases that can not apply E1, E2, and E3 Mapping:
0.25 0.5
Case1:
0.25 0.5 0.75
Case2:
0.25 0.5 0.75
Case3:
 最小的interval length是1/4.
November 3, 2022
6
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
11/20
Incremental Coding
 Cases that can not apply E1, E2, and E3 Mapping: Cont.
 There are the following two conditions that the interval is
smallest without triggering a rescaling
 When u(n) is right at midpoint of the interval and l(n) is just below
a quarter of the interval, i.e., case 1.(當u(n) 剛好等於0.5而且l(n)
恰好比0.25略小一點時,此時便無法做Scaling)
 When l(n) is just below the midpoint of the interval and u(n) is at
three-quarters of the interval, i.e., case 3. (當u(n) 剛好等於0.75
而且l(n) 恰好比0.5略小一點時,此時亦無法做Scaling)
 以上兩種情況已是最糟的狀況!下一個符號進來時一定
會觸發Rescaling!
November 3, 2022
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
12/20
Comments on E3 Mapping
 How to encode using E3 Mapping:
   
n
u
n
l ,    
1
,
1 
 n
u
n
l
update
   
n
u
n
l 
 ,    
1
,
1 


 n
u
n
l
update
3
E 1
3

E ? Ans: 3
E 1
3

E
   
   
   
   
2
1
2
1
2
1
2
1
2
1
2
2
1
2





































n
u
n
u
n
l
n
l
n
u
n
u
n
l
n
l
November 3, 2022
7
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
13/20
Comments on E3 Mapping
 How are u’(n+1), l’(n+1) related to u(n+1), l(n+1) ?
 Update using l’(n), u’(n)
       
   
       
   
1
1
1
1
1



















n
n
x
F
n
l
n
u
n
l
n
u
x
F
n
l
n
u
n
l
n
l
 By observing u’(n+1), we can find that
       
   
     
   
 
     
 
 
 
1
E
25
.
0
1
2
4
1
1
2
2
1
1
2
2
1
2
2
2
1
2
1
3
1
1





























n
u
n
u
n
u
n
u
x
F
n
l
n
u
n
l
x
F
n
l
n
u
n
l
n
u
n
n
November 3, 2022
   
   
2
1
2
2
1
2











n
u
n
u
n
l
n
l
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
14/20
Comments on E3 Mapping
 How are u’(n+1), l’(n+1) related to u(n+1), l(n+1) ?
 A short summary
     
 
     
 
1
E
2
1
1
2
1
1
E
2
1
1
2
1
3
3














n
l
n
l
n
l
n
u
n
u
n
u
November 3, 2022
8
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
15/20
Comments on E3 Mapping
 How are u’(n+1), l’(n+1) related to u(n+1), l(n+1) ?
 Case1: u’(n+1), l’(n+1)  0.5
 
  xxx
1
.
0
1
xxx
1
.
0
1






n
l
n
u
   
    





















2
1
1
2
1
1
2
1
1
2
1
1
n
l
n
l
n
u
n
u
   
    xxx
10
.
0
xxx
0
.
1
2
1
1
xxx
10
.
0
xxx
0
.
1
2
1
1






n
l
n
u
So we output 10 for this case!
November 3, 2022
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
16/20
Comments on E3 Mapping
 How are u’(n+1), l’(n+1) related to u(n+1), l(n+1) ?
 Case2: u’(n+1), l’(n+1) < 0.5
 
  xxx
0
.
0
1
xxx
0
.
0
1






n
l
n
u
   
    





















2
1
1
2
1
1
2
1
1
2
1
1
n
l
n
l
n
u
n
u
   
    xxx
01
.
0
xxx
1
.
0
2
1
1
xxx
01
.
0
xxx
1
.
0
2
1
1






n
l
n
u
So we output 01 for this case!
November 3, 2022
9
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
17/20
 How About Applying E3 Mapping Twice?
   
n
u
n
l ,    
1
,
1 
 n
u
n
l
update
   
n
u
n
l 
 ,    
1
,
1 


 n
u
n
l
update
3
E 1
3

E 3
E 1
3

E
Comments on E3 Mapping
   
n
u
n
l 


 ,    
1
,
1 




 n
u
n
l
update
3
E 1
3

E 3
E 1
3

E
   
2
,
2 
 n
u
n
l
update
   
2
,
2 


 n
u
n
l
update
   
2
,
2 




 n
u
n
l
update
November 3, 2022
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
18/20
 How About Applying E3 Mapping Twice? Cont.
 Case1: u’’(n+1), l’’(n+1)  0.5
Comments on E3 Mapping
 
  xxx
1
.
0
1
xxx
1
.
0
1








n
l
n
u
   
    

























2
1
1
2
1
1
2
1
1
2
1
1
n
l
n
l
n
u
n
u    
    xxx
10
.
0
xxx
0
.
1
2
1
1
xxx
10
.
0
xxx
0
.
1
2
1
1








n
l
n
u
So we output 100 for this case!
   
    





















2
1
1
2
1
1
2
1
1
2
1
1
n
l
n
l
n
u
n
u    
    xxx
100
.
0
xxx
00
.
1
2
1
1
xxx
100
.
0
xxx
00
.
1
2
1
1






n
l
n
u
November 3, 2022
10
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
19/20
 How About Applying E3 Mapping Twice? Cont.
 Case2: u’’(n+1), l’’(n+1) < 0.5
Comments on E3 Mapping
 
  xxx
0
.
0
1
xxx
0
.
0
1








n
l
n
u
   
    

























2
1
1
2
1
1
2
1
1
2
1
1
n
l
n
l
n
u
n
u    
    xxx
01
.
0
xxx
1
.
0
2
1
1
xxx
01
.
0
xxx
1
.
0
2
1
1








n
l
n
u
So we output 011 for this case!
   
    





















2
1
1
2
1
1
2
1
1
2
1
1
n
l
n
l
n
u
n
u    
    xxx
011
.
0
xxx
11
.
0
2
1
1
xxx
011
.
0
xxx
11
.
0
2
1
1






n
l
n
u
November 3, 2022
Lih-Jen Kau
Signal Proc. & Intell. Electron. Group
National Taipei Univ. of Technology
20/20
 How About Applying E3 Mapping L Times?
 Case1: E2 mapping happens after L E3 mappings
 Just output 100…0(a 1 followed by L 0s)
 Case2: E1 mapping happens after L E3 mappings
 Just output 011…1(a 0 followed by L 1s)
Comments on E3 Mapping
November 3, 2022

Mais conteúdo relacionado

Semelhante a Lecture07-Arithmetic Code-3 Incremental Encoding-P2.pdf

Passive network-redesign-ntua
Passive network-redesign-ntuaPassive network-redesign-ntua
Passive network-redesign-ntua
IEEE NTUA SB
 
f33-ft-computing-lec09-correct.ppt
f33-ft-computing-lec09-correct.pptf33-ft-computing-lec09-correct.ppt
f33-ft-computing-lec09-correct.ppt
MaddulaCharishma
 

Semelhante a Lecture07-Arithmetic Code-3 Incremental Encoding-P2.pdf (20)

Digi ana total 2012
Digi ana total 2012Digi ana total 2012
Digi ana total 2012
 
2 funda.ppt
2 funda.ppt2 funda.ppt
2 funda.ppt
 
Multichannel IoT CAUSAL digital twin
Multichannel IoT CAUSAL digital twinMultichannel IoT CAUSAL digital twin
Multichannel IoT CAUSAL digital twin
 
Saur lecture 16
Saur lecture 16Saur lecture 16
Saur lecture 16
 
Multivariate Analysis of Cauchy’s Inequality
Multivariate Analysis of Cauchy’s InequalityMultivariate Analysis of Cauchy’s Inequality
Multivariate Analysis of Cauchy’s Inequality
 
RF Circuit Design - [Ch3-1] Microwave Network
RF Circuit Design - [Ch3-1] Microwave NetworkRF Circuit Design - [Ch3-1] Microwave Network
RF Circuit Design - [Ch3-1] Microwave Network
 
2017 a
2017 a2017 a
2017 a
 
Cauchy’s Inequality based study of the Differential Equations and the Simple ...
Cauchy’s Inequality based study of the Differential Equations and the Simple ...Cauchy’s Inequality based study of the Differential Equations and the Simple ...
Cauchy’s Inequality based study of the Differential Equations and the Simple ...
 
Gate 2012 question paper
Gate 2012 question paperGate 2012 question paper
Gate 2012 question paper
 
Mba admission in india
Mba admission in indiaMba admission in india
Mba admission in india
 
Module I - Digital Systems & Logic Gates.ppt
Module I - Digital Systems & Logic Gates.pptModule I - Digital Systems & Logic Gates.ppt
Module I - Digital Systems & Logic Gates.ppt
 
Deep Learning Hardware: Past, Present, & Future
Deep Learning Hardware: Past, Present, & FutureDeep Learning Hardware: Past, Present, & Future
Deep Learning Hardware: Past, Present, & Future
 
Extended Analysis of Cauchy’s Inequality
Extended Analysis of Cauchy’s InequalityExtended Analysis of Cauchy’s Inequality
Extended Analysis of Cauchy’s Inequality
 
INTRODUCTION TO CIRCUIT THEORY (A PRACTICAL APPROACH)
INTRODUCTION TO CIRCUIT THEORY (A PRACTICAL APPROACH)INTRODUCTION TO CIRCUIT THEORY (A PRACTICAL APPROACH)
INTRODUCTION TO CIRCUIT THEORY (A PRACTICAL APPROACH)
 
Mini Project 1 - 2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...
Mini Project 1 -  2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...Mini Project 1 -  2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...
Mini Project 1 - 2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...
 
Passive network-redesign-ntua
Passive network-redesign-ntuaPassive network-redesign-ntua
Passive network-redesign-ntua
 
f33-ft-computing-lec09-correct.ppt
f33-ft-computing-lec09-correct.pptf33-ft-computing-lec09-correct.ppt
f33-ft-computing-lec09-correct.ppt
 
Decoder
DecoderDecoder
Decoder
 
IRJET-Design and Implementation of LNS based Approximate Multiplier using Mit...
IRJET-Design and Implementation of LNS based Approximate Multiplier using Mit...IRJET-Design and Implementation of LNS based Approximate Multiplier using Mit...
IRJET-Design and Implementation of LNS based Approximate Multiplier using Mit...
 
NeuroSoL (International Symposium on Biomedical Imaging'17)
NeuroSoL (International Symposium on Biomedical Imaging'17)NeuroSoL (International Symposium on Biomedical Imaging'17)
NeuroSoL (International Symposium on Biomedical Imaging'17)
 

Mais de ssuserb4d806

1-Introduction and Crystal Structure of Solids-已解鎖.pdf
1-Introduction and Crystal Structure of Solids-已解鎖.pdf1-Introduction and Crystal Structure of Solids-已解鎖.pdf
1-Introduction and Crystal Structure of Solids-已解鎖.pdf
ssuserb4d806
 
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx
ssuserb4d806
 
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx
ssuserb4d806
 
Assessment_of_Fetal_and_Maternal_Well-Being_During_Pregnancy_Using_Passive_We...
Assessment_of_Fetal_and_Maternal_Well-Being_During_Pregnancy_Using_Passive_We...Assessment_of_Fetal_and_Maternal_Well-Being_During_Pregnancy_Using_Passive_We...
Assessment_of_Fetal_and_Maternal_Well-Being_During_Pregnancy_Using_Passive_We...
ssuserb4d806
 
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx
ssuserb4d806
 
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx
ssuserb4d806
 
RFIC_LNA_Simulation.ppt
RFIC_LNA_Simulation.pptRFIC_LNA_Simulation.ppt
RFIC_LNA_Simulation.ppt
ssuserb4d806
 
AIML4 CNN lab256 1hr (111-1).pdf
AIML4 CNN lab256 1hr (111-1).pdfAIML4 CNN lab256 1hr (111-1).pdf
AIML4 CNN lab256 1hr (111-1).pdf
ssuserb4d806
 
AIML4 CNN lab 5-1 BreastCancer ML course student report 2022 spring (111-1).pdf
AIML4 CNN lab 5-1 BreastCancer ML course student report 2022 spring (111-1).pdfAIML4 CNN lab 5-1 BreastCancer ML course student report 2022 spring (111-1).pdf
AIML4 CNN lab 5-1 BreastCancer ML course student report 2022 spring (111-1).pdf
ssuserb4d806
 
Lecture 1 System View.pptx - 已修復.pdf
Lecture 1 System View.pptx  -  已修復.pdfLecture 1 System View.pptx  -  已修復.pdf
Lecture 1 System View.pptx - 已修復.pdf
ssuserb4d806
 
Training L1 Thinking 2022702.pptx.pptx
Training L1 Thinking 2022702.pptx.pptxTraining L1 Thinking 2022702.pptx.pptx
Training L1 Thinking 2022702.pptx.pptx
ssuserb4d806
 

Mais de ssuserb4d806 (20)

5.pdf
5.pdf5.pdf
5.pdf
 
4.pdf
4.pdf4.pdf
4.pdf
 
Analog_chap_02.ppt
Analog_chap_02.pptAnalog_chap_02.ppt
Analog_chap_02.ppt
 
Analog_chap_01.ppt
Analog_chap_01.pptAnalog_chap_01.ppt
Analog_chap_01.ppt
 
1-Introduction and Crystal Structure of Solids-已解鎖.pdf
1-Introduction and Crystal Structure of Solids-已解鎖.pdf1-Introduction and Crystal Structure of Solids-已解鎖.pdf
1-Introduction and Crystal Structure of Solids-已解鎖.pdf
 
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx
 
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx
 
Assessment_of_Fetal_and_Maternal_Well-Being_During_Pregnancy_Using_Passive_We...
Assessment_of_Fetal_and_Maternal_Well-Being_During_Pregnancy_Using_Passive_We...Assessment_of_Fetal_and_Maternal_Well-Being_During_Pregnancy_Using_Passive_We...
Assessment_of_Fetal_and_Maternal_Well-Being_During_Pregnancy_Using_Passive_We...
 
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_2.pptx
 
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx
台北科技大學電子所_可穿戴式系統設計_期末報告 1_賴紀廷_109368501_20230106_1.pptx
 
RFIC_LNA_Simulation.ppt
RFIC_LNA_Simulation.pptRFIC_LNA_Simulation.ppt
RFIC_LNA_Simulation.ppt
 
AIML4 CNN lab256 1hr (111-1).pdf
AIML4 CNN lab256 1hr (111-1).pdfAIML4 CNN lab256 1hr (111-1).pdf
AIML4 CNN lab256 1hr (111-1).pdf
 
AIML4 CNN lab 5-1 BreastCancer ML course student report 2022 spring (111-1).pdf
AIML4 CNN lab 5-1 BreastCancer ML course student report 2022 spring (111-1).pdfAIML4 CNN lab 5-1 BreastCancer ML course student report 2022 spring (111-1).pdf
AIML4 CNN lab 5-1 BreastCancer ML course student report 2022 spring (111-1).pdf
 
virtuoso
virtuosovirtuoso
virtuoso
 
Lecture 1 System View.pptx - 已修復.pdf
Lecture 1 System View.pptx  -  已修復.pdfLecture 1 System View.pptx  -  已修復.pdf
Lecture 1 System View.pptx - 已修復.pdf
 
Labs_20210809.pdf
Labs_20210809.pdfLabs_20210809.pdf
Labs_20210809.pdf
 
Training L1 Thinking 2022702.pptx.pptx
Training L1 Thinking 2022702.pptx.pptxTraining L1 Thinking 2022702.pptx.pptx
Training L1 Thinking 2022702.pptx.pptx
 
射頻期中整理.pptx
射頻期中整理.pptx射頻期中整理.pptx
射頻期中整理.pptx
 
lecture2.ppt
lecture2.pptlecture2.ppt
lecture2.ppt
 
lecture5.ppt
lecture5.pptlecture5.ppt
lecture5.ppt
 

Último

Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
amitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
amitlee9823
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
amitlee9823
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
amitlee9823
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
MarinCaroMartnezBerg
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 

Último (20)

Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 

Lecture07-Arithmetic Code-3 Incremental Encoding-P2.pdf

  • 1. 1 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 1/20 Lecture 07 Nov. 03, 2022 Instructor:高立人 電子工程研究所 國立臺北科技大學 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 2/20 Arithmetic Code Incremental Coding November 3, 2022
  • 2. 2 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 3/20 Incremental Coding  Incremental Coding: Further Analysis  Bits sent to output bit stream in the process of encoding.  For large N, we have u(n)=l(n) due to finite precision.  Observe  If u(n) = 0.b1b2…bk X X X  If l(n) = 0.b1b2…bk X X X  Do we have Tb = 0.b1b2…bk X X X ? November 3, 2022 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 4/20 Incremental Coding  Incremental Coding: Further Analysis Cont.  Recall Arithmetic Coding:  A symbol sequence:                         n X n n n n n X n n n n x F l u l u x F l u l l 1 1 1 1 1 1 1                    Y N x x x 2 1                   1 1 Log where 2 1 2 1 2 2 1 2 1 2 1 2 1            N N x x x l N b N x x x p x x x l x x x T T N u N l x x x T N      November 3, 2022
  • 3. 3 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 5/20 Incremental Coding  Incremental Coding: Further Analysis Cont.  Scaling:         n l n l n u n u k k 2 2                                   1 2 1 1 2 2 1 1 1                    n l n l n u x F n l n u n l x F n l n u n l n u k k n X k n X  新的符號(第N+1個)編碼後,其Interval大小是未放大 前的2k倍! November 3, 2022 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 6/20 Incremental Coding  Incremental Coding: Further Analysis Cont. u’(n+1) = b1b2…bk . X X X l’(n+1) = b1b2…bk . X X X u(n+1) = 0.b1b2…bk X X X l(n+1) = 0.b1b2…bk X X X  Advantages:  No need of b1b2…bk for update  No need keeping b1b2…bk in buffer of l and u November 3, 2022
  • 4. 4 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 7/20 Incremental Coding  Scaling: E1, E2 Mapping  E1(x)=2x (l, u < 0.5)  E2(x)=2x-1 (l, u  0.5)  E1: l(n), u(n) < 0.5     xxx 0 . 0 xxx 0 . 0   n u n l     xxx . 0 xxx . 0     n u n l E1 Output 0  E2: l(n), u(n)  0.5     xxx 1 . 0 xxx 1 . 0   n u n l     xxx . 0 xxx . 0     n u n l E2 Output 1 November 3, 2022 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 8/20 Incremental Coding  Scaling: E3 Mapping  Scaling the interval when the shrinking interval straddles 0.5.  E3 mapping can be applied when     4 3 2 1 4 1     n u n l 0 0.25 0.5 0.75 1 November 3, 2022
  • 5. 5 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 9/20 Incremental Coding  Scaling: E3 Mapping Cont.  Define:                          2 1 2 1 2 1 2 4 1 2 1 3 3 y y E x y x x x E  Comments on E1, E2, and E3 Mapping  By applying E1, E2, and E3 mapping in the process of encoding, the resulting interval length >1/4.  See next page for detailed analysis. November 3, 2022 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 10/20 Incremental Coding  Cases that can not apply E1, E2, and E3 Mapping: 0.25 0.5 Case1: 0.25 0.5 0.75 Case2: 0.25 0.5 0.75 Case3:  最小的interval length是1/4. November 3, 2022
  • 6. 6 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 11/20 Incremental Coding  Cases that can not apply E1, E2, and E3 Mapping: Cont.  There are the following two conditions that the interval is smallest without triggering a rescaling  When u(n) is right at midpoint of the interval and l(n) is just below a quarter of the interval, i.e., case 1.(當u(n) 剛好等於0.5而且l(n) 恰好比0.25略小一點時,此時便無法做Scaling)  When l(n) is just below the midpoint of the interval and u(n) is at three-quarters of the interval, i.e., case 3. (當u(n) 剛好等於0.75 而且l(n) 恰好比0.5略小一點時,此時亦無法做Scaling)  以上兩種情況已是最糟的狀況!下一個符號進來時一定 會觸發Rescaling! November 3, 2022 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 12/20 Comments on E3 Mapping  How to encode using E3 Mapping:     n u n l ,     1 , 1   n u n l update     n u n l   ,     1 , 1     n u n l update 3 E 1 3  E ? Ans: 3 E 1 3  E                 2 1 2 1 2 1 2 1 2 1 2 2 1 2                                      n u n u n l n l n u n u n l n l November 3, 2022
  • 7. 7 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 13/20 Comments on E3 Mapping  How are u’(n+1), l’(n+1) related to u(n+1), l(n+1) ?  Update using l’(n), u’(n)                         1 1 1 1 1                    n n x F n l n u n l n u x F n l n u n l n l  By observing u’(n+1), we can find that                                     1 E 25 . 0 1 2 4 1 1 2 2 1 1 2 2 1 2 2 2 1 2 1 3 1 1                              n u n u n u n u x F n l n u n l x F n l n u n l n u n n November 3, 2022         2 1 2 2 1 2            n u n u n l n l Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 14/20 Comments on E3 Mapping  How are u’(n+1), l’(n+1) related to u(n+1), l(n+1) ?  A short summary                 1 E 2 1 1 2 1 1 E 2 1 1 2 1 3 3               n l n l n l n u n u n u November 3, 2022
  • 8. 8 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 15/20 Comments on E3 Mapping  How are u’(n+1), l’(n+1) related to u(n+1), l(n+1) ?  Case1: u’(n+1), l’(n+1)  0.5     xxx 1 . 0 1 xxx 1 . 0 1       n l n u                               2 1 1 2 1 1 2 1 1 2 1 1 n l n l n u n u         xxx 10 . 0 xxx 0 . 1 2 1 1 xxx 10 . 0 xxx 0 . 1 2 1 1       n l n u So we output 10 for this case! November 3, 2022 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 16/20 Comments on E3 Mapping  How are u’(n+1), l’(n+1) related to u(n+1), l(n+1) ?  Case2: u’(n+1), l’(n+1) < 0.5     xxx 0 . 0 1 xxx 0 . 0 1       n l n u                               2 1 1 2 1 1 2 1 1 2 1 1 n l n l n u n u         xxx 01 . 0 xxx 1 . 0 2 1 1 xxx 01 . 0 xxx 1 . 0 2 1 1       n l n u So we output 01 for this case! November 3, 2022
  • 9. 9 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 17/20  How About Applying E3 Mapping Twice?     n u n l ,     1 , 1   n u n l update     n u n l   ,     1 , 1     n u n l update 3 E 1 3  E 3 E 1 3  E Comments on E3 Mapping     n u n l     ,     1 , 1       n u n l update 3 E 1 3  E 3 E 1 3  E     2 , 2   n u n l update     2 , 2     n u n l update     2 , 2       n u n l update November 3, 2022 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 18/20  How About Applying E3 Mapping Twice? Cont.  Case1: u’’(n+1), l’’(n+1)  0.5 Comments on E3 Mapping     xxx 1 . 0 1 xxx 1 . 0 1         n l n u                                   2 1 1 2 1 1 2 1 1 2 1 1 n l n l n u n u         xxx 10 . 0 xxx 0 . 1 2 1 1 xxx 10 . 0 xxx 0 . 1 2 1 1         n l n u So we output 100 for this case!                               2 1 1 2 1 1 2 1 1 2 1 1 n l n l n u n u         xxx 100 . 0 xxx 00 . 1 2 1 1 xxx 100 . 0 xxx 00 . 1 2 1 1       n l n u November 3, 2022
  • 10. 10 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 19/20  How About Applying E3 Mapping Twice? Cont.  Case2: u’’(n+1), l’’(n+1) < 0.5 Comments on E3 Mapping     xxx 0 . 0 1 xxx 0 . 0 1         n l n u                                   2 1 1 2 1 1 2 1 1 2 1 1 n l n l n u n u         xxx 01 . 0 xxx 1 . 0 2 1 1 xxx 01 . 0 xxx 1 . 0 2 1 1         n l n u So we output 011 for this case!                               2 1 1 2 1 1 2 1 1 2 1 1 n l n l n u n u         xxx 011 . 0 xxx 11 . 0 2 1 1 xxx 011 . 0 xxx 11 . 0 2 1 1       n l n u November 3, 2022 Lih-Jen Kau Signal Proc. & Intell. Electron. Group National Taipei Univ. of Technology 20/20  How About Applying E3 Mapping L Times?  Case1: E2 mapping happens after L E3 mappings  Just output 100…0(a 1 followed by L 0s)  Case2: E1 mapping happens after L E3 mappings  Just output 011…1(a 0 followed by L 1s) Comments on E3 Mapping November 3, 2022