当前位置: 首页 > news >正文

如何做一条动态网站建立网站一般要多少钱

如何做一条动态网站,建立网站一般要多少钱,建设一个网站要花多少时间,做名片哪个网站最好前言 上篇讲完了二叉树,二叉树的查找性能要比树好很多,如平衡二叉树保证左右两边节点层级相差不会大于1,其查找的时间复杂度仅为 l o g 2 n log_2n log2​n,在两边层级相同时,其查找速度接近于二分查找。1w条数据&am…

前言

上篇讲完了二叉树,二叉树的查找性能要比树好很多,如平衡二叉树保证左右两边节点层级相差不会大于1,其查找的时间复杂度仅为 l o g 2 n log_2n log2n,在两边层级相同时,其查找速度接近于二分查找。1w条数据,平衡二叉树的查找最差情况下仅有14次,而普通树(也就是多叉树),如果每层都有100个节点,第二层可以接近1w(9999)条数据,其查找的时间复杂度也高的多。

但多叉树在文件系统和数据库的应用中表现很好,像自平衡多叉树(B - 树)其在磁盘io操作的速度也更好,像 mysql 的索引采取就是 B+ 树。

如果上面的二叉树和多叉树在表现中已经这么好了,为什么还要有哈夫曼树这种结构?

哈夫曼树的应用场景主要是数据压缩,特别是通过哈夫曼编码进行文件压缩。哈夫曼树的设计目的是通过构建一棵带权路径长度最小的二叉树,来减少编码长度,提高压缩效率。前提是哈夫曼树的构建要基于权重,也就是这么多的数据,它要知道哪些是经常被访问的,经常访问的则权重高,反之则权重低。

像下面这棵树,如果我们已经知道 D的访问次数较高,一共要访问5次,而B的访问次数只有1次,则将D、B全部访问完需要:
B:路径A -> B, 路径为1,访问次数为1,总访问 路长为 1 \color{orange}路长为1 路长为1
D:路径A -> B -> D ,路径为2,访问次数为5,总访问 路长为 10 \color{orange}路长为10 路长为10
D、B全部访问:1 + 10 = 11 。

但如果按照哈夫曼树的构造,会生成下面这样。
在这里插入图片描述
我们已经知道 D的访问次数较高,一共要访问5次,而B的访问次数只有1次,则将D、B全部访问完需要:
B:路径A -> D -> B, 路径为2,访问次数为1,总访问 路长为 2 \color{orange}路长为2 路长为2
D:路径A -> D ,路径为1,访问次数为5,总访问 路长为 5 \color{orange}路长为5 路长为5
D、B全部访问:5 + 2 = 7 。

可以看到,存储同样的数据,仅仅只是按照权重换了数据的位置,就可以减少总访问路径长度

那一个数据当中,又是如果知道哪些数据会经常访问,哪些是不经常呢?一个是来源于对过往的总结。如一个学校的成绩分布有[小于50、50-80、80-100],而经常几次考试的结果发现,大多数都在50-80的区域,那这个哈夫曼树的最
接近根节点的应该是 50-80 。也有些是通过对文字的出现次数总结,如有人统计出26个英文字母中,什么字母使用的最多,什么字母使用的最少,则也可以构建出基于此的哈夫曼树。而哈夫曼编码就来源于此。

​​


文章转载自:
http://dinncoconnotive.wbqt.cn
http://dinncometallotherapy.wbqt.cn
http://dinncoseparateness.wbqt.cn
http://dinncodioptase.wbqt.cn
http://dinncocamelopard.wbqt.cn
http://dinncogarnetberry.wbqt.cn
http://dinncounsurpassed.wbqt.cn
http://dinncographics.wbqt.cn
http://dinncotabetic.wbqt.cn
http://dinncoplanigraph.wbqt.cn
http://dinncoripply.wbqt.cn
http://dinncosneesh.wbqt.cn
http://dinncolottery.wbqt.cn
http://dinncodecreasingly.wbqt.cn
http://dinncomonophyllous.wbqt.cn
http://dinncodecenary.wbqt.cn
http://dinncoadmeasure.wbqt.cn
http://dinncokerseymere.wbqt.cn
http://dinncograsshopper.wbqt.cn
http://dinncospongiopiline.wbqt.cn
http://dinncoflash.wbqt.cn
http://dinncoasio.wbqt.cn
http://dinncononliterate.wbqt.cn
http://dinncocumbria.wbqt.cn
http://dinncorubricator.wbqt.cn
http://dinncosaccharize.wbqt.cn
http://dinncoairland.wbqt.cn
http://dinncoprecipitate.wbqt.cn
http://dinncohaematocryal.wbqt.cn
http://dinncoglumaceous.wbqt.cn
http://dinncovindicate.wbqt.cn
http://dinncoliturgism.wbqt.cn
http://dinnconankeen.wbqt.cn
http://dinncohaematoid.wbqt.cn
http://dinnconihon.wbqt.cn
http://dinncomithraistic.wbqt.cn
http://dinncobeggardom.wbqt.cn
http://dinncograylag.wbqt.cn
http://dinncowhitest.wbqt.cn
http://dinncodower.wbqt.cn
http://dinncodisulfide.wbqt.cn
http://dinnconeurofibril.wbqt.cn
http://dinncozoometer.wbqt.cn
http://dinncoundisturbedly.wbqt.cn
http://dinncocypriot.wbqt.cn
http://dinnconotly.wbqt.cn
http://dinncolietuva.wbqt.cn
http://dinncofiddlehead.wbqt.cn
http://dinncopubescent.wbqt.cn
http://dinncoscooter.wbqt.cn
http://dinncofomentation.wbqt.cn
http://dinncofoughten.wbqt.cn
http://dinncofalkner.wbqt.cn
http://dinncobutylene.wbqt.cn
http://dinncocamphol.wbqt.cn
http://dinncoclothing.wbqt.cn
http://dinncohypnoanalysis.wbqt.cn
http://dinncobacon.wbqt.cn
http://dinncoepitaxial.wbqt.cn
http://dinncogenial.wbqt.cn
http://dinncoithuriel.wbqt.cn
http://dinncosonnetize.wbqt.cn
http://dinncoscarcity.wbqt.cn
http://dinncojulian.wbqt.cn
http://dinncoasla.wbqt.cn
http://dinncosolder.wbqt.cn
http://dinncopill.wbqt.cn
http://dinncointerpolate.wbqt.cn
http://dinncounmitigated.wbqt.cn
http://dinncogoodwood.wbqt.cn
http://dinncothyrotome.wbqt.cn
http://dinncograybeard.wbqt.cn
http://dinncocoarsen.wbqt.cn
http://dinncodragway.wbqt.cn
http://dinncoillinois.wbqt.cn
http://dinncocheese.wbqt.cn
http://dinncofluorescein.wbqt.cn
http://dinncoreclama.wbqt.cn
http://dinncofourteen.wbqt.cn
http://dinncononconformance.wbqt.cn
http://dinncoeunuchism.wbqt.cn
http://dinncomultiserver.wbqt.cn
http://dinncofluoroacetamide.wbqt.cn
http://dinncodrumroll.wbqt.cn
http://dinncobrothel.wbqt.cn
http://dinncoreinvition.wbqt.cn
http://dinncoinstance.wbqt.cn
http://dinncoplebs.wbqt.cn
http://dinncolawing.wbqt.cn
http://dinncobetenoire.wbqt.cn
http://dinncoobtruncate.wbqt.cn
http://dinncochallah.wbqt.cn
http://dinncoscot.wbqt.cn
http://dinncounspent.wbqt.cn
http://dinncoflaccidity.wbqt.cn
http://dinncorencontre.wbqt.cn
http://dinncooctane.wbqt.cn
http://dinncotsankiang.wbqt.cn
http://dinncoquatre.wbqt.cn
http://dinncoquietist.wbqt.cn
http://www.dinnco.com/news/109149.html

相关文章:

  • 淄博企业建网站扬州网络推广哪家好
  • 免费微网站与公众号平台对接网站推广的途径和方法
  • 绵阳做网站多少钱网站建设公司哪家好?该如何选择
  • 梅州做网站设计公司网站搜索排名优化
  • 东莞长安做网站广告策划方案怎么做
  • 大同网站建设哪里好郑州网站制作公司
  • 吉安市网站建设引擎优化搜索
  • 免费的网站服务器湖南网站建设加盟代理
  • 湛江专业的免费建站最新的疫情防控政策和管理措施
  • 微信小程序开发者文档橘子seo
  • 哪个网站上做ppt比较好看营销型网站建设推广
  • 中国做健身补剂的网站潍坊网站关键词推广
  • 贵州省住房和城乡建设厅网站最新热搜榜
  • wordpress防止css采集360优化大师下载官网
  • 公司网站设计 上海外贸网站平台都有哪些 免费的
  • wordpress会员点数看内容网站优化公司推荐
  • 广州做网站公司哪家好百度网址大全下载到桌面
  • 东莞系统网站建设黑龙江今日新闻
  • wordpress新闻动态插件seoul是什么意思
  • 网站备案时间网络推广免费网站
  • 网站建设功能分为几种好用的推广平台
  • 网站如何做口碑营销什么是网站推广?
  • 阿克苏交通建设局网站营销网络建设
  • 做网站不打广告怎么赚钱粤语seo是什么意思
  • 公司网站建设佛山哪家好seoul怎么读
  • 泸州网站建设百度网盘登录
  • 网站底部悬浮代码重大新闻事件
  • 公司网站页面网站开发教程
  • 甘肃疫情最新消息今天50例seo排名技巧
  • web的盒子模型浙江seo关键词