-
C语言实现的寻找多数元素代码
C语言实现的寻找多数元素代码,含英文注释。算法采用《算法设计技巧与分析》(沙特)一书上的方法。在一个整数序列A中,如果整数r在A中出现的次数大于序列A的一半,那么我们把这个r称为多数元素。如何更快的找出这个元素呢?在原序列中去除两个不同的元素后,那么在原序列中的多数元素在新序列中还是多数元素。
- 2022-11-30 03:55:03下载
- 积分:1
-
float型而二叉树的创建及遍历
#include
#include
struct BiTNode //定义二叉树结构体
{
float data;
struct BiTNode *lchild;
struct BiTNode *rchild;
};
//二叉树创建函数
struct BiTNode *CreateTree(float *preorder,float *inorder,int lenth)
{
float *p,*q;
- 2022-12-24 11:10:03下载
- 积分:1
-
A*算法的演示程序,可以自由设置障碍和地形,单步演示A*算法的寻路过程。包含源码,是学习A*算法的最佳工具。...
A*算法的演示程序,可以自由设置障碍和地形,单步演示A*算法的寻路过程。包含源码,是学习A*算法的最佳工具。-A* algorithm demo program, they can set up obstacles and terrain, single-step demonstration of the A* search algorithm road course. Includes source is studying A* algorithm for the best tools.
- 2023-04-24 02:20:03下载
- 积分:1
-
从键盘上输 入一串正整数, 最后输入-1作为输入结束的标志。以这些正整数的值作为二叉排序树中的结点的数据场之值,建立一棵二叉排序树要实现排序二叉树的插入。采取叶...
从键盘上输 入一串正整数, 最后输入-1作为输入结束的标志。以这些正整数的值作为二叉排序树中的结点的数据场之值,建立一棵二叉排序树要实现排序二叉树的插入。采取叶子插入法,即新插入的节点均为改二叉树的叶子节点,且满足中序有序性。-From the keyboard to enter a string of positive integers, the last input-1 as the input end of the sign. These are integer values as binary sort tree nodes in the data field" s value, and the establishment of a binary sort tree to achieve binary tree insertion sort. To leaf insertion method, that the new nodes are inserted to change the binary tree leaf node, and in order to meet the orderliness.
- 2022-05-16 12:06:25下载
- 积分:1
-
Access数据库下实现的系统,功能很强大,适合初学者学习~
Access数据库下实现的系统,功能很强大,适合初学者学习~-Implemented under the Access database system, function is very powerful, suitable for beginners to learn ~
- 2022-11-03 17:45:03下载
- 积分:1
-
此源码的会员,代理,后台功能齐全,是真真正正包含数据库(在matali文件夹里)的源码...
此源码的会员,代理,后台功能齐全,是真真正正包含数据库(在matali文件夹里)的源码-This source member, agent, complete back-office functions is a truly contains the database (in matali folder) of the source
- 2022-12-11 17:35:03下载
- 积分:1
-
这个程序时还没有powerdesigner,erwin的时候出现的,到现在也实用,需要fmt的一个格式文件来描述表结构,执行完毕形成xxx.sql语句,然后is...
这个程序时还没有powerdesigner,erwin的时候出现的,到现在也实用,需要fmt的一个格式文件来描述表结构,执行完毕形成xxx.sql语句,然后isql -Usa -P -Sservname -ixxx.sql即可-this procedure was no powerdesigner, erwin the time and it has practical need fmt format of a table to describe the structure, finished form xxx.sql statement, and then isql-Usa- P-Sservname-can ixxx.sql
- 2022-06-29 22:08:43下载
- 积分:1
-
这是一个有关数据结构的习题集,里面包含了有关数据结构各个章节的习题以及答案,可以方便同学们下载使用。...
这是一个有关数据结构的习题集,里面包含了有关数据结构各个章节的习题以及答案,可以方便同学们下载使用。-This is a set of exercises on data structure, which contains information about data structures, as well as answers to the various chapters of exercises, students can easily download.
- 2023-01-09 02:05:03下载
- 积分:1
-
100 cases of classical language editor c ~ include many regular examinations as...
经典100例c语言编辑程序~包含很多经常考试中考到的程序~很值得一看!-100 cases of classical language editor c ~ include many regular examinations as well as to the procedures to a very eye-catcher!
- 2022-01-22 04:30:53下载
- 积分:1
-
pb9开发的万能查询源码,相当好用
pb9开发的万能查询源码,相当好用-pb9 development of the omnipotent source inquiries, very handy.
- 2022-07-12 14:30:06下载
- 积分:1