随笔分类 -  C#数据结构

摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;/***本实例演示二叉树的前序遍历 * **/namespace 前序遍历{ class Program { static void Main( string[ ] args ) { BinaryTree b = new BinaryTree( "ABCDE#F" ); b.ProOrder( b.Head ); Console.WriteLine( ); b.MidPrder( b.Head ); Consol 阅读全文
posted @ 2013-11-24 21:40 blog_yuan 阅读(507) 评论(0) 推荐(0)
摘要:第1章 Collections类、泛型类和Timing类概述这本书采用C#语言来讨论数据结构与算法的开发和实现。书中用到的数据结构都可以在.NET框架类库System.Collections中找到。本章会逐步展开群集的概念,首先是讨论自身特有的Collection类(采用数组作为我们实现的基础)的实现,接着会介绍.NET框架中Collection类的内容。泛型是C#语言2.0版新增加的一个重要补充。泛型允许C#语言程序员可以独立地或者在一个类中编写函数的某一个版本,而且不需要为了不同的数据类型而多次负载此函数。C#语言2.0版还为个别几种System.Collections数据结构实现范型提供 阅读全文
posted @ 2012-09-02 16:33 blog_yuan 阅读(13449) 评论(5) 推荐(1)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace 前序遍历_中序遍历_后序遍历{ class Program { static void Main( string[ 阅读全文
posted @ 2012-08-21 08:20 blog_yuan 阅读(165) 评论(0) 推荐(0)
摘要:class Program { static void Main( string[ ] args ) { BinarySearcharTree nums = new BinarySearcharTree( ); nums.Insert( 3 ); nums.Insert( 2 ); nums.Ins 阅读全文
posted @ 2012-07-24 01:16 blog_yuan