資料介紹
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,

- 慕課嵌入式系統(tǒng)(第五章.ARM匯編與C混合編程)
- GNU匯編入門教程免費下載 20次下載
- 微機的匯編語言及匯編程序設(shè)計學習課件免費下載 6次下載
- 匯編程序設(shè)計的教程課件免費下載 17次下載
- DSP設(shè)計與應用教程之匯編程序設(shè)計舉例的資料說明 19次下載
- 單片機匯編語言程序設(shè)計的詳細資料精講 28次下載
- 51單片機匯編程序有哪些?51單片機匯編程序集詳細資料免費下載 55次下載
- DSP匯編程序優(yōu)化方法的探討 5次下載
- 匯編語言學習課件_Windows匯編程序設(shè)計基礎(chǔ) 0次下載
- AD和DA轉(zhuǎn)換的c程序和對應的匯編程序 27次下載
- 匯編程序100例 97次下載
- GNU-ARM匯編
- 51 系列匯編程序設(shè)計的優(yōu)化1
- ARM程序設(shè)計基礎(chǔ)
- 匯編程序設(shè)計
- 使用Eclipse插件調(diào)試AT32系列芯片 4.1k次閱讀
- 零基礎(chǔ)學ARM:匯編偽指令、lds詳解 3.8k次閱讀
- 51單片機的匯編程序庫 1.1w次閱讀
- DS18B20和51單片機連接的匯編程序免費下載 5.2k次閱讀
- 混合編程的基本方式, 在C51中嵌入匯編程序 1.2w次閱讀
- 如何在c51程序中調(diào)用匯編函數(shù) 4.7k次閱讀
- 怎么編寫一個最簡單的單片機程序? 3.7w次閱讀
- 一分鐘看懂51控制的MT8880雙音頻收發(fā)器的匯編程序及源代碼 3.4k次閱讀
- 基于51匯編語言的外部中斷 3.5k次閱讀
- C語言程序內(nèi)存布局該關(guān)注哪些內(nèi)容 1.2k次閱讀
- 拒絕開發(fā)板,?用 SkyEye 就可以模擬 ARM Linux! 1.1w次閱讀
- 跑馬燈實驗用匯編語言和C51語言做出的不同效果 4.5k次閱讀
- 單片機C語言程序設(shè)計:TIMER0與TIMER1控制條形LED 4.3k次閱讀
- mips匯編語言程序設(shè)計實例 2.1w次閱讀
- 單片機編程之匯編語言基礎(chǔ)-常用指令和程序模式 1.6w次閱讀
下載排行
本周
- 1冷柜-電氣控制系統(tǒng)講解
- 13.68 MB | 4次下載 | 10 積分
- 2安川A1000變頻器中文版說明書
- 20.16 MB | 3次下載 | 3 積分
- 3直流電路的組成和基本定律
- 1.67 MB | 2次下載 | 免費
- 4丹佛斯2800系列變頻器說明書
- 8.00 MB | 1次下載 | 5 積分
- 5PC8011同步開關(guān)型降壓3.5A單節(jié)鋰電池充電管理電路技術(shù)手冊
- 0.74 MB | 1次下載 | 免費
- 6ES7243E+ES8311音頻錄制與播放電路資料
- 0.06 MB | 1次下載 | 5 積分
- 7SDM02 激光測距模塊產(chǎn)品手冊
- 0.43 MB | 1次下載 | 免費
- 8SDFM 激光測距模塊模組手冊
- 0.54 MB | 1次下載 | 免費
本月
- 1CH341編程器軟件NeoProgrammer_2.2.0.10
- 20.47 MB | 170次下載 | 1 積分
- 22025智能家居傳感器市場分析及創(chuàng)新應用
- 3.11 MB | 43次下載 | 免費
- 3RV1126B系列開發(fā)板產(chǎn)品資料
- 4.19 MB | 18次下載 | 免費
- 4CH341編程軟件下載
- 2.50 MB | 16次下載 | 5 積分
- 5全志系列-米爾基于T153核心板開發(fā)板 四核異構(gòu)、3路千兆網(wǎng),賦能多元化工業(yè)場景
- 3.05 MB | 12次下載 | 免費
- 6【開源】60余套STM32單片機、嵌入式Linux、物聯(lián)網(wǎng)、人工智能項目案例及入門學習資源包
- 10.55 MB | 8次下載 | 免費
- 7冷柜-電氣控制系統(tǒng)講解
- 13.68 MB | 4次下載 | 10 積分
- 8特斯拉MODEL S車載充電機主電路回路原理圖
- 0.81 MB | 4次下載 | 3 積分
總榜
- 1matlab軟件下載入口
- 未知 | 935137次下載 | 10 積分
- 2開源硬件-PMP21529.1-4 開關(guān)降壓/升壓雙向直流/直流轉(zhuǎn)換器 PCB layout 設(shè)計
- 1.48MB | 420064次下載 | 10 積分
- 3Altium DXP2002下載入口
- 未知 | 233094次下載 | 10 積分
- 4電路仿真軟件multisim 10.0免費下載
- 340992 | 191448次下載 | 10 積分
- 5十天學會AVR單片機與C語言視頻教程 下載
- 158M | 183356次下載 | 10 積分
- 6labview8.5下載
- 未知 | 81604次下載 | 10 積分
- 7Keil工具MDK-Arm免費下載
- 0.02 MB | 73824次下載 | 10 積分
- 8LabVIEW 8.6下載
- 未知 | 65991次下載 | 10 積分
電子發(fā)燒友App





創(chuàng)作
發(fā)文章
發(fā)帖
提問
發(fā)資料
發(fā)視頻
上傳資料賺積分
評論