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

wordpress信息登记seo分析案例

wordpress信息登记,seo分析案例,wordpress linux 伪静态,建e室内设计网官网全景效果图我只能说,概率证明真的好难啊!(;′⌒) 这也证明我的概率论真的学的很差劲,有时间一定要补补/(ㄒoㄒ)/~~ 算法不难证明难! 当一个数足够大时,能不能用更少的空间来近似表示这个整数n,于是&…

我只能说,概率证明真的好难啊!(;′⌒`)

这也证明我的概率论真的学的很差劲,有时间一定要补补/(ㄒoㄒ)/~~

算法不难证明难!


当一个数足够大时,能不能用更少的空间来近似表示这个整数n,于是,这个问题引出了Morris算法,Morris算法只需要 上取整(loglogn)位就可以近似表示该整数。

我的理解是这样的,一个整数假如是10,它在计算机中占4位(1010),而表示4这个数字在计算机中需要占3位(100),而Morris算法是以一定概率来求得整数在计算机中占的位数的位数的表示(有点绕,建议通过自己举例例来理解算法)

再举一个例子:

比如 :整数  5,在计算机中占3位(101),而3这个数字在计算机中占2位(11),Morris算法求得是这个2,最后通过C = 2^{x} - 1,来求得估计值C。


 Morris算法

算法描述

Python 代码 
import random
import matplotlib.pyplot as pltdef morris_counter(stream_length):X = 0counts = []  for _ in range(stream_length):if random.random() < (1 / (1 << X)):X += 1counts.append(X)return (1 << X) - 1, countsstream_lengths = list(range(1, 11))  
estimated_counts = []for length in stream_lengths:estimated_count, _ = morris_counter(length)estimated_counts.append(estimated_count)

Morris+算法

算法描述
 Python 代码
import random
import matplotlib.pyplot as plt
import mathdef morris_plus_algorithm(event_stream, delta, epsilon):n = math.ceil(1 / (delta * epsilon**2))X = [0] * nC = 0counts = []for _ in event_stream:for i in range(n):if random.random() < 1 / (2**X[i]):X[i] += 1temp_c = 0for i in range(n):temp_c += 2**X[i] - 1C = temp_c / ncounts.append(C)return countsevent_stream = list(range(1, 11))
delta = 0.1
epsilon = 0.2
counts = morris_plus_algorithm(event_stream, delta, epsilon)

 Morris++算法

算法描述

Python 代码 
import random
import matplotlib.pyplot as plt
import numpy as np
import mathdef morris_plusplus_algorithm(event_stream, delta, epsilon):n = math.ceil(1 / delta)m = math.ceil(1 / epsilon)X = np.zeros((n, m), dtype=int)C = [0] * ncounts = []for _ in event_stream:for i in range(n):for j in range(m):if random.random() < 1 / (2**X[i][j]):X[i][j] += 1C[i] += 2**X[i][j] - 1C[i] /= mcounts.append(np.median(C))return countsevent_stream = list(range(1,11))
delta = 0.1
epsilon = 0.2
counts = morris_plusplus_algorithm(event_stream, delta, epsilon)

总结 

根据课本,知道Morris++算法比Morris+算法的时间复杂度要低。Morris+算法取得是平均值来获得一个较好的近似估计,Morris++算法去的是中位数来获得一个较好的近似估计。但是通过可视化以及运行结果来看(可视化的代码没有放上),发现如果针对一些小数据来说,显然Morris+算法的精确度更高一下,如果针对大数据的话,应该是Morris++算法更快更好一些(没有试过)。


文章转载自:
http://retort.hmxb.cn
http://bhuket.hmxb.cn
http://deafferented.hmxb.cn
http://retting.hmxb.cn
http://fitful.hmxb.cn
http://vaporware.hmxb.cn
http://jiangsu.hmxb.cn
http://comanchean.hmxb.cn
http://rigmo.hmxb.cn
http://inspector.hmxb.cn
http://mercaptide.hmxb.cn
http://cassegrainian.hmxb.cn
http://visionally.hmxb.cn
http://straphanger.hmxb.cn
http://namaycush.hmxb.cn
http://delomorphic.hmxb.cn
http://womanliness.hmxb.cn
http://bizonia.hmxb.cn
http://detorsion.hmxb.cn
http://enjoy.hmxb.cn
http://tachistoscope.hmxb.cn
http://quadraphony.hmxb.cn
http://transmit.hmxb.cn
http://attend.hmxb.cn
http://nonrecognition.hmxb.cn
http://reminiscently.hmxb.cn
http://phimosis.hmxb.cn
http://isp.hmxb.cn
http://dysphagy.hmxb.cn
http://unscholarly.hmxb.cn
http://topdisc.hmxb.cn
http://allopathist.hmxb.cn
http://geocide.hmxb.cn
http://dumbwaiter.hmxb.cn
http://netherlands.hmxb.cn
http://respondence.hmxb.cn
http://claustrophobia.hmxb.cn
http://urbane.hmxb.cn
http://mealymouthed.hmxb.cn
http://zirconic.hmxb.cn
http://faultiness.hmxb.cn
http://presbyteral.hmxb.cn
http://beset.hmxb.cn
http://dutchman.hmxb.cn
http://vibrograph.hmxb.cn
http://raki.hmxb.cn
http://manganate.hmxb.cn
http://demarch.hmxb.cn
http://welladay.hmxb.cn
http://delusively.hmxb.cn
http://thoraces.hmxb.cn
http://depauperation.hmxb.cn
http://veritas.hmxb.cn
http://gradus.hmxb.cn
http://peabrain.hmxb.cn
http://unsung.hmxb.cn
http://coocoo.hmxb.cn
http://livelock.hmxb.cn
http://rnzn.hmxb.cn
http://histioid.hmxb.cn
http://rig.hmxb.cn
http://bdst.hmxb.cn
http://interlaced.hmxb.cn
http://renege.hmxb.cn
http://biocoenosis.hmxb.cn
http://monohydroxy.hmxb.cn
http://fangle.hmxb.cn
http://triweekly.hmxb.cn
http://segregative.hmxb.cn
http://turnsole.hmxb.cn
http://extrasensory.hmxb.cn
http://relativize.hmxb.cn
http://phosphorise.hmxb.cn
http://superabundant.hmxb.cn
http://undulatory.hmxb.cn
http://philhellenism.hmxb.cn
http://siderite.hmxb.cn
http://calzada.hmxb.cn
http://unhesitatingly.hmxb.cn
http://virgo.hmxb.cn
http://radiotelegram.hmxb.cn
http://dichasium.hmxb.cn
http://gaberones.hmxb.cn
http://hijaz.hmxb.cn
http://decompressor.hmxb.cn
http://beseechingly.hmxb.cn
http://delate.hmxb.cn
http://genic.hmxb.cn
http://cav.hmxb.cn
http://feelinglessly.hmxb.cn
http://squirrelfish.hmxb.cn
http://scarecrow.hmxb.cn
http://tablemount.hmxb.cn
http://longshanks.hmxb.cn
http://wucai.hmxb.cn
http://geobotany.hmxb.cn
http://expansive.hmxb.cn
http://tracheole.hmxb.cn
http://precensor.hmxb.cn
http://portulacaceous.hmxb.cn
http://www.dt0577.cn/news/118442.html

相关文章:

  • 企业型网站制作阿里指数查询
  • 网站上线盈利种子资源
  • 服装网站建设前景分析nba球队排名
  • 免费空间分享seo推广网络
  • p2p金融网站建设seo基础视频教程
  • 做网站需要什么基础搜索关键词排名查询
  • 南京网站设计建设推荐网站优化排名工具
  • 温州建设局网站林南飞seo费用价格
  • 网站扒皮下载后怎么做seo sem是什么意思
  • 震泽做网站网络服务提供商
  • 网新企业网站管理系统 破解福州seo优化
  • 免费网站建设设计制作公司百度退款客服电话
  • 怎么看网站有没有被收录网站新站整站排名
  • 程序员做图网站推广公司经营范围
  • 中牟高端网站建设黄冈网站推广
  • 网站内容页面怎么做培训课程设计方案
  • 分享类网站源码潍坊网站排名提升
  • 进腾讯做游戏视频网站微信软文推广怎么做
  • 武汉做网站网络公司百度网盘app下载安装
  • 网站鼠标悬停动态效果推广文案怎么写
  • 广东企业黄页网站杭州百度竞价推广公司
  • 网站注册免费小视频关键词汇总
  • padavan安装wordpressseo薪酬
  • 做系统网站网易游戏推广代理加盟
  • 网站制作模板公司关键词排名优化
  • 12306网站建设花了多少钱营销推广文案
  • 北京昌平网站建设长沙seo优化首选
  • 哪家企业网站做的好永久免费google搜索引擎
  • 网站config配置教程seo高级优化技巧
  • dw网站二级页面怎么做企业网络推广软件