上一页 1 ··· 3 4 5 6 7 8 9 10 下一页

2010年10月4日

Balancing Rule

摘要: 5.1 Balancing Rule A binary search tree is an AVL tree if the difference in height between the subtrees of each of its nodes is between -1 and +1. Said another way, a BST is an AVL tree if it is an em... 阅读全文

posted @ 2010-10-04 13:26 sohu2000000 阅读(133) 评论(0) 推荐(1) 编辑

AVL Trees

摘要: 5 AVL Trees In the last chapter, we designed and implemented a table ADT using binary search trees. We were interested in binary trees from the beginning because of their promise of speed compared to ... 阅读全文

posted @ 2010-10-04 13:17 sohu2000000 阅读(194) 评论(0) 推荐(1) 编辑

2010年10月3日

职场必备技之草雉京

摘要: 外式·轰斧阳:→+B 外式·奈落落:(跳跃中)↓+C 八十八式:↘+D 百式·鬼燃烧:→↓↘+A或C 七百七式·独乐屠:←↓↙+B或D 二百十二式·琴月阳:→↘↓↙←+B或D 七十五式改:↓↘→B+B或D+D ... 阅读全文

posted @ 2010-10-03 17:49 sohu2000000 阅读(348) 评论(0) 推荐(0) 编辑

跟刘峰六学C语言(5) 线程栅栏

摘要: 某些并行计算需要面临某些在计算进行前的某些单通瓶颈点,这种情况下,当然可以使用信号量的方式来进行处理,但是还存在着另外的一种处理方式是更加方便的,它就是:栅栏(在pthread库里面被定义成为类型 pthread_barrier_t),下面我们来看一段程序作为示例代码这段程序产生出许多个线程,并且分配给每个线程计算矩阵乘法的一部分,然后每个线程使用这次计算的结果,继续进行下一步的计算:另一个矩阵的... 阅读全文

posted @ 2010-10-03 15:13 sohu2000000 阅读(374) 评论(0) 推荐(1) 编辑

2010年10月2日

【原创】跟刘峰六学C语言(3) 信号量

摘要: 跟刘峰六学C语言(3) 信号量收藏在pthreads标准库里面, 库本身并不提供对信号量的支持,因为POSIX标准并没有对信号量做出定义,但是如果你一定要使用信号量来完成程序的话,那么所有的内容都会包含在semphore.h文件里请注意:不要混合着使用系统V自带的信号量,系统V的信号量位于sys/sem.h文件中view plaincopy to clipboardprint?#include&l... 阅读全文

posted @ 2010-10-02 13:44 sohu2000000 阅读(384) 评论(0) 推荐(1) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 下一页

导航