搜索资源列表
FLOYDsuanfa
- #include \"stdio.h\" #include \"math.h\" #include \"malloc.h\" #include \"string.h\" #define m 6 #define n 29 #define p 0.5-#include \"stdio.h\" #include \"math.h\" #include \"malloc.h\" #include \"string.h\" #define m 6 #define n 29 #def
huowuyunshudeyichuansuanfa
- #include \"stdio.h\" #include \"math.h\" #include \"malloc.h\" #include \"string.h\" #define m 6 #define n 29 #define p 0.5-#include \"stdio.h\" #include \"math.h\" #include \"malloc.h\" #include \"string.h\" #define m 6 #define n 29 #def
lingjiancanshushejichengxu
- #include \"stdio.h\" #include \"math.h\" #include \"malloc.h\" #include \"string.h\" #define m 6 #define n 29 #define p 0.5-#include \"stdio.h\" #include \"math.h\" #include \"malloc.h\" #include \"string.h\" #define m 6 #define n 29 #def
rengongshenjingwangluodesuanfa
- #include \"stdio.h\" #include \"math.h\" #include \"malloc.h\" #include \"string.h\" #define m 6 #define n 29 #define p 0.5-#include \"stdio.h\" #include \"math.h\" #include \"malloc.h\" #include \"string.h\" #define m 6 #define n 29 #def
shu
- 1.[问题描述] 编写递归算法,计算二叉树中叶子结点的数目 [输入] 按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g . [输出] 按中序序列输出,输出的结果为;dbheaficg并计算出二叉树中叶子结点的数目为4 [存储结构] 采用二叉表存储 [算法的基本思想] 采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然后建立其左右子树,直到空子树为止,中序遍历二叉树时,先遍厉左子树,后遍厉右子树,最后访问根结点。根据左右子树的最后一个
shu2
- 2.[问题描述] 编写递归算法,在二叉树中求位于先序序列中第K个位置的结点 [输入] 按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g 。输入要求的位置 [输出] 若二叉树不空,按先序序列输出,求出所求位置的结点 [存储结构] 采用二叉表存储 [算法的基本思想] 采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然后建立其左右子树,直到空子树为止,先序遍历二叉树时,先遍厉左子树,后遍厉右子树,最后访问根结点并计算出二叉树中叶子结点
c
- #include<malloc.h> #include<limits.h> #include<stdio.h> #include<graphics.h> #include<io.h> #include<math.h> #include<process.h> #include<conio.h> #define m 100 #define OK 1 typedef
malloc
- 内存池技术的一个展示-memory of a pool display
malloc-java
- java实现的malloc函数。供模拟学习用,不是底层实现。-malloc function written in java. only for study and animation. not a low-level implemention
ptmalloc
- 这是一个内存分配管理的程序,用于模拟c对内存的使用-/* Prototypes and definition for malloc implementation. Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software you can redi
linklist
- 数据机构中的双向链表,可用来实现并集,并且是用c++编制-for(i=1 i<=link1.GetLengthofLink() i++) { int e=link1.GetElement(i) if(link2.LinkLocate(e)==0) { newnode=(struct node*)malloc(sizeof(struct node)) newnode->data=e newnod
huffman
- 在网上能够找到的最简单,最快速的哈夫曼编码。本方法不使用任何扩展动态库,比如STL或者组件。只使用简单的C函数,比如:memset,memmove,qsort,malloc,realloc和memcpy。-Online to find the simplest, fastest Huffman. This method does not use any extension of the dynamic libraries, such as STL or components. Only usin
SimpleQuickHuffmanCode
- 本文描述在网上能够找到的最简单,最快速的哈夫曼编码。本方法不使用任何扩展动态库,比如STL或者组件。只使用简单的C函数,比如:memset,memmove,qsort,malloc,realloc和memcpy。 大家都会发现,理解甚至修改这个编码都很容易-This article describes the Internet to find the simplest, fastest Huffman. This method does not use any extension of
Dijkstra
- 用Dijkstra法求最短路径,有向图与无向图均可-void ShortestPath_DIJ( Node a ,Status i ,Status v0 ,Status*D ,Status*pre ) { int v,w,j,l=1 Status*final Status min final=(Status*)malloc( sizeof(Status)*i ) for(v=0 v<i v++) { final[v]=FA
MyOOCFwV1_0
- 使用C语言时,经常需要调用malloc()和free()函数来进行动态内存的分配和回收。有些时候,程序员可能会忘记回收分配的动态内存。为了解决这个问题,这里设计了一个代替malloc()和free()函数的数据结构(或者类)——ObjectManager。ObjectManager中提供了objmgr_malloc()和objmgr_free()以及objmgr_show_mem_info()函数。objmgr_malloc()函数负责按字节总数动态分配内存并且予以记录,objmgr_free(
malloc
- C语言内存分配函数malloc的源代码,让你更清楚C语言中的内存模型-source code of molloc.c
DynamicArray
- 完成满足上述接口的动态数组(Dynamic array)的程序; 需要遵循基本的编程规范和风格; 动态分配内存用C++的函数new/delete,不用malloc/free; 处理好动态分配的运用,不要出现内存泄漏; 了解C++类的构造函数和析构函数的作用; 熟悉C++类的写法(*.h, *.cpp); 各种情况考虑周到,不要出现程序崩溃; -
3
- malloc项目第三阶段:优化,用哈希表实现,同时加深对数据结=结构的理解-malloc Project Phase III: optimization, with the hash table to achieve at the same time deepen the understanding of the structure of the data node =
DougLea
- Doug Lea 的 malloc/free 算法,非常优秀,可以参考。-Doug Lea s malloc/free source code.
mjjanusa-malloc-lab-2-04360fc
- csapp 实验 这是csapp实验中的第三个系列,有关malloc 的改写,就发了有用的 -csapp malloc