Huffman coding: Difference between revisions

Content deleted Content added
Closer to WP:MOSMATH in some ways---in particular, digits should not be italicized in this context; proper spacing around a minus sign; some punctuation corrections. Simplifying some TeX complications that serve no purpose.
Example: Someone put a hyphen where a minus sign belongs. Also, I'm making the lower-case italicized ells cursive.
Line 102:
|rowspan="2"| 
|-
!style="background:#efefef;font-weight:normal"| Codeword length (in bits)<br />({{math|''l''<sub>''i''</sub>}})
|align="center"| 3
|align="center"| 3
Line 109:
|align="center"| 2
|-
!style="background:#efefef;font-weight:normal"| Contribution to weighted path length<br />({{math|''l''<sub>''i''</sub>}} {{math|''w''<sub>''i''</sub>}} )
|align="center"| 0.30
|align="center"| 0.45
Line 118:
|-
!rowspan="3" style="background:#efefef"| Optimality
!style="background:#efefef;font-weight:normal"| Probability budget<br />({{math|2<sup>−''l''<sub>''i''</sub></sup>}})
| align="center" | 1/8
| align="center" | 1/8
Line 134:
|align="center"| &nbsp;
|-
! style="background: #efefef; font-weight: normal;" | Contribution to entropy<br />({{math|-''w''<sub>''i''</sub> log<sub>2</sub> ''w''<sub>''i''</sub>}})
|align="center"| 0.332
|align="center"| 0.411