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

东莞网站建设网页推广怎么弄一个自己的链接

东莞网站建设网页推广,怎么弄一个自己的链接,手机ui设计网站,个人网站可以备案了吗1 K中心问题#xff08;K-centers Problem#xff09; k-centers problem: 寻找k个半径越小越好的center以覆盖所有的点。 比如#xff1a;给定n个城市和每对城市之间的距离#xff0c;选择k个城市放置仓库#xff08;或ATM或云服务器#xff09;#xff0c;以使城市… 1 K中心问题K-centers Problem k-centers problem: 寻找k个半径越小越好的center以覆盖所有的点。   比如给定n个城市和每对城市之间的距离选择k个城市放置仓库或ATM或云服务器以使城市到仓库或ATM或云服务器的最大距离最小化。 再如考虑以下四个城市0、1、2和3以及它们之间的距离如何在这四个城市中放置两台ATM以使城市到ATM的最大距离最小化。 2 源程序 using System; using System.Collections.Generic; namespace Legalsoft.Truffer.Algorithm {     public class K_Centers     {         private static int MaxIndex(int[] dist, int n)         {             int mi 0;             for (int i 0; i n; i)             {                 if (dist[i] dist[mi])                 {                     mi i;                 }             }             return mi;         } public static Listint Select_K_Cities(int[,] weights, int k)         {             int n weights.GetLength(0);             int[] dist new int[n];             Listint centers new Listint();             for (int i 0; i n; i)             {                 dist[i] Int32.MaxValue;             } int max 0;             for (int i 0; i k; i)             {                 centers.Add(max);                 for (int j 0; j n; j)                 {                     dist[j] Math.Min(dist[j], weights[max, j]);                 }                 max MaxIndex(dist, n);             } Listint list new Listint();             list.Add(dist[max]);             for (int i 0; i centers.Count; i)             {                 list.Add(centers[i]);             }             return list;         }     } }   3 源代码 using System; using System.Collections.Generic;namespace Legalsoft.Truffer.Algorithm {public class K_Centers{private static int MaxIndex(int[] dist, int n){int mi 0;for (int i 0; i n; i){if (dist[i] dist[mi]){mi i;}}return mi;}public static Listint Select_K_Cities(int[,] weights, int k){int n weights.GetLength(0);int[] dist new int[n];Listint centers new Listint();for (int i 0; i n; i){dist[i] Int32.MaxValue;}int max 0;for (int i 0; i k; i){centers.Add(max);for (int j 0; j n; j){dist[j] Math.Min(dist[j], weights[max, j]);}max MaxIndex(dist, n);}Listint list new Listint();list.Add(dist[max]);for (int i 0; i centers.Count; i){list.Add(centers[i]);}return list;}} }
http://www.pierceye.com/news/47948/

相关文章:

  • 马鞍山 做网站聚名网抢注
  • 四川建设人才网站wordpress html结尾
  • 设计素材网站大全网站自己做视频网站犯法
  • 钛钢饰品网站建设怎么做运营网站
  • 自助网站建设系统源码企业网址怎么注册
  • wordpress官方网站广告公司简介及制作经验
  • 网站推广在哪些平台做外链互联网公司排名情况
  • 为违法网站做推广进去要几年开个公司大概需要多少钱
  • 银川品牌网站建设公司wordpress 分类目录 标题
  • 万柏林网站建设什么网站做优化最好?
  • 网站建设电商板块.net 网站模板下载地址
  • 网站收录突然减少没有网怎么装wordpress
  • 在服务器网站上做跳转页面南京市江宁区建设局网站
  • 做网站好网站怎么做能让人搜到
  • 网站开发体会范文宝安网站(建设深圳信科)
  • 怎样免费做公司网站企业网站设计中应注意产品发布功能优化
  • 网站标题特效公司建设网站的通知
  • 乐山建设网站东营建设信息网登录
  • 泰安网站建设培训网站建设历史
  • 返利淘客网站源码pytson做网站安全吗
  • 做废塑料生意那个网站最专业扬中吧百度贴吧
  • 厦门专业网站设计公司网站什么时候备案好
  • 个人网站做项目通州网络推广
  • 做平台网站产品上传网站建设三网
  • 网站关键词如何设置哔哩哔哩在线看免费观看视频
  • 产品广告设计seo优化排名
  • 中英双语网站程序建设网站iss
  • 网站开发公司怎么查询latex wordpress
  • 推广通谷歌搜索引擎优化
  • 乐清市网站建设公司微网站模板 餐饮