网站首页 站内搜索

搜索结果

查询Tags标签: cities,共有 21条记录
  • PAT (Advanced Level) Practice 1003 Emergency Python 解法

    题目: As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the length of each road between any pair of citie…

    2022/7/31 1:30:19 人评论 次浏览
  • 《 Pro ASP.NET Core 6 》--- 读书随记(7)

    Part 3 CHAPTER 23内容来自书籍: Pro ASP.NET Core 6 Develop Cloud-Ready Web Applications Using MVC, Blazor, and Razor Pages (Ninth Edition) Author: Adam Freeman 需要该电子书的小伙伴,可以留下邮箱,有空看到就会发送的Using Razor Pages Understanding Razor…

    2022/7/3 14:20:12 人评论 次浏览
  • postgresql依赖跟踪 cascade和restrict选项

    weather表的外键为cities的主键city字段,如下为表结构 mydb=# \d weatherTable "public.weather"Column | Type | Collation | Nullable | Default ---------+-----------------------+-----------+----------+---------city | character…

    2022/6/24 2:19:47 人评论 次浏览
  • 【TSP问题】基于改进遗传算法求解旅行商问题matlab源码

    1 算法介绍模型介绍见这里。 2 部分代码 nn=40; % number of cities asz=10; % area size asx x asz ​ ​ ps=3000; % population size ng=5000; % number of generation ​ pm=0.01; % probability of mutation of exchange 2 random cities in the path (per gene, p…

    2022/1/16 22:03:45 人评论 次浏览
  • 【TSP问题】基于改进遗传算法求解旅行商问题matlab源码

    1 算法介绍模型介绍见这里。 2 部分代码 nn=40; % number of cities asz=10; % area size asx x asz ​ ​ ps=3000; % population size ng=5000; % number of generation ​ pm=0.01; % probability of mutation of exchange 2 random cities in the path (per gene, p…

    2022/1/16 22:03:45 人评论 次浏览
  • 图算法-MST最小生成树

    Minimum cost to connect all citiesDifficulty Level : MediumThere are n cities and there are roads in between some of the cities. Somehow all the roads are damaged simultaneously. We have to repair the roads to connect the cities again. There is a fixe…

    2021/12/16 14:11:48 人评论 次浏览
  • 图算法-MST最小生成树

    Minimum cost to connect all citiesDifficulty Level : MediumThere are n cities and there are roads in between some of the cities. Somehow all the roads are damaged simultaneously. We have to repair the roads to connect the cities again. There is a fixe…

    2021/12/16 14:11:48 人评论 次浏览
  • 547. Number of Provinces 省份数量

    There are n cities. Some of them are connected, while some are not. If city a is connected directly with city b, and city b is connected directly with city c, then city a is connected indirectly with city c. A province is a group of directly or indire…

    2021/11/18 6:10:28 人评论 次浏览
  • 547. Number of Provinces 省份数量

    There are n cities. Some of them are connected, while some are not. If city a is connected directly with city b, and city b is connected directly with city c, then city a is connected indirectly with city c. A province is a group of directly or indire…

    2021/11/18 6:10:28 人评论 次浏览
  • 【TSP问题】基于改进遗传算法求解旅行商问题matlab源码

    1 算法介绍 1.1 TSP介绍 “旅行商问题”(Traveling Salesman Problem,TSP)可简单描述为:一位销售商从n个城市中的某一城市出发,不重复地走完其余n-1个城市并回到原出发点,在所有可能路径中求出路径长度最短的一条。 旅行商的路线可以看作是对n城市所设计的一个环形,或…

    2021/10/17 9:39:26 人评论 次浏览
  • 【TSP问题】基于改进遗传算法求解旅行商问题matlab源码

    1 算法介绍 1.1 TSP介绍 “旅行商问题”(Traveling Salesman Problem,TSP)可简单描述为:一位销售商从n个城市中的某一城市出发,不重复地走完其余n-1个城市并回到原出发点,在所有可能路径中求出路径长度最短的一条。 旅行商的路线可以看作是对n城市所设计的一个环形,或…

    2021/10/17 9:39:26 人评论 次浏览
  • 1135. Connecting Cities With Minimum Cost 连接所有节点的最低价值

    There are n cities labeled from 1 to n. You are given the integer n and an array connections where connections[i] = [xi, yi, costi] indicates that the cost of connecting city xi and city yi (bidirectional connection) is costi. Return the minimum cost …

    2021/8/29 6:08:18 人评论 次浏览
  • 1135. Connecting Cities With Minimum Cost 连接所有节点的最低价值

    There are n cities labeled from 1 to n. You are given the integer n and an array connections where connections[i] = [xi, yi, costi] indicates that the cost of connecting city xi and city yi (bidirectional connection) is costi. Return the minimum cost …

    2021/8/29 6:08:18 人评论 次浏览
  • B - Shichikuji and Power Grid( 最小生成树 Kruskal算法)

    Shichikuji is the new resident deity of the South Black Snail Temple. Her first job is as follows: There are nn new cities located in Prefecture X. Cities are numbered from 11 to nn. City ii is located xixi km North of the shrine and yiyi km East of t…

    2021/7/26 20:38:50 人评论 次浏览
  • B - Shichikuji and Power Grid( 最小生成树 Kruskal算法)

    Shichikuji is the new resident deity of the South Black Snail Temple. Her first job is as follows: There are nn new cities located in Prefecture X. Cities are numbered from 11 to nn. City ii is located xixi km North of the shrine and yiyi km East of t…

    2021/7/26 20:38:50 人评论 次浏览
共21记录«上一页12下一页»
扫一扫关注最新编程教程