-
simple cat
简单的猫捉老鼠游戏-simple cat-and-mouse game
- 2022-07-01 07:46:02下载
- 积分:1
-
« 问题描述:
假设要在足够多的会场里安排一批活动,并希望使用尽可能少的会场。设计一个有效的
贪心算法进行安排。(这个问题实际上是著名的图着色...
« 问题描述:
假设要在足够多的会场里安排一批活动,并希望使用尽可能少的会场。设计一个有效的
贪心算法进行安排。(这个问题实际上是著名的图着色问题。若将每一个活动作为图的一个
顶点,不相容活动间用边相连。使相邻顶点着有不同颜色的最小着色数,相应于要找的最小
会场数。)
« 编程任务:
对于给定的k个待安排的活动,编程计算使用最少会场的时间表。
« 数据输入:
由文件input.txt给出输入数据。第一行有1 个正整数k,表示有k个待安排的活动。接
下来的k行中,每行有2个正整数,分别表示k个待安排的活动开始时间和结束时间。时间
以0 点开始的分钟计。
« 结果输出:
将编程计算出的最少会场数输出到文件output.txt。
- 2022-01-22 15:10:09下载
- 积分:1
-
矩阵连乘积的加括号方式数
资源描述给定n个矩阵{A1,…,An},其中Ai和Ai+1可乘,i=1,2,…,n-1。考察矩阵连乘积加括弧的方式数。
如四个矩阵连乘积A1A2A3A4,共有五种不同的加括弧方式:
( A1 ( A2 ( A3 A4 ) ) )
( A1 ( ( A2 A3 ) A4 ) )
( ( A1A2 ) ( A3 A4 ) )
( A1 ( A2 A3 ) A4 )
( ( ( A1 A2 ) A3 ) A4 )
输入示例:
4
输出示例:
5
- 2023-02-06 15:25:03下载
- 积分:1
-
opencv与halcon图像格式互相转换
C++代码:opencv图像格式Mat,iplImage与halcon图像格式Hobeject的互相转换代码。包括:IplImage转Hobject,Mat转Hobject,Hobject转Mat,Hobject转IplImage。适合学习opencv与halcon图像处理的人员使用,希望对大家有帮助。
- 2023-07-31 11:45:02下载
- 积分:1
-
基本种群规模改进与数值实验的PSO算法源程序,可自动保存实验数值,附有画图源代码。...
基本种群规模改进与数值实验的PSO算法源程序,可自动保存实验数值,附有画图源代码。-Basic population size and numerical experiments to improve the PSO algorithm source code can be automatically saves numerical experiment with drawing the source code.
- 2022-01-28 22:31:11下载
- 积分:1
-
一个用C语言编写的求混沌序列的源程序,挺好的!
一个用C语言编写的求混沌序列的源程序,挺好的!-a C language for the chaotic sequence of the source, very good!
- 2023-01-18 01:10:04下载
- 积分:1
-
请认真书写上传资料的详细功能、包含内容说明(至少要20个字)。尽量不要让站长把时间都花费在为您修正说明上。压缩包解压时不能有密码。...
请认真书写上传资料的详细功能、包含内容说明(至少要20个字)。尽量不要让站长把时间都花费在为您修正说明上。压缩包解压时不能有密码。
- 2022-03-25 13:28:44下载
- 积分:1
-
DOS下时间分辨率精确到毫秒的程序
DOS下时间分辨率精确到毫秒的程序-Source of a millisecond timer in DOS
- 2022-08-20 02:16:54下载
- 积分:1
-
模拟退火算法
AppWizard has created this TspSA application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your TspSA application.
TspSA.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
TspSA.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CTspSAApp application class.
TspSA.cpp
This
- 2022-05-14 00:33:05下载
- 积分:1
-
精通Matlab综合辅导与指南
精通Matlab综合辅导与指南-proficient Matlab comprehensive counseling and guidance
- 2022-01-21 05:41:20下载
- 积分:1