-
这个项目简洁、通俗地解释了有关平衡二叉树的问题。也提供了源代码和一个供演示的通用类。描述/提供了如何平衡二叉树的功能。...
这个项目简洁、通俗地解释了有关平衡二叉树的问题。也提供了源代码和一个供演示的通用类。描述/提供了如何平衡二叉树的功能。-the project concise and simple explanation of the balanced binary tree problem. Also provided source code and a demonstration for the general category. Description/how to provide balanced binary tree functions.
- 2023-08-10 15:30:03下载
- 积分:1
-
实现岛上建立公路的最短路径算法,调用了dikstra算法
实现岛上建立公路的最短路径算法,调用了dikstra算法-Highway on the island to achieve the establishment of the shortest path algorithm, called algorithm dikstra
- 2023-01-07 11:20:03下载
- 积分:1
-
long bei ge suan fa 龙算法
long bei ge suan fa 龙算法-long bei ge suan fa Long algorithm
- 2023-04-27 23:00:03下载
- 积分:1
-
宾馆管理信息系统
宾馆管理信息系统-Hotels Management Information System
- 2022-02-04 23:55:41下载
- 积分:1
-
C++数据结构(链表)
采有C++模板实现的一个数据结构"链表",可以进行增加,删除,修改等20多个成员函数。
本程序适合初学数据结构的朋友们。
- 2023-05-07 21:30:03下载
- 积分:1
-
数据结构课程的作业,代码通俗易懂,且运行效率高。
数据结构课程的作业,代码通俗易懂,且运行效率高。-Data structure course work, the code easy to understand, and operating efficiency.
- 2023-04-03 23:55:04下载
- 积分:1
-
数据结构
详细描述了如何创建二叉树的方法以及操作
数据结构
详细描述了如何创建二叉树的方法以及操作-Data structure described in detail how to create a binary tree method and the operation of
- 2022-02-01 06:31:34下载
- 积分:1
-
中缀表达式转后缀表达式,数据结构中堆栈的应用。
中缀表达式转后缀表达式,数据结构中堆栈的应用。-Switch to postfix infix notation expressions, the data structure stack applications.
- 2022-12-02 07:15:03下载
- 积分:1
-
[问题描述]
将N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前,要求使用最少的附加空间,且算法的时间复杂度为O(N...
[问题描述]
将N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前,要求使用最少的附加空间,且算法的时间复杂度为O(N)
[输入]
待排序记录个数,各关键字的值。
[输出]
关键字从正负分开,正数在前
[存储结构]
待排序记录顺序存储。
[算法的基本思想]
快速排序算法每次任取一个记录的关键字为标准,将其余记录分为两组将,N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前。
#include
using namespace std
#define MAXNUM 100//设文件的最长可能长度
void sort(int* keys, const int len)//排序
-[Problem Description] N keyword to the integer sequence the entire record. keyword so that all non-negative Records with the keyword for the negative record, at least require the use of the additional space and time complexity of the algorithm is O (N) [imported] to be sort record number, The value of the keyword. [Output] keyword separate from the pluses and minuses are several former [storage structure] scheduling records to be stored sequence. [Algorithm for the basic idea] quick sort algorithm each time a record for any keyword as a standard, The remaining records will be divided into two groups, N-keyword
- 2022-03-17 21:15:57下载
- 积分:1
-
everlasting General existing 21 matches, two from rotation, each person could ta...
天长地久一般现有21场比赛,两人轮换,每人可从1场拿下4场,不可多拿。我们也不能得到,谁拿了最后的红火谁输了比赛。请编写一个人机游戏的程序,先向电脑索取并取得“一台电脑要‘长生不老将军’”*分析和设计算法后在电脑上取情况,才能使电脑成为‘长生不老将军’必须从中找出关键。按照这个题目的要求来总结自己的想法,以后取一个为数的孩子与对方只需一步和数额相等,最后我们就可以保证给孩子留下一个长子这是个人的。相应的分析算法
- 2022-09-28 14:10:03下载
- 积分:1