摘要: todo Test: /// <summary> ///A test for BuildSpanningTree ///</summary> [TestMethod()] public void BuildSpanningTree_wiki_Test() { CollectedGraph target = new CollectedGraph(); // TODO: Initialize to a... 阅读全文
posted @ 2011-07-15 11:32 netfuns 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Code : using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections.Specialized;using System.Diagnostics; namespace Algorithm{ public class ShortestPath ... 阅读全文
posted @ 2011-07-13 14:19 netfuns 阅读(181) 评论(0) 推荐(0) 编辑
摘要: http://www.facweb.iitkgp.ernet.in/~arijit/courses/autumn2006/cs60001/lec-graph-2.pdf 阅读全文
posted @ 2011-07-12 10:31 netfuns 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 数学题 阅读全文
posted @ 2011-07-02 21:16 netfuns 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Base64 用来将数据编码为可读的字符串。 编码完的结果只包含字母,数字,+,/ ,= 编码完的结果长度是原始值的4/3. 编码原理: 1. 3*8==4*6 将3字节数据映射到四字节 编码实现: using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace Algorit... 阅读全文
posted @ 2011-07-01 17:54 netfuns 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 安全数字摘要标准算法实现 阅读全文
posted @ 2011-07-01 15:19 netfuns 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 转自 : http://blog.csdn.net/candy_whut/archive/2009/02/03/3860243.aspx 个人资料 name 姓名 alias 别名 pen name 笔名 date of birth 出生日期 birth date 出生日期 born 出生于 birth place 出生地点 age 年龄 native place 籍贯 province 省 ci... 阅读全文
posted @ 2011-07-01 14:07 netfuns 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 过程 : 1.Client 端向server 端请求公钥pubKey2.Client 端生成随机对称密钥 (symetricKey) ,然后用pubkey将其加密为EncryptedSymetricKey。3.Client 端向server 端发送EncryptedSymetricKey4.Server 端用privateKey解密EncryptedSymetricKey,从而得到symetric... 阅读全文
posted @ 2011-07-01 09:52 netfuns 阅读(592) 评论(0) 推荐(2) 编辑
摘要: (Ketama Algorithm) Below code referenced the post http://www.cnblogs.com/daizhj/archive/2010/08/24/1807324.html 问题有集合A {a1,a2,...} ,集合B {b1,b2,...}.将A的元素映射到B,如 a1->b1 ,a2->b1,a3->b1 ; a4->b2;a5->b2;a6... 阅读全文
posted @ 2011-06-30 15:36 netfuns 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 一种字符串处理 阅读全文
posted @ 2011-06-25 16:22 netfuns 阅读(290) 评论(0) 推荐(0) 编辑