-
杭州电子科技大学在线系统ACM的1102题,用贪心方法解决
杭州电子科技大学在线系统ACM的1102题,用贪心方法解决-Hangzhou University of Electronic Science and Technology ACM-line system of the 1102 title with a greedy solution
- 2022-08-22 17:28:37下载
- 积分:1
-
Handwritten
非常好的学习资料,请参考,以后多多请教高手,我这方面还不是很懂-Handwritten
- 2023-02-18 04:00:04下载
- 积分:1
-
0/1背包java实现
import java.util.Scanner;
public class Packsack{
Scanner sc=new Scanner(System.in);
int n;//物品个数
int m;//背包最大容量
int w[];//存储每个物品的重量
int v[];//存储每个物品的价值
int Max[][];//行表示前i个物品,列表示容量j,该值为将前i个物品装入容量为j的最大价值
public Packsack(){
System.out.println("please input the number of goods");
n=sc.nextInt
- 2022-04-13 13:49:39下载
- 积分:1
-
using a tree branch to paint the procedures written in vb
一个用分行来画树的程序,vb写的-using a tree branch to paint the procedures written in vb
- 2022-05-12 22:46:29下载
- 积分:1
-
JPEG2000, C代码
The OpenJPEG library is an open-source JPEG 2000 library developed in order to promote the use of JPEG 2000.
See the source for more information.
- 2023-04-20 21:00:04下载
- 积分:1
-
加减乘除练习用的程序,它可以让学生练习加减乘除等数学运算。...
加减乘除练习用的程序,它可以让学生练习加减乘除等数学运算。-arithmetic practice with the procedure, it can allow students to practice arithmetic and other mathematical calculations.
- 2022-03-01 11:24:47下载
- 积分:1
-
最小不重复数问题
问题描述:给定一个数n,找出大于这个数的最小不重复数(任意相邻位数字不相同)。
程序给出了两种方法:find和find1,其中find1属于暴力法,直接从n+1开始寻找,每次加1,知道找到满足条件的不重复数为止。
第二种方法比较巧妙,将n各位数字存到一个数组a[]里,下标大小对应位数高低,比如1234,数组a[0...3]依次为1,2,3,4;从最高位开始找相邻的重复数,较低的重复位加1带进位,高位循环加进位直到无进位,低位置零;回到次高位重新寻找重复位,直到无重复位。
- 2022-05-13 23:24:34下载
- 积分:1
-
地震2维正演程序
用于弹性波弹性介质波场模拟 单炮记录 可修改为自激自收模拟地震记录 获得时间剖面
- 2023-08-21 23:45:03下载
- 积分:1
-
关于超分重建的论文
关于超分重建的论文,主要针对全变差超分重建即TV算法,SCI的论文,里面分别有对该算法的详细说明和介绍,是比较新颖的,最近发表的论文,对超分重建工作者和科研者有帮助,是非常重要的理论基础。
- 2023-02-19 08:55:05下载
- 积分:1
-
梯度函数的逆。我已经提供了1个版本的工作
The inverse of the gradient function. I ve provided versions that work on 1-d vectors, or 2-d or 3-d arrays. In the 1-d case I offer 5 different methods, from cumtrapz, and an integrated cubic spline, plus several finite difference methods.
In higher dimensions, only a finite difference/linear algebra solution is provided, but it is fully vectorized and fully sparse in its approach. In 2-d and 3-d, if the gradients are inconsistent, then a least squares solution is generated
- 2022-06-02 09:40:06下载
- 积分:1