-
addahdfa dahdjhakdad ahdahdhsjjjjj aahgdjha
***
- 2022-07-12 17:24:43下载
- 积分: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
-
随机图生成工具
这是一个有向图或无向图的生成工具,可以随机地生产邻接矩阵和邻接表。该程序可以用于测试时产生测试数据程序为命令行式交互,命令列表如下: ////////////////////////// // COMMAND FORMAT // ////////////////////////// //gen D 5 10 //生成有向图,节点数,边数 //gen U 5 4 //生成无向图,节点数,边数 //show list //以邻接表形式输出 //show mat //以邻接矩阵形式输出 //show all //以邻接表和邻接矩阵形式输出 //out //out name.txt //输出到文件 //help //帮助 //quit ////////////////////
- 2023-03-15 05:35:04下载
- 积分:1
-
神经网络的优化
这是一种新的人工鱼群算法的改进算法,然后利用人工鱼群算法优化神经网络,并且和粒子群算法优化神经网络模型进行了对比,通过对比可知人工鱼群算法优化性能好于粒子群算法
- 2022-02-28 16:58:24下载
- 积分:1
-
manual selection of color samples in an image
manual selection of color samples in an image
- 2022-07-10 17:08:10下载
- 积分:1
-
把华氏温度与摄氏温度的互相转换。。。随便输入一个华氏温度值或是摄氏温度值。。该程序都可以轻松得将其转化了相应的摄氏或华氏温度...
把华氏温度与摄氏温度的互相转换。。。随便输入一个华氏温度值或是摄氏温度值。。该程序都可以轻松得将其转化了相应的摄氏或华氏温度-put Fahrenheit temperature and Celsius temperature interchangeable. . . The importation of a casual Fahrenheit or Celsius temperature temperature. . The program can quickly and easily be translated into the corresponding Celsius or Fahrenheit temperature
- 2022-06-20 20:53:54下载
- 积分:1
-
用C++编写的三次养条插值算法
用C++编写的三次养条插值算法-prepared custody of the three interpolation algorithm
- 2022-02-01 08:10:17下载
- 积分:1
-
数值算法,有利于学习 数值算法,有利于学习
数值算法,有利于学习 数值算法,有利于学习 -Numerical algorithms, numerical algorithm conducive to learning and is conducive to study and numerical algorithms, numerical algorithm conducive to learning and is conducive to learning
- 2022-04-29 20:48:20下载
- 积分:1
-
This file contains the complete code of six stand
此文件包含用于聚类分析的六个独立Fortran程序的完整代码
- 2022-09-13 12:50:02下载
- 积分:1
-
数据结构-算法-C语言-Demo
#ifndef _BINARY_TREE_H_INCLUDED#define _BINARY_TREE_H_INCLUDED#include #include templatestruct Bintree_node {T element;Bintree_node* lchild;Bintree_node* rchild;explicit Bintree_node(const T& elem=T(), Bintree_node* lchd=0, Bintree_node* rchd=0): element(elem), lchild(lchd), rchild(rchd) {}};templateclass Binary_tree {public:typedef Bintree_node* PBtn;Binary_tree();virtual ~Binary_tree();void clear();int depth() const;int size() const;virtual PBtn find(const T& elem) const=0;virtual void insert(const T& elem)=0;virtual void erase(const T& elem)=0;virtual void print(std::ostream& output) const=0;void print_tree(std::ostream& output) const;protected:
- 2022-01-29 04:39:50下载
- 积分:1