搜索资源列表
1012c版
- 这是一道acm竞赛题 是利用c语言来逐步求e精确值的大小-acm This is a race that is the use of language to gradually c e for the exact size
递归算法快速排序
- 分而治之方法还可以用于实现另一种完全不同的排序方法,这种排序法称为快速排序(quick sort)。在这种方法中, n 个元素被分成三段(组):左段l e f t,右段r i g h t和中段m i d d l e。中段仅包含一个元素。左段中各元素都小于等于中段元素,右段中各元素都大于等于中段元素。因此l e f t和r i g h t中的元素可以独立排序,并且不必对l e f t和r i g h t的排序结果进行合并。m i d d l e中的元素被称为支点( p i v o t )。图1 4
guize
- The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first charact
mwyy
- 魔王语言解释 [问题描述] 有一个魔王总是使用自己的一种非常精练而又抽象的语言讲话,没有人能听得懂,但他的语言是可以逐步解释成人能听懂的语言,因为他的语言是由以下两种形式的规则由人的语言逐步抽象上去的: (1) α 转换为 β1β2…βm (2) (θδ1δ2…δn) 转换为 θδnθδn-1… θδ1θ 在这两种形式重,从左到右均表示解释。试写一个魔王语言的解释兄,把他的话解释成人能听得懂的话。 [基本要求] 用下述两条具体规则和上述规则形式(2)实现
fox
- Turbo C - (C) Copyright 1987, 1988 by Borland International */ #define S_IREAD 0x0100 /* from SYS\\STAT.H */ #define S_IWRITE 0x0080 /* from SYS\\STAT.H */ #define TRUE 1 #define FALSE 0 #define MSGHEADER \"MICROCALC - A Turbo C D
LocateElem
- /* shiyan.c 第四组数据结构实验作业。Author:zhg 功能:本程序用于验证函数 LocateElem(L,e,compare()) 。即求出现行表中元素的位序。 程序中的线性表采用顺序存储,以更方便于该操作的实现。 */ -/ * shiyan.c fourth group structure of the experimental data. Author : zhg function : This procedure is used to v
cengxubianlierchashu
- shi.c 说明:本程序用于层序遍历二叉树.程序开始时先由用户先根序输入二叉树各结点值,对于空结点输入宏ENDTAG所对的值(暂定为整数0). 建立好二叉树后即可自动进行遍历依次层序输出各结点的值. ----Author:zhg 2006.11.26 E-mail: wudazhg@163.com 仅供参考学习之用,所有权保留-shi.c : The procedures for the binary tree traversal sequence. procedure
data_struct
- 数据结构电子书,内附源码,打开方式为enotebook-data structure e-books, containing the source code, open the way for enotebook
chazhaoyuansu
- 查找线性表中的某元素:L为带头接点的单链表的头指针,当第i个元素存在的时候,其值赋给e并返回OK,否则返回ERROR */ -linear search of a table of elements : L tap for the lead single linked list for the first guide, When the first i elements exist, the value assigned to the e and return to the lounges, o
CountBTLeaf
- CountBTLeaf.c--本程序用于求二叉树的叶子个数。 ---Author:zhg 2006.12 E-mail:wudazhg@163.com-CountBTLeaf.c - - The procedures for seeking the number of binary tree leaves. --- Author : zhg 2006.12 E-mail : wudazhg@163.com
RadixSort-jishupaixu
- RadixSort.c 本程序为链式基数排序。程序开始后先由用户输入一组正整数(最大为32767),然后程序自动按照由小到大的顺序将这组数排序并输出。----Author:zhg 2006.12 E-mail:wudazhg@163.com-RadixSort.c procedures for the chain of the order of the base. After the first process user input a positive integer (maximum 3
LevelTraverse-cengxubianlierchashu
- LevelTraverse.c 上次写的“cengxubianlierchashu.rar(二叉树层序遍历程序)”遍历不能将二叉树的所有结点都遍历,现对其做了微小修改,并调试好。本程序用于层序遍历二叉树.程序开始时先由用户先根序输入二叉树各结点值,建立好二叉树后即可自动进行遍历依次层序输出各结点的值.----Author:zhg 2006.12 E-mail:wudazhg@163.com -LevelTraverse.c last book, "cengxubianlier
LeftChild
- LeftChild.rar 本程序求二叉树的左孩子. ----Author:zhg 2006.12 E-mail:wudazhg@163.com-LeftChild.rar procedures for the binary tree to the left children. ---- Author : zhg 2006.12 E-mail : wudazhg@163.com
ImproveShortestPathArithmetic
- 应用斐波纳契堆和邻接表改进单源最短路径算法,使其算法的时间复杂性由O( )减少为O(nlogn+e),其中e为有向图的边的条数。-application Fibonacci heap and the adjacent table to improve single source shortest path algorithm, its algorithm's time complexity of O () reduced to O (nlogn e), where e is for th
primercode
- 很显然,学习C++——不只是学习其语言架构,还包括学习如何应用—的最佳方法,就是通过问题的解决和实际的操作来进行。Standely Lippman和Josee Lajoie所著的畅销书《C++ Primer 3/e》书上源码
1047IntegerInquiry
- HDOJ 1047 One of the first users of BIT s new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various sums of those numbers. ``This supercomputer is great, remarked Chip. ``I o
e
- 本程序是一个校园导游咨询系统,提供校园内各景点的信息咨询和最点路径查询功能。
source
- 单源点最短路径算法 * 本程序用来实现单源点最短路径(E.Dijkstra)算法 * 在Turbo C2.0编译器下编译通过 * 算法过程中 * 每条边的两个顶点和权值由用户输入,格式:1 2 20 * 程序默认源点为第一个顶点 * 算法完成后输出路径长度和路径上的顶点 * 格式为:路径长度:目标顶点<-经过的顶点...<-源点
e^n
- 采用泰勒展开和RK算法在vs2005下求解e的x次方(x可从-10到10),精确到小数点后30位-Taylor and RK algorithm used in vs2005 solution under the e-th power of x (x can be from-10 to 10), accurate to 30 decimal
用先序递归过程建立二叉树
- 用先序递归过程建立二叉树 (存储结构:二叉链表) 输入数据按先序遍历所得序列输入,当某结点左子树或右子树为空时,输入‘*’号,如输入abc**d**e**得到的二叉树为: (选做:由二叉树的先序序列和中序序列建立一棵二叉树。) 2)编写递归算法,计算二叉树中叶子结点的数目。 3)按凹入表方式输出该二叉树。