会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
自由的背包
博客园
首页
新随笔
联系
订阅
管理
2018年5月7日
分布式--zookeeper
摘要: 考察一个面向大众的系统开发的是否成功,这个系统在有限时间内能接受的访问数量是一个很重要的标准。在传统的方案中,增加访问数量的方法就是增加服务器。打个比方,如果一台服务器能够支持100个人同时访问,而同时访问这个系统的人有10000个,那么,就提供100台服务器。但是传统的方法中,管理员工程和用户工程
阅读全文
posted @ 2018-05-07 21:51 自由的背包
阅读(114)
评论(0)
推荐(0)
2017年12月10日
二叉树先序、中序、后序的递归算法---《数据结构》
摘要: //先序遍历递归 int PreOrderTraverse(BiTree T,int (* Visit)(char e)){ if(T){ if(Visit(T->data)){ if(PreOrderTraverse(T->lchild,Visit)) if(PreOrderTraverse(T->rchild,Visit)) return 1; } re...
阅读全文
posted @ 2017-12-10 21:29 自由的背包
阅读(485)
评论(0)
推荐(0)
2017年12月4日
三元组顺序表表示的稀疏矩阵的转置和加法运算的实现----《数据结构》
摘要: #include #include #include #include #define MAXSIZE 225 #define N 9 typedef struct{ int i,j; int e; }Triple; typedef struct{ Triple data[MAXSIZE+1]; int mu,nu,tu; }TSMatrix; int CreatSM...
阅读全文
posted @ 2017-12-04 18:58 自由的背包
阅读(4160)
评论(0)
推荐(1)
2017年11月26日
中心对称表达式的判定----《数据结构》
摘要: #include #include #include #include typedef struct{ char *base; char *top; int stacksize; }SqStack; int InitStack(SqStack &S){ S.base = (char *)malloc(100*sizeof(char)); if(!S.base){ ...
阅读全文
posted @ 2017-11-26 21:24 自由的背包
阅读(739)
评论(0)
推荐(0)
2017年11月20日
括号匹配的判定----《数据结构》
摘要: #include #include #include #include typedef struct{ char *base; char *top; int stacksize; }SqStack; int InitStack(SqStack &S){ S.base = (char *)malloc(100*sizeof(char)); ...
阅读全文
posted @ 2017-11-20 22:06 自由的背包
阅读(458)
评论(0)
推荐(0)
2017年11月12日
算术表达式的求值----《数据结构》
摘要: #include #include #include #include #define MAXSIZE 100 typedef int Status; typedef char SElemType; typedef struct { SElemType *base; ...
阅读全文
posted @ 2017-11-12 19:47 自由的背包
阅读(343)
评论(0)
推荐(0)
2017年11月5日
单链表的基本操作----《数据结构》
摘要: #include #include #include typedef int ElemType; typedef struct Node{ ElemType data; struct Node *next; }Node,*LinkedList; LinkedList Creatlist(LinkedList head){ int i,d; LinkedList p,q; p =...
阅读全文
posted @ 2017-11-05 20:01 自由的背包
阅读(296)
评论(0)
推荐(1)
2017年3月23日
java---笔记《程序检查错误的方法》
摘要: 程序检查错误的方法:1.>将此行程序注释掉, 重新运行,看是否还有错误; 2.>将此行代码重新写一遍, 重新运行,看是否还有错误;
阅读全文
posted @ 2017-03-23 10:32 自由的背包
阅读(349)
评论(0)
推荐(0)
C语言——《二次方程的根》
摘要: c语言基础中比较经典的例子,刚做的时候,很多问题没办法独立解决。比如当遇到共轭复根时,该如何输出,解决办法就是把负根的实部与虚部分开写,具体参见上例。还有一个常识,当用到数学函数时,头文件要有(#include<math.h>)。
阅读全文
posted @ 2017-03-23 10:13 自由的背包
阅读(674)
评论(1)
推荐(0)
2017年3月18日
初学java---第六课《for循环——打印菱形》
摘要: 这道题,对于我这个初学者来说,有点复杂,写了好长时间,还上网搜了一下,才写出来。其实这道题主要靠数学运算,弄清楚数据之间的关系,写程序不算难。
阅读全文
posted @ 2017-03-18 17:12 自由的背包
阅读(703)
评论(1)
推荐(0)
下一页
公告