摘要: Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live 阅读全文
posted @ 2016-05-06 11:52 netfuns 阅读(115) 评论(0) 推荐(0) 编辑
摘要: test1 阅读全文
posted @ 2016-03-23 09:43 netfuns 阅读(110) 评论(0) 推荐(0) 编辑
摘要: From http://www.semaphorecorp.com/btp/b1k.html What exactly is a B-tree? (Note: the following material is detailed and technical in nature, and is not required for an understanding of simply how to us... 阅读全文
posted @ 2011-08-02 18:19 netfuns 阅读(185) 评论(0) 推荐(0) 编辑
摘要: svcutil.exe /t:code http://yourserver.asmx 生成 ReportingService2005Soap 阅读全文
posted @ 2011-08-01 13:59 netfuns 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.随机表达式,如:(221.05 + 619.48) * ((221.05 + 619.48)) * ((221.05 + 619.48) * ((221.05 + 619.48))); Test: /// <summary> ///A test for BuildRandom expression ///</summary> [TestMethod()] public void BuildRa... 阅读全文
posted @ 2011-07-29 17:31 netfuns 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 表达式求值 1. 验证字符串为表达式 2.分拆表达式为操作符,操作数,括号 确定操作符是二元或一元操作符 3.将操作符序列建立二叉树 4.对二叉树进行求值 叶子节点为操作数,父节点为操作符,递归求值 Test : [TestMethod()] public void CalculateTest() { BinTree<string> target = new BinTree<string>(); ... 阅读全文
posted @ 2011-07-29 13:45 netfuns 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1.广度便历二叉树,得到二叉树的深度 使用队列 2.深度便历二叉树, 得到二叉树的深度 使用堆栈 Test : /// <summary> ///A test for GetDepth ///</summary> [TestMethod()] public void GetDepthByDepthTraverse() { BinTree<int> target = new BinTree<int>... 阅读全文
posted @ 2011-07-29 13:36 netfuns 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1.生成N 层二叉树 2.树节点值为随机值 Test: /// <summary> ///A test for BuildRandom ///</summary> public void BuildRandomTestHelper<T>() { BinTree<int> target = new BinTree<int>(); // TODO: Initialize to an appropria... 阅读全文
posted @ 2011-07-29 13:33 netfuns 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Test: /// <summary> ///A test for DeCode ///</summary> [TestMethod()] public void DeCodeTest() { string txt = File.ReadAllText("sampletxt.txt"); HaffManCode target = new HaffManCode(); // TODO: Initia... 阅读全文
posted @ 2011-07-21 11:10 netfuns 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 1. 生成连通图 (至少有一颗生成树) 2.生成连通图 (至少有一颗生成树,或者更多) using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace Algorithm{ public class CollectedGraph { /// <summary> /// Buil... 阅读全文
posted @ 2011-07-19 17:06 netfuns 阅读(191) 评论(0) 推荐(0) 编辑