Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - main.c
Search - main.c - List
ADT BinaryTree 的实现及验证程序采用的主要数据结构:二叉树、栈、队算法思想:1、 先序建树、输出树、后序遍历用递归方法。性能分析:O( n )2、 先序遍历、中序遍历:性能分析:O( n )(1) 若遇到新节点非空则先入栈,然后访问其左子树。(2) 若为空则将栈顶结点出栈,访问其右子树。(3) 循环1、2直到栈为空且无节点可入栈。先序与中序的区别是:先序在入栈时访问节点,中序在出栈时访问节点。3、 层遍历:性能分析:O( n )(1) 根节点入队(2) 节点出队并访问(3) 若节点有左孩子,则左孩子入队;有右孩子,则右孩子入队。(4) 重复2、3直到队列为空。4、 线索树:算法与先序遍历、中序遍历一样,只是将访问节点的Visit函数改为连接前驱与后继的操作。性能分析:O( -BinaryTree ADT Implementation and certification procedures used in the main data structure : binary tree, stack, algorithms team thinking : a first order contribution, the output tree, after preorder using recursive method. Performance Analysis : O (n) 2, preorder, the preorder : Performance Analysis : O (n) (1) If there is a new non-empty nodes were first pushed and then left to visit their son tree. (2) if the empty Zhanding node will stack up, visit their right subtrees. (3) 1,2 cycle until the stack is empty with no node can be pushed. First sequence with the sequence difference : Push the first sequence to visit nodes, which stack up in order to visit nodes. 3, the layer traverse : Performance Analysis : O (n) (1) nodes into Force (2) nodes and the team's visit (3) if the nodes ar
Date : 2025-12-19 Size : 2kb User : 徐欣

一个关于编译原理的编程,是一个c语言来实现的,可以运行。主要是分析输出。-a compiler on the Principle of programming, is a C language to achieve, and can run. Analysis is the main output.
Date : 2025-12-19 Size : 3kb User : lee

C程序自动测试程序系统,主要是测试数据结构中的几个经典算法:关于排序,树的遍历等.-C automatic test procedures, test data is the main structure of classical algorithm : Sort of, such as tree traversal.
Date : 2025-12-19 Size : 603kb User : 徐杰

离散随机线性系统的卡尔曼滤波。 其中13lman.c是卡尔曼滤波函数,4rinv.c是滤波函数中用到的矩阵求逆函数,13lman0.c是主程序。-discrete stochastic linear Kalman filtering system. 13lman.c which is the Kalman filter function, 4rinv.c filtering function is used in the matrix inversion function, is the main program 13lman0.c.
Date : 2025-12-19 Size : 2kb User : 通信学生

C语言路由距离向量路由算法演示程序,采用TC2.0的图形方式编程模式,主要演示路由算法-C language routing Distance Vector routing algorithm demo program using the graphical TC2.0 programming model, the main demonstration of routing algorithm
Date : 2025-12-19 Size : 42kb User : 刘军

算法设计,经典程序算法,主要用C++语言实现,许多实例的解答配有源代码-Algorithm design, the classic procedure algorithm, the main C++ Language, many examples with source code answers
Date : 2025-12-19 Size : 5kb User : yht

DL : 0
vc源代码 11.1编程测试顺序容器矢量(vector)的主要功能和使用方法 -11.1 programming source code vc test vector sequence containers (vector) of the main functions and use
Date : 2025-12-19 Size : 11kb User : 皇甫

DL : 0
这是一个二叉树的算法,主要用C++开发,只写了二叉树的核心代码,该代码已经调试通过可以直接运行.该算法也没有输入功能,为了方便大家看清二叉树的结构,把输入的数据都在源码中用一个数组存放好的-This is a binary tree algorithms, the main C++ Development, only to write a binary tree of the core code, the code has been run directly through debugging. The algorithm also did not enter a function, in order to facilitate us to see the Binary Tree structure, the input data source used in an array of storage good
Date : 2025-12-19 Size : 1kb User : 李梓钺

DL : 0
标准答案习题1 1.1 简述C++语言程序的结构特点。 答: (1)C++程序由一个或多个函数组成,其中至少有一个主函数main(),程序从主函数开始执行,由主函数来调用其他函数。-Standard answer to Exercise 11.1 on C++ Language program structural characteristics. Answer: (1) C++ Procedures by one or more functions, of which at least one of the main function main (), the procedure started from the main function, from the main function to call the other function.
Date : 2025-12-19 Size : 39kb User : 张建军

DL : 0
题目:停车场管理问题 【问题描述】: 设有一个可以停放n辆汽车的狭长停车场,它只有一个大门可以供车辆进出。车辆按到达停车场时间的早晚依次从停车场最里面向大门口处停放(最先到达的第一辆车放在停车场的最里面)。如果停车场已放满n辆车,则后来的车辆只能在停车场大门外的便道上等待,一旦停车场内有车开走,则排在便道上的第一辆车就进入停车场。停车场内如有某辆车要开走,在它之后进入停车场的车都必须先退出停车场为它让路,待其开出停车场后,这些车辆再依原来的次序进场。每辆车在离开停车场时,都应根据它在停车场内停留的时间长短交费。如果停留在便道上的车未进停车场就要离去,允许其离去,不收停车费,并且仍然保持在便道上等待的车辆的次序。编制程序模拟该停车场的管理。 -Title: parking management issues 【Description of the problem: N has a parking strip of parking cars, it can be only one door for vehicular access. Vehicles to reach the car park by the time sooner or later followed by the most from the car park inside the main door to the big park (the first arrival of the first car on the parking lot of the inside). If the car park has been full of cars n, then the vehicle was only in the parking lot outside the gate waiting for the road, once the car park a car drive away, then came in on the sidewalk on the first car into the garage. If there is a car park vehicles to drive away, after it entered the parking lot of the cars have to be first out of the car park to make way for it, wait out the car park, these vehicles according to the order of the original approach. Vehicle leaving the parking lot when it is in the parking lot should be in accordance with the length of stay fee. If you stay on the sidewalk into the parking lot of the cars did not
Date : 2025-12-19 Size : 6kb User : pmy

DL : 0
使用c或c++实现树的三种遍历,利用数据结构是树-Using c or c++ implementation of the three kinds of tree traversal, using the data structure is a tree
Date : 2025-12-19 Size : 1kb User : bad

DL : 0
倍增法构建后缀数组 求最大重复子串的C程序-Constructing the suffix array multiplication seeking to repeat the largest sub-string C-program
Date : 2025-12-19 Size : 1kb User : john

DL : 0
电梯的楼层显示,运用c++语言 这是主程序 将会进行显示楼层的数目-Elevator floor display, using c++ language which is the main program will be to display the number of floors
Date : 2025-12-19 Size : 1kb User : 王超

本光盘有8个目录,对应于课程设计教材中第2至5章的8个案例。每个目录以ch0x0y命名,代表第x章第y节的案例,内容包含该案例的源程序及教材中描述的测试数据。 除“文件目录结构的显示”案例为.C++源程序外,其他均为C源程序。 各目录中的内容及说明: ch0201:表达式求值,在VC++6.0环境下测试通过 文件main.c:案例源程序; 文件input.txt:案例测试输入数据文件; 文件output.txt:案例测试输出结果文件; ch0202:文件目录结构的显示,在VC++6.0环境下测试通过 文件main.c:案例源程序; 文件input.txt:案例测试输入数据文件; 文件bad_input_cases.txt:案例容错测试输入数据文件; 文件output.txt:案例测试输入input.txt的输出结果文件; ch0301:拯救007,在VC++6.0环境下测试通过 文件main.c、graph.c、deque.c、error.c、graph.h、deque.h、error.h:案例源程序。编译时需通过应用工程文件(console project)。 文件input.txt:案例测试输入数据文件; 文件output.txt:案例测试输出结果文件; ch0302:迷宫问题,在TC2.0环境下测试通过 文件main.c:案例源程序; 说明:测试时可选择自动生成测试数据,读者也可按照教材中提供的数据进行测试;-The CD has eight directory, corresponding to the teaching of the course design of 2 to 5:8 cases. Each directory to ch0x0y naming represents the first chapter x, y section of the case, the content of the source program and the teaching cases described in the test data.
Date : 2025-12-19 Size : 15kb User : 唐永笙

二叉树的基本操作和应用,C语言数据结构中的编程实例-the main operation of bitree
Date : 2025-12-19 Size : 11kb User : lqing

This program makes some operations on the polynomials, such as addition, multiplication and calculating Lagrange polynomials. It also finds a key for encryption of a text and then does encryption process by using xor (exclusive-OR) of each character with main key.
Date : 2025-12-19 Size : 3kb User : zephrion

DL : 0
自己编写的数据文件的哈夫曼编码算法压缩程序,纯C语言编写,应该可以直接使用。-Write my own data file compression program Huffman coding algorithm, written in pure C, should be used directly.
Date : 2025-12-19 Size : 2kb User : YinWenjie

DL : 0
1、 题目的要求是通过磁盘调度算法的模拟设计,了解磁盘调度的特点,其主要任务是模拟实现FCFS、SSTF、SCAN、C-SCAN算法,并计算及比较磁头移动道数。-1, the subject request is simulated through the disk scheduling algorithm designed to understand the characteristics of disk scheduling, to achieve its main task is to simulate FCFS, SSTF, SCAN, C-SCAN algorithm, and calculate and compare the head movement and channel number.
Date : 2025-12-19 Size : 1kb User : fire

c语言 单链表的实现 包含三个文件linklist.c linklist.h main.c-c language to achieve a single linked list
Date : 2025-12-19 Size : 1kb User : yangheng

c语言 栈的实现 包含三个文件stack.h stack.c main.c-c language stack implementation consists of three files stack.h stack.c main.c
Date : 2025-12-19 Size : 7kb User : yangheng
« 12 3 4 5 6 7 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.