资料介绍
The word frequency counter, as previously implemented, takes several minutes to count the frequency of words in the author’s manuscript for this textbook on a Raspberry Pi. Most of the time
is spent building the list of words and re-sorting the list in order of word frequency. Most of the
time for both of these operations is spent in searching for the word in the list before incrementing its count or inserting it in the list. There are more efficient ways to build ordered lists of data.
Since the code is well modularized using an ADT, the internal mechanism of the list can be
modified without affecting the main program. A major improvement can be made by changing
the data structure from a linked list to a binary tree. Fig. 6.1 shows an example binary tree
storing word frequency counts. The time required to insert into a linked list is O(N), but the
time required to insert into a binary tree is O(log2 N)。 To give some perspective, the author’s
manuscript for this textbook contains about 125,000 words. Since log2(125,000) 《 17, we
would expect the linked list implementation to require about 125,000
17 ≈ 7353 times as long as a
binary tree implementation to process the author’s manuscript for this textbook. In reality,

- 慕课嵌入式系统(第五章.ARM汇编与C混合编程)
- GNU汇编入门教程免费下载 20次下载
- 微机的汇编语言及汇编程序设计学习课件免费下载 6次下载
- 汇编程序设计的教程课件免费下载 17次下载
- DSP设计与应用教程之汇编程序设计举例的资料说明 19次下载
- 单片机汇编语言程序设计的详细资料精讲 28次下载
- 51单片机汇编程序有哪些?51单片机汇编程序集详细资料免费下载 55次下载
- DSP汇编程序优化方法的探讨 5次下载
- 汇编语言学习课件_Windows汇编程序设计基础 0次下载
- AD和DA转换的c程序和对应的汇编程序 27次下载
- 汇编程序100例 97次下载
- GNU-ARM汇编
- 51 系列汇编程序设计的优化1
- ARM程序设计基础
- 汇编程序设计
- 使用Eclipse插件调试AT32系列芯片 4.1k次阅读
- 零基础学ARM:汇编伪指令、lds详解 3.8k次阅读
- 51单片机的汇编程序库 1.1w次阅读
- DS18B20和51单片机连接的汇编程序免费下载 5.2k次阅读
- 混合编程的基本方式, 在C51中嵌入汇编程序 1.2w次阅读
- 如何在c51程序中调用汇编函数 4.7k次阅读
- 怎么编写一个最简单的单片机程序? 3.7w次阅读
- 一分钟看懂51控制的MT8880双音频收发器的汇编程序及源代码 3.4k次阅读
- 基于51汇编语言的外部中断 3.5k次阅读
- C语言程序内存布局该关注哪些内容 1.2k次阅读
- 拒绝开发板, 用 SkyEye 就可以模拟 ARM Linux! 1.1w次阅读
- 跑马灯实验用汇编语言和C51语言做出的不同效果 4.5k次阅读
- 单片机C语言程序设计:TIMER0与TIMER1控制条形LED 4.3k次阅读
- mips汇编语言程序设计实例 2.1w次阅读
- 单片机编程之汇编语言基础-常用指令和程序模式 1.6w次阅读
下载排行
本周
- 1FS4054H 输入电压范围3.8V~6.8V 输入最大耐压28V 输入过压关闭充电阈值6.8V
- 4.22 MB | 2次下载 | 免费
- 2AC/DC 225W 开板电源 LOF225-23BxxR2系列数据手册
- 2.70 MB | 1次下载 | 1 积分
- 3晶振技术解析---电子设备的“时钟心脏”
- 1.55 MB | 1次下载 | 免费
- 4AU6830M 集成音频 DSP 的 2 × 41W 数字型 Class D 音频功率放大器数据手册
- 1.86 MB | 次下载 | 免费
- 5AU6815E 集成音频 DSP 的2×32W数字型 Class D 音频功率放大器数据手册
- 1.21 MB | 次下载 | 免费
- 6I-PEX 82652-100B-02-D_CABLINE-CA系列40P极细同轴线束SI设计图纸
- 293.34 KB | 次下载 | 免费
- 7I-PEX 82863-100B-02-D_CABLINE-CA系列PCIe/USB4极细同轴线图纸
- 301.83 KB | 次下载 | 免费
- 8YA-002S屏幕挂灯说明书
- 1.25 MB | 次下载 | 免费
本月
- 1人形机器人执行、感知系统技术及市场解析
- 3.52 MB | 5次下载 | 免费
- 2WD431产品规格书
- 1.32 MB | 3次下载 | 免费
- 3A-29回音消除模块
- 1.28 MB | 2次下载 | 免费
- 4 双麦阵列回音消除及降噪模块 A-47 说明书
- 1.96 MB | 2次下载 | 免费
- 5FS4054H 输入电压范围3.8V~6.8V 输入最大耐压28V 输入过压关闭充电阈值6.8V
- 4.22 MB | 2次下载 | 免费
- 6A-68语音处理模组规格书V1
- 1.47 MB | 1次下载 | 免费
- 7A-29P回音消除模块
- 1.42 MB | 1次下载 | 免费
- 8瑞芯微RK3562开发板资料-飞凌嵌入式
- 2.80 MB | 1次下载 | 免费
总榜
- 1matlab软件下载入口
- 未知 | 935137次下载 | 10 积分
- 2开源硬件-PMP21529.1-4 开关降压/升压双向直流/直流转换器 PCB layout 设计
- 1.48MB | 420064次下载 | 10 积分
- 3Altium DXP2002下载入口
- 未知 | 233095次下载 | 10 积分
- 4电路仿真软件multisim 10.0免费下载
- 340992 | 191469次下载 | 10 积分
- 5十天学会AVR单片机与C语言视频教程 下载
- 158M | 183361次下载 | 10 积分
- 6labview8.5下载
- 未知 | 81608次下载 | 10 积分
- 7Keil工具MDK-Arm免费下载
- 0.02 MB | 73836次下载 | 10 积分
- 8LabVIEW 8.6下载
- 未知 | 65991次下载 | 10 积分
电子发烧友App





创作
发文章
发帖
提问
发资料
发视频
上传资料赚积分
评论