摘要:
本文转载:http://www.cnblogs.com/kwklover/archive/2007/03/19/679425.html原作者:kwklover感谢作者写这么好的文章我开发的中文分词程序,开源发布 , 其实哪个中文分词的整体架构是比较糟糕的。架构是否优秀决定了很多构思无法实现,思考了比较久,最近准备开发第二版,抛弃以前的架构,重新实现。下面是一 些设计和构思。计划是两周时间开发完成b... 阅读全文
随笔分类 - 08 数据结构
简单的,分词算法
2008-08-05 09:10 by Virus-BeautyCode, 1384 阅读, 收藏, 编辑
摘要:
一个简单的英文分词程序转载:http://west263.com/info/html/chengxusheji/Javajishu/20080404/57978.html在实验室接手的第一个任务,写一个英文分词程序,要将形如:Books in tuneBoxes are for Chinese-Children!断为:Book in tune Box are for Chinese child,也... 阅读全文
[原创]c#快速排序类
2007-09-11 10:36 by Virus-BeautyCode, 700 阅读, 收藏, 编辑
摘要:
class QuickSort { private void Swap(ref int i, ref int j) { int t; t = i; i = j; j = t; } public void Sort(int[] list, int lo... 阅读全文
[原创]c#,单链表,数据结构
2007-08-13 14:34 by Virus-BeautyCode, 899 阅读, 收藏, 编辑
摘要:
//链表结点 class SingleLink { private int idata; public int Data { get { return idata; } set { idata = value; } } publ... 阅读全文
[原创]c#,数据结构,栈
2007-08-13 10:39 by Virus-BeautyCode, 568 阅读, 收藏, 编辑
摘要:
class Program { static void Main(string[] args) { StackX stack = new StackX(10); stack.Push(5); stack.Push(1); stack.Push(3); s... 阅读全文
[原创]选择排序SelectSort
2007-08-12 14:09 by Virus-BeautyCode, 372 阅读, 收藏, 编辑
摘要:
class Program { static void Main(string[] args) { SelectSort select = new SelectSort(); select.Start(); select.Display(); Console.ReadLine(... 阅读全文
[原创]直接插入排序InsertSort
2007-08-12 13:54 by Virus-BeautyCode, 482 阅读, 收藏, 编辑
摘要:
class InsertSort { private int[] mylist; public InsertSort() { mylist = new int[] { 19, 13, 5, 27, 1, 26, 31, 16, 2, 9, 11, 21 } ; } public void St... 阅读全文
[原创]冒泡排序BubbleSort
2007-08-12 11:49 by Virus-BeautyCode, 530 阅读, 收藏, 编辑
摘要:
public class BubbleSort { private int [] mylist; public BubbleSort() { mylist = new int[12] { 19, 13, 5, 27, 1, 26, 31, 16, 2, 9, 11, 21 }; } public ... 阅读全文
[原创]面向对象的数据结构之三层结构
2007-08-11 17:04 by Virus-BeautyCode, 653 阅读, 收藏, 编辑
摘要:
我觉得好多的数据结构也是设计成了三层结构,就好像我们经常用的数据库的三层一样。1、原子层:定义结点的基本属性2、操作层:实例化原子,添加对他的基本操作。3、表现层:实例化操作层对象,使用他提供的基本操作来完成更复杂的任务。也是我乱说的,希望大家多提宝贵意见,多批评吧。 阅读全文