文章目录

  • 一、信息熵
  • 二、香农-凡诺编码与霍夫曼编码
    • 1.香农-凡诺编码
    • 2.霍夫曼编码
  • 三、RGB及BMP图像空间占用

一、信息熵

  • 信息中排除了冗余后的平均信息量称为“信息熵”
  • 信息熵是消除不确定性所需信息量的度量,也即未知事件可能含有的信息量
  • 信息熵的定义公式

二、香农-凡诺编码与霍夫曼编码

一串消息包含A,B,C,D,E共5类符号,其内容是AABBBBAAAACCCCCCCCCEEEEEEDDDDEEEEEEEEEEEEE, 请问其信息熵是多少?如果分别采用香农-凡诺编码,霍夫曼编码,压缩率分别是多少?

1.香农-凡诺编码

  1. 将所有的字母按照出现的次数由多到少、从左到右进行排序
符号 E C A B D
计数 19 9 6 4 4
  1. 然后划分两边,使两边出现次数的差尽可能小
#mermaid-svg-ykVYtu3NmBcMqZe3 .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .label text{fill:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .node rect,#mermaid-svg-ykVYtu3NmBcMqZe3 .node circle,#mermaid-svg-ykVYtu3NmBcMqZe3 .node ellipse,#mermaid-svg-ykVYtu3NmBcMqZe3 .node polygon,#mermaid-svg-ykVYtu3NmBcMqZe3 .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-ykVYtu3NmBcMqZe3 .node .label{text-align:center;fill:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .node.clickable{cursor:pointer}#mermaid-svg-ykVYtu3NmBcMqZe3 .arrowheadPath{fill:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-ykVYtu3NmBcMqZe3 .flowchart-link{stroke:#333;fill:none}#mermaid-svg-ykVYtu3NmBcMqZe3 .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-ykVYtu3NmBcMqZe3 .edgeLabel rect{opacity:0.9}#mermaid-svg-ykVYtu3NmBcMqZe3 .edgeLabel span{color:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-ykVYtu3NmBcMqZe3 .cluster text{fill:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-ykVYtu3NmBcMqZe3 .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-ykVYtu3NmBcMqZe3 text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-ykVYtu3NmBcMqZe3 .actor-line{stroke:grey}#mermaid-svg-ykVYtu3NmBcMqZe3 .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .sequenceNumber{fill:#fff}#mermaid-svg-ykVYtu3NmBcMqZe3 #sequencenumber{fill:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 #crosshead path{fill:#333;stroke:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .messageText{fill:#333;stroke:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-ykVYtu3NmBcMqZe3 .labelText,#mermaid-svg-ykVYtu3NmBcMqZe3 .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-ykVYtu3NmBcMqZe3 .loopText,#mermaid-svg-ykVYtu3NmBcMqZe3 .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-ykVYtu3NmBcMqZe3 .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-ykVYtu3NmBcMqZe3 .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-ykVYtu3NmBcMqZe3 .noteText,#mermaid-svg-ykVYtu3NmBcMqZe3 .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-ykVYtu3NmBcMqZe3 .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-ykVYtu3NmBcMqZe3 .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-ykVYtu3NmBcMqZe3 .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-ykVYtu3NmBcMqZe3 .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ykVYtu3NmBcMqZe3 .section{stroke:none;opacity:0.2}#mermaid-svg-ykVYtu3NmBcMqZe3 .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-ykVYtu3NmBcMqZe3 .section2{fill:#fff400}#mermaid-svg-ykVYtu3NmBcMqZe3 .section1,#mermaid-svg-ykVYtu3NmBcMqZe3 .section3{fill:#fff;opacity:0.2}#mermaid-svg-ykVYtu3NmBcMqZe3 .sectionTitle0{fill:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .sectionTitle1{fill:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .sectionTitle2{fill:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .sectionTitle3{fill:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ykVYtu3NmBcMqZe3 .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-ykVYtu3NmBcMqZe3 .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ykVYtu3NmBcMqZe3 .grid path{stroke-width:0}#mermaid-svg-ykVYtu3NmBcMqZe3 .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-ykVYtu3NmBcMqZe3 .task{stroke-width:2}#mermaid-svg-ykVYtu3NmBcMqZe3 .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ykVYtu3NmBcMqZe3 .taskText:not([font-size]){font-size:11px}#mermaid-svg-ykVYtu3NmBcMqZe3 .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ykVYtu3NmBcMqZe3 .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-ykVYtu3NmBcMqZe3 .task.clickable{cursor:pointer}#mermaid-svg-ykVYtu3NmBcMqZe3 .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-ykVYtu3NmBcMqZe3 .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-ykVYtu3NmBcMqZe3 .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-ykVYtu3NmBcMqZe3 .taskText0,#mermaid-svg-ykVYtu3NmBcMqZe3 .taskText1,#mermaid-svg-ykVYtu3NmBcMqZe3 .taskText2,#mermaid-svg-ykVYtu3NmBcMqZe3 .taskText3{fill:#fff}#mermaid-svg-ykVYtu3NmBcMqZe3 .task0,#mermaid-svg-ykVYtu3NmBcMqZe3 .task1,#mermaid-svg-ykVYtu3NmBcMqZe3 .task2,#mermaid-svg-ykVYtu3NmBcMqZe3 .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-ykVYtu3NmBcMqZe3 .taskTextOutside0,#mermaid-svg-ykVYtu3NmBcMqZe3 .taskTextOutside2{fill:#000}#mermaid-svg-ykVYtu3NmBcMqZe3 .taskTextOutside1,#mermaid-svg-ykVYtu3NmBcMqZe3 .taskTextOutside3{fill:#000}#mermaid-svg-ykVYtu3NmBcMqZe3 .active0,#mermaid-svg-ykVYtu3NmBcMqZe3 .active1,#mermaid-svg-ykVYtu3NmBcMqZe3 .active2,#mermaid-svg-ykVYtu3NmBcMqZe3 .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-ykVYtu3NmBcMqZe3 .activeText0,#mermaid-svg-ykVYtu3NmBcMqZe3 .activeText1,#mermaid-svg-ykVYtu3NmBcMqZe3 .activeText2,#mermaid-svg-ykVYtu3NmBcMqZe3 .activeText3{fill:#000 !important}#mermaid-svg-ykVYtu3NmBcMqZe3 .done0,#mermaid-svg-ykVYtu3NmBcMqZe3 .done1,#mermaid-svg-ykVYtu3NmBcMqZe3 .done2,#mermaid-svg-ykVYtu3NmBcMqZe3 .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-ykVYtu3NmBcMqZe3 .doneText0,#mermaid-svg-ykVYtu3NmBcMqZe3 .doneText1,#mermaid-svg-ykVYtu3NmBcMqZe3 .doneText2,#mermaid-svg-ykVYtu3NmBcMqZe3 .doneText3{fill:#000 !important}#mermaid-svg-ykVYtu3NmBcMqZe3 .crit0,#mermaid-svg-ykVYtu3NmBcMqZe3 .crit1,#mermaid-svg-ykVYtu3NmBcMqZe3 .crit2,#mermaid-svg-ykVYtu3NmBcMqZe3 .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-ykVYtu3NmBcMqZe3 .activeCrit0,#mermaid-svg-ykVYtu3NmBcMqZe3 .activeCrit1,#mermaid-svg-ykVYtu3NmBcMqZe3 .activeCrit2,#mermaid-svg-ykVYtu3NmBcMqZe3 .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-ykVYtu3NmBcMqZe3 .doneCrit0,#mermaid-svg-ykVYtu3NmBcMqZe3 .doneCrit1,#mermaid-svg-ykVYtu3NmBcMqZe3 .doneCrit2,#mermaid-svg-ykVYtu3NmBcMqZe3 .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-ykVYtu3NmBcMqZe3 .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-ykVYtu3NmBcMqZe3 .milestoneText{font-style:italic}#mermaid-svg-ykVYtu3NmBcMqZe3 .doneCritText0,#mermaid-svg-ykVYtu3NmBcMqZe3 .doneCritText1,#mermaid-svg-ykVYtu3NmBcMqZe3 .doneCritText2,#mermaid-svg-ykVYtu3NmBcMqZe3 .doneCritText3{fill:#000 !important}#mermaid-svg-ykVYtu3NmBcMqZe3 .activeCritText0,#mermaid-svg-ykVYtu3NmBcMqZe3 .activeCritText1,#mermaid-svg-ykVYtu3NmBcMqZe3 .activeCritText2,#mermaid-svg-ykVYtu3NmBcMqZe3 .activeCritText3{fill:#000 !important}#mermaid-svg-ykVYtu3NmBcMqZe3 .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ykVYtu3NmBcMqZe3 g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-ykVYtu3NmBcMqZe3 g.classGroup text .title{font-weight:bolder}#mermaid-svg-ykVYtu3NmBcMqZe3 g.clickable{cursor:pointer}#mermaid-svg-ykVYtu3NmBcMqZe3 g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-ykVYtu3NmBcMqZe3 g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-ykVYtu3NmBcMqZe3 .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-ykVYtu3NmBcMqZe3 .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-ykVYtu3NmBcMqZe3 .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-ykVYtu3NmBcMqZe3 .dashed-line{stroke-dasharray:3}#mermaid-svg-ykVYtu3NmBcMqZe3 #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-ykVYtu3NmBcMqZe3 #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-ykVYtu3NmBcMqZe3 #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-ykVYtu3NmBcMqZe3 #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-ykVYtu3NmBcMqZe3 #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-ykVYtu3NmBcMqZe3 #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-ykVYtu3NmBcMqZe3 #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-ykVYtu3NmBcMqZe3 #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-ykVYtu3NmBcMqZe3 .commit-id,#mermaid-svg-ykVYtu3NmBcMqZe3 .commit-msg,#mermaid-svg-ykVYtu3NmBcMqZe3 .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ykVYtu3NmBcMqZe3 .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ykVYtu3NmBcMqZe3 .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ykVYtu3NmBcMqZe3 g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ykVYtu3NmBcMqZe3 g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-ykVYtu3NmBcMqZe3 g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-ykVYtu3NmBcMqZe3 g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-ykVYtu3NmBcMqZe3 g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-ykVYtu3NmBcMqZe3 .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-ykVYtu3NmBcMqZe3 .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-ykVYtu3NmBcMqZe3 .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-ykVYtu3NmBcMqZe3 .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-ykVYtu3NmBcMqZe3 .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-ykVYtu3NmBcMqZe3 .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-ykVYtu3NmBcMqZe3 .edgeLabel text{fill:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-ykVYtu3NmBcMqZe3 .node circle.state-start{fill:black;stroke:black}#mermaid-svg-ykVYtu3NmBcMqZe3 .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-ykVYtu3NmBcMqZe3 #statediagram-barbEnd{fill:#9370db}#mermaid-svg-ykVYtu3NmBcMqZe3 .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-ykVYtu3NmBcMqZe3 .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-ykVYtu3NmBcMqZe3 .statediagram-state .divider{stroke:#9370db}#mermaid-svg-ykVYtu3NmBcMqZe3 .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-ykVYtu3NmBcMqZe3 .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-ykVYtu3NmBcMqZe3 .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-ykVYtu3NmBcMqZe3 .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-ykVYtu3NmBcMqZe3 .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-ykVYtu3NmBcMqZe3 .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-ykVYtu3NmBcMqZe3 .note-edge{stroke-dasharray:5}#mermaid-svg-ykVYtu3NmBcMqZe3 .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-ykVYtu3NmBcMqZe3 .error-icon{fill:#522}#mermaid-svg-ykVYtu3NmBcMqZe3 .error-text{fill:#522;stroke:#522}#mermaid-svg-ykVYtu3NmBcMqZe3 .edge-thickness-normal{stroke-width:2px}#mermaid-svg-ykVYtu3NmBcMqZe3 .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-ykVYtu3NmBcMqZe3 .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-ykVYtu3NmBcMqZe3 .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-ykVYtu3NmBcMqZe3 .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-ykVYtu3NmBcMqZe3 .marker{fill:#333}#mermaid-svg-ykVYtu3NmBcMqZe3 .marker.cross{stroke:#333}:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}#mermaid-svg-ykVYtu3NmBcMqZe3 {color: rgba(0, 0, 0, 0.75);font: ;}

0
1
10
11
110
111
1110
1111
ECABD
E
CABD
C
ABD
A
BD
B
D
  1. 编码完成
    编码前:5 种符号至少需要 3 位二进制编码,共 42 个字符,则需 3 × 42 = 126
    编码后:共 87 位
    压缩比:126 : 87 = 1.45 : 1

2.霍夫曼编码

  1. 将所有字母按照从左到右、出现计数从大到小的顺序排列出来
符号 E C A B D
计数 19 9 6 4 4
  1. 然后从计数最小的两个符号开始,可选其中一个支路为 0,另一支路为 1,再合并两个支路,并重新排队,多次重复这一过程,直到最后计数和为总数为止

  2. 编码完成
    编码前:5 种符号至少需要 3 位二进制编码,共 42 个字符,则需 3 × 42 = 126
    编码后:共 87 位
    压缩比:126 : 87 = 1.45 : 1
    所以香农-凡诺编码与霍夫曼编码的压缩率一样

三、RGB及BMP图像空间占用

一幅1024*768的24位RGB彩色图像一共在内存中占有多少字节? 如果将其保存为非压缩格式的BMP文件,文件有多少字节?请用实例验证

  1. 1024*768的24位RGB占有字节

1024 x768x24/8=2359296byte

  1. BMP图像占用空间

BMP 文件由文件头、位图信息头、颜色信息和图形数据四部分组成,24 位真彩色图像就不使用彩色板,因为位图中的 RGB 值就代表了每个像素的颜色文件头+位图信息头+颜色信息为 54 字节,再加上图形数据,就是 2 , 359 , 350 2,359,3502,359,350 字节

  1. 验证
    (1)新建bmp图像

    (2)打开图像并设为1024*768格式

    (3)保存并查看文件大小

信息熵与两种编码基础相关推荐

  1. html会员中心源码,响应式自适应手机端会员中心(两种编码)

    模板名称: 织梦响应式自适应手机端会员中心(两种编码) 模板介绍: 大家又有福利咯,新开发的织梦会员中心,响应式自适应手机端,后台充值功能,可以对接支付宝等其他的第三方支付软件, 高端简单大气,重要是 ...

  2. 曼彻斯特编码_两种编码方式以及两种帧结构

    一.不归零制编码(Non-Return to Zero) 对于不归零制编码是最简单的一种编码方式,正电平代表1,负电平代表0.如下图: 其实在不归零制编码中有一个很明显的缺陷,那就是它不是自同步码. ...

  3. 简单介绍下gbk和utf-8这两种编码的区别

    那么gbk与utf-8之间有什么区别呢?首先简单介绍一下gbk编码和utf-8编码. gbk编码:是指中国的中文字符,其它它包含了简体中文与繁体中文字符,另外还有一种字符"gb2312&qu ...

  4. hot编码 字符one_Python机器学习:特征编码的两种方式

    本文是对 机器学习"特征编码"的经验分享:鱼还是熊掌? 的笔记总结 机器学习模型需要的数据是数字型的,因为只有数字类型才能进行计算 所以对可分类型的数据进行编码,就是量化的过程.有 ...

  5. 线代中最基础的两种玩法

    线代中最基础的两种玩法 @(线性代数) 加法 乘法 由这两种最基础的做法可以发展出许多有意思的解题思路. 以可交换矩阵的论证为例. 可交换矩阵:AB=BA 一般有三类: 单位矩阵,或零矩阵 AE = ...

  6. 计算机ucs汉字编码,字符编码基础知识 - Unicode,UCS,GBK,GB2312,UTF-8

    字符编码基础知识- Unicode,UCS,GBK,GB2312,UTF-8 最近遇到一个Unicode和UTF-8关系比较的问题,之前在处理中文显示时也遇到过类似的问题,于是花时间学习了一下,在此做 ...

  7. 几种编码方式(RZ、NRZ、NRZI、曼彻斯特编码)

    此文转自:http://blog.sina.com.cn/s/blog_78e87ba10102wj9g.html 在数字电路中,组成一连串信息的基元就是0和1,无论是在CPU.DSP.MCU甚至是个 ...

  8. libIconv库实现中文中字符串与GBK、Unicode、UTF-8三种编码互转

    libIconv库实现GBK.Unicode.UTF-8三种编码互转比window api更为简单,而且libIconv库跨平台. IibIconv库在windows下的编译参照windows下使用V ...

  9. python表单提交的两种方式_Flask框架学习笔记之表单基础介绍与表单提交方式

    本文实例讲述了Flask框架学习笔记之表单基础介绍与表单提交方式.分享给大家供大家参考,具体如下: 表单介绍 表单是HTML页面中负责数据采集功能的部件.由表单标签,表单域和表单按钮组成.通过表单,将 ...

  10. 《Java安全编码标准》一2.11 IDS10-J不要拆分两种数据结构中的字符串

    2.11 IDS10-J不要拆分两种数据结构中的字符串 在历史遗留系统中,常常假设字符串中的每一个字符使用8位(一个字节,Java中的byte).而Java语言使用16位表示一个字符(Java中的Ch ...

最新文章

  1. Asp.Net微型服务器使用次数统计
  2. [摘抄] Bezier曲线、B样条和NURBS
  3. PostgreSQL 10.1 手册_部分 II. SQL 语言_第 5 章 数据定义_5.6. 权限
  4. JAVA——一次性读取或者写入文本文件所有内容
  5. [BZOJ2326] [HNOI2011] 数学作业 (矩阵乘法)
  6. ik分词和jieba分词哪个好_Pubseg:一种单双字串的BiLSTM中文分词工具
  7. 【下载中心】如何撰写分卷资源的标题、简介
  8. Go Little Book - 第三章 - 字典 ,数组和切片
  9. Nodejs开发框架Express3.0开发手记
  10. 获取音、视频时长(NAudio,Shell32,FFmpeg)
  11. Python3基础语法
  12. C和C++的关系, namespace, struct , class
  13. 使用Postman进行get、put、post端口测试
  14. 《CSS世界》--张鑫旭 : 前端样式高手进阶CSS
  15. NX二次开发-UFUN新建工程图UF_DRAW_create_drawing
  16. Netty高性能之道 1
  17. python发微信消息_利用python实现微信消息自动提醒
  18. 了解车辆驾驶行为、成功验证C-V2X技术
  19. 消息称聊天宝团队解散 罗永浩已经退出股东行列
  20. 阿里旺旺自动回复工具开发二

热门文章

  1. 数据分析:新冠疫情实时数据爬取
  2. 开关电源EMI整改实例(方法)。
  3. layim之创建群聊
  4. PDP激活请求,创建请求,删除请求
  5. 服务器显示504,帮您解决win7系统访问nginx服务器提示504 Gateway Time-out错误的修复技巧...
  6. java编写个人所得税_个人所得税JAVA算法
  7. Office2007注册码
  8. Eclipse创建maven工程后没有build path解决方案
  9. 数分下(第1讲):一阶微分方程的三类模型求解
  10. ggplot2设置坐标轴范围_ggplot2学习笔记之图形排列