Patent ID: 11888614
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Digital communication (Electrical engineering)
Classification: CPC H  Y | IPC H

Claim 3:
4. The method according to claim 1, wherein determining, based on N, the minimum segment code length, the maximum segment code length, the reserved segment quantity of each type of segments in the segments of b−a+1 types of segment code lengths and the reserved code length corresponding to N comprises:
determining, when N<p*2{circumflex over ( )}a, that a first reserved segment quantity that corresponds to N and that is of segments whose segment code lengths are 2{circumflex over ( )}a is, floor
   (
   
    N
    
     2
     
      ^
      a
     
    
   
   )
  
  ,, and a second reserved segment quantity that corresponds to N and that is of segments whose segment code lengths are 2{circumflex over ( )}j is 0, wherein a<j≤b, and p≥2;
determining, when, p
    *
    
     
      ∑
      
       i
       =
       a
      
      c
     
     
      2
      
       ∧
       i
      
     
    
   
   ≤
   N
   <
   
    p
    *
    
     
      ∑
      
       i
       =
       a
      
      
       c
       +
       1
      
     
     
      2
      
       ^
       i
      
     
    
   
  
  ,
 

 that a third reserved segment quantity that corresponds to N and that is of segments whose segment code lengths are 2{circumflex over ( )}j is 0, a fourth reserved segment quantity that corresponds to N and that is of segments whose segment code lengths are 2{circumflex over ( )}c+1 is, floor
   (
   
    
     N
     -
     
      p
      *
      
       
        ∑
        
         i
         =
         a
        
        c
       
       
        2
        
         ^
         i
        
       
      
     
    
    
     2
     
      ∧
      
       c
       +
       1
      
     
    
   
   )
  
  ,
 

 and a fifth reserved segment quantity that corresponds to N and that is of segments whose segment code lengths are 2{circumflex over ( )}v is p, wherein a≤c≤b−1, a≤v≤c, and c+1<j≤b; or
determining, when, p
    *
    
     
      ∑
      
       i
       =
       a
      
      b
     
     
      2
      
       ^
       i
      
     
    
   
   ≤
   N
  
  ,
 

 that the reserved segment quantity of each type of segments is p; and
determining a first reserved code length Nres based on the reserved segment quantity of each type of segments, wherein, N
    
     r
     ⁢
     e
     ⁢
     s
    
   
   =
   
    
     ∑
     
      c
      =
      a
     
     b
    
    
     
      m
      
       c
       ,
       N
      
     
     *
     
      2
      
       ^
       c
      
     
    
   
  
  ,
 

and mc,N represents the reserved segment quantity that corresponds to N and that is of segments whose segment code lengths are 2{circumflex over ( )}c.