-
telnet,common telnet
import java.io.InputStream;
import java.io.PrintStream;
import org.apache.commons.net.telnet.TelnetClient;
public class TelnetTest
{
private TelnetClient telnet = new TelnetClient();
private InputStream in;
private PrintStream out;
- 2022-03-16 19:54:43下载
- 积分:1
-
求解二维涡函数-势函数
该程序可以求解二维流函数-势函数。。。通过势函数与流函数的关系,求解压力场及速度场。能够清楚得到每个点的速度及压力,涡函数及流函数。
- 2023-05-04 08:35:11下载
- 积分:1
-
找钱张数最少
二、问题
现只有面额为 11元、5元、1元的三种人民币。
给定一个 数目为 money 的人民币,如何用这三种面额的人民币 找开它,且用的人民币张数最少
如:给定 10元,我们可以有以下找法:
2张 5元面额
1张 5元面额 + 5 张 1元面额
10张 1元面额
我们 选择第一种找法。只用两张人民币。
三、分析
利用动态规划法可以找到最优解。
利用贪心算法可以找到最优解(问题满足贪心选择性质时。该找钱问题在 11、5、1三种面额的情况下不满足该性质)
或者找到近似 最优解(在本题设定的三种面额的情况下 便是如此)
如果现在要找开 15元钱,则
- 2022-03-06 11:17:09下载
- 积分:1
-
计算方法上机列主消元
计算方法上机列主消元-calculation on the plane out the main elimination
- 2022-01-26 01:31:40下载
- 积分:1
-
roseTTA the pdf tutorials, Oh, that you are stuck atop a line than rosetta tutor...
roseTTA的pdf教程,呵呵,这个你是网上下不来的,比rosetta自带的教程内容多一些,很详细-roseTTA the pdf tutorials, Oh, that you are stuck atop a line than rosetta tutorial that comes with the contents of a little more detail
- 2022-03-19 20:53:05下载
- 积分:1
-
(用Euler法和改进的Euler法求解,用三阶Adams外插法及内插法求解...
(用Euler法和改进的Euler法求解,用三阶Adams外插法及内插法求解
-(Using Euler method and the improved Euler Method, using third-order Adams extrapolation method and interpolation method for solving
- 2022-12-16 17:40:03下载
- 积分:1
-
/ = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = /功能annot
//=== === === === === === === =
//函数说明
//函数名称:PolyFit
//函数功能:最小二乘法曲线拟合
//使用方法:double *x ---- 存放n个数据点的X坐标
// double *y ---- 存放n个数据点的Y坐标
// int n -------- 给定数据点个数
// double *a ---- 返回m-1次拟合多项式的m个系数
// int m -------- 拟合多项式的项数,即拟合多项式的最高次为m-1。要求m20,则本函数自动按m=min{n,20}处理
// double *dt --- dt[0]返回拟合多项式与各数据点误差的平方和;dt[1]返回拟合多
// 项式与各数据点的误差绝对值之和;dt[2]返回拟合多项式与各数据
// 点误差绝对值的最大值
//注意事项:拟合多项式的形式为 y = b0 + b1*(x-Xavr)...
-//=== === === === === ==== === === === === === === ==== === =// function annotations// function name : PolyFit// Function functions : Least Squares Curve Fitting// Use : double* x n-store data point coordinates of the X//* y double-storage n data point Y coordinates// int n-------- given the number of data points//* a double---- returned to the m-1 m fit polynomial coefficients// int m-------- polynomial fitting items , which is the highest polynomial fitting time for m-1. Request m
- 2023-07-25 11:15:03下载
- 积分:1
-
one
一维光子晶体的能带结构模拟,易于理解光子晶体的特性!-one-dimensional photonic crystal band structure simulation, easy to understand the characteristics of photonic crystal!
- 2022-02-16 10:13:41下载
- 积分:1
-
CTC编码,用于验证CTC编码
CTC编码函数,生成CTC循环卷积码
编解码都有,可以验证软入软出原则下的CTC码性能
- 2022-09-20 13:40:03下载
- 积分:1
-
格路问题:经典的算法分析与设计题目,用动态规划的方法解决从一个网格起点到终点的最短路径问题...
格路问题:经典的算法分析与设计题目,用动态规划的方法解决从一个网格起点到终点的最短路径问题-Lattice path problem: the classical algorithm analysis and design topics, with the dynamic programming solution to start from a grid to the end of the shortest path problem
- 2022-07-04 01:17:42下载
- 积分:1