-
BFS 和 DFS 算法
此文件包括 bfs 和 dfs 算法实例。这些例子帮助有人工智能的想法。所以,这些例子很好的例子。
- 2022-09-14 08:35:03下载
- 积分:1
-
算法实现题2
算法实现题2-1 输油管道问题
« 问题描述:
某石油公司计划建造一条由东向西的主输油管道。该管道要穿过一个有n 口油井的油
田。从每口油井都要有一条输油管道沿最短路经(或南或北)与主管道相连。如果给定n口油
井的位置,即它们的x 坐标(东西向)和y 坐标(南北向),应如何确定主管道的最优位置,
即使各油井到主管道之间的输油管道长度总和最小的位置?证明可在线性时间内确定主管道
的最优位置。
« 编程任务:
给定n 口油井的位置,编程计算各油井到主管道之间的输油管道最小长度总和。
« 数据输入:
由文件input.txt 提供输入数据。文件的第1 行是油井数n,1£ n£ 10000。接下来n 行是
油井的位置,每行2个整数x和y,-10000£ x,y£ 10000。
« 结果输出:
程序运行结束时,将计算结果输出到文件output.txt 中。文件的第1 行中的数是油井到
主管道之间的输油管道最小长度总和。
输入文件示例 输出文件示例
input.txt output.txt
5
1 2
2 2
1 3
3 -2
3 3
6
- 2022-11-12 20:40:04下载
- 积分:1
-
windows下php5.3的memcache安装
php5.3 windows memcache
php5.3 windows memcache
php5.3 windows memcache
php5.3 windows memcache
php5.3 windows memcache
php5.3 windows memcache
php5.3 windows memcache
php5.3 windows memcache
- 2022-07-01 16:52:52下载
- 积分:1
-
cpu操作 汇编类
cpu操作 汇编类-cpu type operation Series
- 2022-06-26 19:59:16下载
- 积分:1
-
Transparent bitmap display methods, methods are more well
透明位图的显示方法,方法步骤比较清晰,欢迎下载-Transparent bitmap display methods, methods are more well-defined steps are welcome to download
- 2022-03-06 12:24:45下载
- 积分:1
-
本学生信息管理系统实现的基本功能有:
学生:查看基本信息、查看成绩、查看已选课程、选课、退课、修改密码;
老师:查看基本信息、学生成绩的录入、修改、删除...
本学生信息管理系统实现的基本功能有:
学生:查看基本信息、查看成绩、查看已选课程、选课、退课、修改密码;
老师:查看基本信息、学生成绩的录入、修改、删除、教师登录密码修改
管理员:学生、老师、管理员账号的添加删除,自己密码的修改。
-The Student Information Management System to achieve the basic functions are: Student: View basic information, view results, view the selected courses, elective, back classes, change password teacher: View basic information about student achievement of the entry, modify, delete, teachers, Modify Administrator Password: students, teachers, administrators account Add to delete their own password changes.
- 2022-06-30 01:42:03下载
- 积分:1
-
mvmmall v3.5.0 网络购物系统 PHP的
mvmmall v3.5.0 网络购物系统 PHP的-online shopping system php
- 2022-11-26 06:00:03下载
- 积分:1
-
JPEG 的C++解码程序 在VC下运行。
是分析JPEG的必要程序。
JPEG 的C++解码程序 在VC下运行。
是分析JPEG的必要程序。-JPEG of the C++ Decoding procedures in the VC run. JPEG is the analysis of the necessary procedures.
- 2022-07-28 06:46:37下载
- 积分:1
-
煎饼问题
通过设定一定的找零规则来解决实际问题
煎饼问题
通过设定一定的找零规则来解决实际问题-Pancake problem by setting some rules to solve practical problems through irregular
- 2022-07-15 01:53:37下载
- 积分:1
-
C++沉思录,一本由老外写的关于C++编程心得的书籍。比较经典,是初学者必看的一本书...
C++沉思录,一本由老外写的关于C++编程心得的书籍。比较经典,是初学者必看的一本书-C++ Meditation, one written by a foreigner on the C++ Programming experience books. Comparison of the classic is a must-see for beginners book
- 2022-01-25 19:42:19下载
- 积分:1