2014年8月4日

摘要: A binary gap within a positive integer N is any maximal sequence of consecutive zeros that issurrounded by ones at both ends in the binary representat... 阅读全文
posted @ 2014-08-04 13:19 做个不善的人 阅读(559) 评论(0) 推荐(0)
 
摘要: 不相交集合 故名思意就是一种含有多个不相交集合的数据结构。典型的应用是确定无向图中连通子图的个数。其基本操作包括:Make-Set(x):建立一个新的集合,集合的成员是x;Union(x,y): 将包含x和y的集合合并为一个集合;Find-Set(x): 返回指向包含x的集合的指针;下面是一个例子,... 阅读全文
posted @ 2014-08-04 05:33 做个不善的人 阅读(995) 评论(0) 推荐(0)