-
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
-
登录 android
在我以前的文章Android 系统登录和注册屏幕设计我解释过设计的登录和注册的接口,但它不具有功能。在本教程中我解释如何建立完整的登录和注册系统中使用 PHP、 MySQL 和 SQLite 的 android 操作系统。本教程还介绍如何生成简单的 API 使用 PHP 和 MySQL。
android 应用程序的登录名。索引的的登录名。使用用户名和密码登录。
- 2023-07-20 01:30:02下载
- 积分:1
-
哈夫曼数的编码,译码和树的打印
哈夫曼数的编码,译码和树的打印-The number of Huffman encoding, decoding and tree print
- 2023-07-15 05:05:03下载
- 积分:1
-
计算两个矩阵相乘的源程序,通过更改可以改成类或制作模板...
计算两个矩阵相乘的源程序,通过更改可以改成类或制作模板-Calculation of two matrices of the source code can be changed by changing the type or make a template
- 2023-03-27 00:05:04下载
- 积分:1
-
常用算法的C程序。主要内容包括多项式的计算、复数运算、随机数的产生、矩阵运算、矩阵特征值与特征向量的计算、线性代数方程组的求解、非线性方程与方程组的求解、插值与
常用算法的C程序。主要内容包括多项式的计算、复数运算、随机数的产生、矩阵运算、矩阵特征值与特征向量的计算、线性代数方程组的求解、非线性方程与方程组的求解、插值与逼近、数值积分、常微分方程组的求解、数据处理、极值问题的求解、数学变换与滤波、特殊函数的计算、排序和查找。-Commonly used algorithm of C procedures. Include polynomial terms, complex computation, random number generation, matrix operations, matrix eigenvalue and eigenvector calculations, linear algebra equations, nonlinear equations with the equations, interpolation and approximation, numerical integration, solving ordinary differential equations, data processing, for solving extremum problems, mathematical transformation and filtering, the calculation of special functions, sorting and search.
- 2023-04-24 15:00:03下载
- 积分:1
-
square screen test standard method soon
平方筛 验证质数的方法,很快-square screen test standard method soon
- 2023-08-07 10:00:04下载
- 积分:1
-
matlab编写的流体计算和传热程序
matlab编写的流体计算和传热程序-Matlab calculations prepared by the fluid and heat transfer procedures
- 2022-03-21 07:37:35下载
- 积分:1
-
介绍了二分法求解非线性方程的算法,欢迎大家提出宝贵意见。...
介绍了二分法求解非线性方程的算法,欢迎大家提出宝贵意见。-Introduced the dichotomy of the algorithm for solving nonlinear equations, welcome you to give valuable advice.
- 2022-06-19 07:47:23下载
- 积分:1
-
四次及四次以下多项式拟和程序,可在c或c++环境下运行
四次及四次以下多项式拟和程序,可在c或c++环境下运行-Polynomial fit arithmetic witch could been run in C or C++ environment
- 2022-09-13 23:05:03下载
- 积分:1
-
huffmantr
huffmantr
- 2022-02-14 18:02:14下载
- 积分:1