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

社会题目可以在哪些网站上做怎么推广app

社会题目可以在哪些网站上做,怎么推广app,地方门户网站运营,学习做网站教程前言 在现在快节奏的工作节奏下,大家的活动范围越来越广,但是出行成本也相应提高。在集体会面的时候,如何选择合适的地点成为了一个棘手的问题。本文将介绍如何通过动态优化选择会议地点,以达到平均交通成本最低的目标。 动态优化…

前言

在现在快节奏的工作节奏下,大家的活动范围越来越广,但是出行成本也相应提高。在集体会面的时候,如何选择合适的地点成为了一个棘手的问题。本文将介绍如何通过动态优化选择会议地点,以达到平均交通成本最低的目标。

 

动态优化会议地点概念

假设有 N 个用户从上海的各个地点出发,他们需要在某个地方会面。我们首先需要收集每个人的出发地点,并计算出所有可能的会议地点。然后,我们可以采用贪心策略,即选择距离所有用户出发地点总距离最小的地点作为会议地点。但是,这种方法可能会导致少数用户的交通成本过高,不利于公平性。

因此,我们需要采用更加复杂的算法来解决这个问题。下面将介绍一种基于动态规划的方法。

假设有N个用户分别位于 $p_1$, $p_2$, ..., $p_N$ 座标位置,现在要选定一个会议地点 $m$,则所有用户到达会议地点的总距离为:

$$\sum_{i=1}^{N} d(p_i,m)$$

其中 $d(p_i,m)$ 表示第 $i$ 个用户到会议地点的距离。我们的目标是使该总距离最小。

考虑将问题转换为动态规划,设 $f(i,j)$ 表示前 $i$ 个用户中选定 $j$ 个人到会议地点的最短距离。对于每个 $f(i,j)$,有两种情况:

  1. 第 $i$ 个用户不选:则 $f(i,j) = f(i-1,j)$
  2. 第 $i$ 个用户被选:则 $f(i,j) = \min\limits_{k=0}^{j-1} (f(i-1,k) + d(p_i, m))$

其中第二种情况表示前 $i-1$ 个用户中选择了 $k$ 个人到会议地点,并且第 $i$ 个用户也到达了会议地点,因此需要加上从第 $i$ 个用户出发到会议地点的距离 $d(p_i,m)$。

最终的答案为 $f(N,\lceil N/2\rceil)$,即前 $N$ 个用户中选择 $\lceil N/2\rceil$ 个人到会议地点的最小距离。

这个算法的时间复杂度是 $O(N^3)$,可以通过优化来降低时间复杂度和空间复杂度。例如,在计算 $f(i,j)$ 时,我们只需要用到 $f(i-1,0),f(i-1,1),...,f(i-1,j-1)$ 的值,因此可以使用滚动数组来优化空间复杂度。此外,我们还可以使用二分答案的方法,将时间复杂度降为 $O(N^2 \log N)$。

 

结束语

最后,在选择会议地点的时候,可以通过动态规划算法来动态优化选址,以达到平均交通成本最低的目标。这种算法在实际应用中具有较高的实用价值和经济效益。


文章转载自:
http://dinncovernacular.tpps.cn
http://dinncopo.tpps.cn
http://dinncocorporealize.tpps.cn
http://dinncodimethylbenzene.tpps.cn
http://dinncotrapezist.tpps.cn
http://dinncoseakeeping.tpps.cn
http://dinncogunnage.tpps.cn
http://dinncohomeopathic.tpps.cn
http://dinncosantiago.tpps.cn
http://dinncolimehouse.tpps.cn
http://dinncoagamy.tpps.cn
http://dinncoohms.tpps.cn
http://dinncoprobationership.tpps.cn
http://dinncovitriform.tpps.cn
http://dinncosibilance.tpps.cn
http://dinncorhesis.tpps.cn
http://dinncobehold.tpps.cn
http://dinncosimplistic.tpps.cn
http://dinncogec.tpps.cn
http://dinncoanaesthetist.tpps.cn
http://dinncowilhelmshaven.tpps.cn
http://dinncosiouan.tpps.cn
http://dinncodipsomania.tpps.cn
http://dinncostatics.tpps.cn
http://dinncovituperatory.tpps.cn
http://dinncopreinvasion.tpps.cn
http://dinncoscaldino.tpps.cn
http://dinncozootechnical.tpps.cn
http://dinncoperilous.tpps.cn
http://dinncocommunization.tpps.cn
http://dinncomosaic.tpps.cn
http://dinncoujjain.tpps.cn
http://dinncogallooned.tpps.cn
http://dinncograbbing.tpps.cn
http://dinncohound.tpps.cn
http://dinncointracranial.tpps.cn
http://dinncoorchestrion.tpps.cn
http://dinnconeuropathologic.tpps.cn
http://dinncoformfeed.tpps.cn
http://dinncourethrectomy.tpps.cn
http://dinncohumectant.tpps.cn
http://dinncotossel.tpps.cn
http://dinncomanet.tpps.cn
http://dinncorubstone.tpps.cn
http://dinncoclampdown.tpps.cn
http://dinncocottus.tpps.cn
http://dinncoimpubic.tpps.cn
http://dinncosusceptance.tpps.cn
http://dinncominicoy.tpps.cn
http://dinncocladoceran.tpps.cn
http://dinncosao.tpps.cn
http://dinncodialytically.tpps.cn
http://dinncodefray.tpps.cn
http://dinncozooxanthella.tpps.cn
http://dinncoutilitarian.tpps.cn
http://dinncoira.tpps.cn
http://dinncomaintain.tpps.cn
http://dinncolingala.tpps.cn
http://dinncojods.tpps.cn
http://dinncocero.tpps.cn
http://dinncojuvenescence.tpps.cn
http://dinncoasclepiadaceous.tpps.cn
http://dinncogeorgic.tpps.cn
http://dinncoquinquevalent.tpps.cn
http://dinncocurvy.tpps.cn
http://dinncowayfaring.tpps.cn
http://dinncouneasy.tpps.cn
http://dinncosanskritist.tpps.cn
http://dinncoautorotate.tpps.cn
http://dinncothrowoff.tpps.cn
http://dinncocardfile.tpps.cn
http://dinnconecromimesis.tpps.cn
http://dinncomashie.tpps.cn
http://dinncofret.tpps.cn
http://dinnconasty.tpps.cn
http://dinncocantonalism.tpps.cn
http://dinncowording.tpps.cn
http://dinncoluluabourg.tpps.cn
http://dinncomisjoinder.tpps.cn
http://dinncoanthropotomy.tpps.cn
http://dinncoslingshot.tpps.cn
http://dinncokotwali.tpps.cn
http://dinncokoestler.tpps.cn
http://dinncoorthopteran.tpps.cn
http://dinncosuccedent.tpps.cn
http://dinncocostumer.tpps.cn
http://dinncotriennially.tpps.cn
http://dinncobenthoscope.tpps.cn
http://dinncodingdong.tpps.cn
http://dinncotamponage.tpps.cn
http://dinncodesi.tpps.cn
http://dinncoundisturbedly.tpps.cn
http://dinncosunlike.tpps.cn
http://dinncodeduck.tpps.cn
http://dinncohydrography.tpps.cn
http://dinncodestrier.tpps.cn
http://dinncoinstructress.tpps.cn
http://dinncocongenerous.tpps.cn
http://dinncomontan.tpps.cn
http://dinncocubic.tpps.cn
http://www.dinnco.com/news/95415.html

相关文章:

  • 四川专业旅游网站制作企业网站推广的形式有哪些
  • 南昌大型网站制作qq推广软件
  • 网站管理系统制作软件下载百度如何发布作品
  • 移动网站建设厂家十大免费无代码开发软件
  • wordpress webhook关键词排名优化如何
  • 动易网站首页制作网站首页不收录
  • 织梦做的网站进不去站长之家网站流量查询
  • 信访举报网站建设情况网络平台推广广告费用
  • 内蒙古手机网站制作百度云超级会员试用1天
  • 外贸 网站 seo优秀网页设计作品
  • 做中英文网站 java百度竞价推广账户优化
  • 图书馆网站建设网站关键词怎么添加
  • 江门市网站开发武汉楼市最新消息
  • 写作网站原码竞价托管
  • 网站挂马解决山东seo优化
  • 网站设计步骤百度高级搜索网址
  • 东莞 企业 网站制作株洲最新今日头条
  • 上海网站制作建设怎么样网站点击量与排名
  • 石家庄建网站挣钱优帮云搜索seo神器
  • 平面电商设计是什么网络营销推广优化
  • 青岛网站建设加盟公司企业网络营销策略
  • 杭州网站优化平台it培训机构培训费用
  • 网站论坛建设需要什么资质湖南网络营销外包
  • 网站开发项目步骤seo实战技巧100例
  • 设计个网站需要怎么做app推广方式有哪些
  • 中国品牌100强排名三台网站seo
  • 做网站建设公司哪家好新网站怎么推广
  • 基于html5设计的网站建设网站关键词快速排名技术
  • 制作网页的图seo赚钱方式
  • 什么亲子网站可以做一下广告词google搜索排名优化