摘要: 1.Electronic CodeBlock(ECB)块加密模式是最简单的加密模式。信息被分割成单独的块,每一块单独加密。算法特点:1.因为每一块单独加密,所以不能很好的隐藏数据的模式,特别是在加密bitmap图像数据时。2.每次Key、明文、密文的长度都必须是64位。2.Cipher Block ... 阅读全文
posted @ 2015-03-16 14:42 maverick_fu 阅读(1155) 评论(0) 推荐(0) 编辑
摘要: 今天自己尝试做配置了一下hadoop,环境是ubuntu13.10+jdk1.7.0_51+hadoop version1.2.1。 主要过程主要参考http://blog.csdn.net/hitwengqi/article/details/8008203这篇博客,总体的安装过程也算比较顺利,但... 阅读全文
posted @ 2014-11-25 19:19 maverick_fu 阅读(1387) 评论(2) 推荐(0) 编辑
摘要: ------------------------------------------------------读《算法》后感一直以来,对于红黑树都没有很好的理解,指导看了《算法》和上了coursera上的公开课,终于算是有了较好的理解,现写下来和大家分享前言:2-3查找树 虽然二叉搜索树已经很好的... 阅读全文
posted @ 2014-10-22 23:04 maverick_fu 阅读(328) 评论(0) 推荐(0) 编辑
摘要: The problem. Given a set of N distinct points in the plane, draw every (maximal) line segment that connects a subset of 4 or more of the points.Point ... 阅读全文
posted @ 2014-10-21 21:03 maverick_fu 阅读(2109) 评论(0) 推荐(0) 编辑
摘要: 问题详述:http://coursera.cs.princeton.edu/algs4/assignments/queues.htmlDequeue. A double-ended queue or deque (pronounced "deck") is a generalization of a... 阅读全文
posted @ 2014-10-12 10:56 maverick_fu 阅读(2415) 评论(0) 推荐(0) 编辑
摘要: 问题描述可以详见:http://coursera.cs.princeton.edu/algs4/assignments/percolation.html关于QuickFindUF的javadoc:http://algs4.cs.princeton.edu/15uf/QuickFindUF.java.... 阅读全文
posted @ 2014-10-10 21:34 maverick_fu 阅读(947) 评论(0) 推荐(0) 编辑
摘要: 题目url:http://pat.zju.edu.cn/contests/pat-a-practise/1007 reference url:http://blog.csdn.net/xtzmm1215/article/details/39010843 /*经典DP问题, 基于这样一个事实:保存一个最大字段和以及一个当前子段和, 如果当前字段和大于当前最大字段和, 那么更新这个最大字段和, 如果... 阅读全文
posted @ 2014-10-09 15:14 maverick_fu 阅读(224) 评论(0) 推荐(0) 编辑
摘要: At first, i prepared to go through 《the introduction to algorithm》 ,however , i found some part of the book is difficult to understand; what’s more , i can’t borrow the book in the library. Then i fou... 阅读全文
posted @ 2014-09-26 12:21 maverick_fu 阅读(138) 评论(0) 推荐(0) 编辑
摘要: the problem is from PAT,which website is http://pat.zju.edu.cn/contests/pat-a-practise/1081 the code is as followed: #include #include long int gongyue(long int num1, long int num2) { long int gc... 阅读全文
posted @ 2014-09-24 11:27 maverick_fu 阅读(143) 评论(0) 推荐(0) 编辑
摘要: the explaination that is clear in my view is from wiki. 阅读全文
posted @ 2014-09-22 20:55 maverick_fu 阅读(164) 评论(0) 推荐(0) 编辑