- 博客(40)
- 资源 (11)
- 收藏
- 关注
原创 我对朴素贝叶斯中文文本分类的理解
机缘巧合,我对贝叶斯公式的应用产生过浓厚的兴趣。后来,我也的在毕业设计中做了与之相关的东西。我在过程中收获了不少东西,算是实现了个小目标。这篇博客是我毕业论文的一些片段。将贝叶斯公式的思想应用与文本分类并不是新东西,网上的参考资料巨多。首先贴一下参考文献。再啰嗦几句:列夫·托尔斯泰曾在《安娜·卡列尼娜》说过,“幸福的家庭都是相似的,但不幸的家庭各不相同”(但也有人说过,不幸的家庭都
2014-06-24 21:33:55
1080
原创 iOS观察者模式学习(如果钲鼓突然间敲起?)
先来读几句余光中老先生的诗吧。秦俑作者: 余光中 ——临潼出土战士陶俑 铠甲未解,双手犹紧紧地握住我看不见的弓箭或长矛如果钲鼓突然间敲起你会立刻转身吗,立刻向两千年前的沙场奔去去加入一行行一列列的同袍?如果你突然睁眼,威武闪动胡髭翘着骁悍与不驯吃惊的观众该如何走避?幸好,你仍是紧闭着双眼,似乎已惯于长年阴间的幽暗乍一下子怎
2014-06-06 00:13:58
1058
原创 设计模式学习笔记
桥接模式:http://www.cnblogs.com/houleixx/archive/2008/02/23/1078877.html
2014-06-01 16:08:34
587
原创 iOS JSON解析学习
参考文章http://blog.163.com/sunshinesun_9/blog/static/225855712009517112921195/
2014-05-19 06:49:50
411
原创 iOS Delegate学习(送花ABC,一个悲伤的故事)
参考文章:http://leopard168.blog.163.com/blog/static/168471844201307112149221/
2014-05-19 06:47:07
1127
转载 简单遗传算法的小例子
/*A given function is as follows:Use genetic algorithm to find a near-maximal value in f=xsin(10*pi*x)+2 x的定义域为[-1,2]. In addition, the required precision is six places after the decimal point. */
2014-05-13 13:07:04
9582
原创 UITableView笔记
http://blog.youkuaiyun.com/monicaios/article/details/17724401
2014-04-23 10:09:34
389
原创 如何卸载Xcode
step1:下载安装AppDelete后,打开AppDeletestep2:[前往]->[应用程序]后,把Xcode图标拖进AppDelete的界面step3 : 点击AppDelete中的删除按钮step4:在mac终端执行su指令(这时可能需要密码,如果还没有设置过密码的话,可以执行sudo pass root,来修改su 密码)step5: 在终端下进入.Trash目录
2014-04-10 11:57:38
4561
原创 ASIHTTPRequest学习笔记
在框架安装和配置时,我参考了这两篇博文http://blog.youkuaiyun.com/tonny_guan/article/details/8736818http://blog.youkuaiyun.com/ryantang03/article/details/7856348
2014-03-14 10:13:31
520
原创 我的苹果开发学习笔记
好链接:iOS 7 Xcode 5 最初级小教程, 人生中第一个App诞生了.:http://www.macx.cn/thread-2104805-1-1.htmleseedo:《让不懂编程的人爱上iPhone开发》系列教程1-iOS7版:http://www.cocoachina.com/applenews/devnews/2013/0916/7001.html我后来在网上收
2014-02-15 20:54:54
1948
原创 有一个带头结点的单链表L={a1,b1,a2,b2,...,an,bn},设计一个算法将其拆分成两个带头结点的单链表A和B,正序链表A={a1,a2,a3...,an},逆序链表B={bn,bn-1,
有一个带头结点的单链表L={a1,b1,a2,b2,...,an,bn},设计一个算法将其拆分成两个带头结点的单链表A和B,正序链表A={a1,a2,a3...,an},逆序链表B={bn,bn-1,,...b1}.要求链表A使用链表L的头结点。#include "stdio.h"#include "stdlib.h"//节点typedef struct List { i
2013-12-30 02:26:38
19318
1
转载 由先序遍历和中序遍历构造二叉树的二叉链表代码
转载自:http://blog.youkuaiyun.com/sunmeng_007/article/details/8095224#include//定义节点typedef struct btnode{ char value; struct btnode *left; struct btnode *right;}btnode;//该函数的作用是:返回在中序遍历序列数组中
2013-12-28 11:31:27
4367
转载 [数据结构]程杰:散列表(哈希表)
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 100 /* 存储空间初始分配量 */
2013-11-08 23:26:59
694
转载 [数据结构]程杰—— 二叉排序树_BinarySortTree
#include "stdio.h"#include "stdlib.h"#include "math.h"#include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 100 /* 存储空间初始分配量 */typedef int Status; /* Stat
2013-11-07 01:26:29
624
转载 [数据结构]程杰——静态查找_Search
#include "stdio.h"#include "stdlib.h"#include "math.h"#include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 100 /* 存储空间初始分配量 */typedef int Status; /* Stat
2013-11-07 00:33:44
546
原创 试设计一个算法,将元素e插入L中合适的位置,使插入后L仍为非递减有序。
/* 设L是一个带头结点的非递减有序单链表的表头指针。 * 试设计一个算法,将元素e插入L中合适的位置,使插入后L仍为非递减有序。 */#include#include#includeusing namespace std;#define MAXN 99999999//定义单链表的表头指针struct LinkList { int num; LinkList * next;
2013-11-03 18:25:45
5375
转载 Java 哈希表例子
import java.util.*;/** * * Title: 哈希表操作 * * * Description: 这是一个权限认证的例子,使用了哈希表作为数据的存储 * * * Copyright: Copyright (c) 2003 * * * Filename: RoleRight.java * * * @author 杜江 * @ve
2013-11-03 09:13:09
3835
转载 [数据结构]程杰 线索二叉树代码
算法演示可以参见这里:http://sjjg.js.zwu.edu.cn/SFXX/sf1/zxxsh.html#include "string.h"#include "stdio.h"#include "stdlib.h"#include "math.h"#include "time.h"/*线索二叉树----Threaded Binary Tree * 二叉树线索化的目的是更好
2013-11-03 08:15:40
655
转载 链式二查树遍历代码
#include "stdio.h"#include"malloc.h"//二叉树节点typedef struct BiTNode { char data; struct BiTNode *lchild, *rchild;//这里的*BiTree其实不一定要定义//定义BiTNode就够了//在代码中表示树可以这么写:BiTNode *t;} BiTNode, *BiTree;
2013-11-02 02:07:58
560
转载 [数据结构]程杰 二叉树顺序结构实现_BiTreeArray
#include "stdio.h"#include "stdlib.h"#include "math.h"#include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 100 /* 存储空间初始分配量 */#define MAX_TREE_SIZE 100 /
2013-10-25 13:19:03
625
转载 [数据结构]程杰模式串匹配、KMP算法及其改进(代码)
#include "string.h"#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 1
2013-10-22 08:37:11
1081
转载 [数据结构]程杰字符串的基本操作代码
#include "string.h"#include "stdio.h"#include "stdlib.h"#include "math.h"#include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 40 /* 存储空间初始分配量 */typedef
2013-10-19 08:35:50
1422
转载 [数据结构]程杰队列的链式存储结构及实现代码
#include "stdio.h"#include "stdlib.h"#include "math.h"#include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 20 /* 存储空间初始分配量 */typedef int Status;ty
2013-10-14 20:00:23
1040
转载 [数据结构]程杰《大话数据结构》循环链表代码
#include "stdio.h"#include "stdlib.h"#include "math.h"#include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 20 /* 存储空间初始分配量 */typedef int Status;typede
2013-10-14 10:42:00
880
转载 [数据结构]从中序表达式到逆序表达式(逆波兰式)(四则运算表达式求值)
#include#include#define max 100char ex[max]; /*存储后序表达式*//*函数功能:将中序表达式转化为后序表达式*/void trans() { char str[max]; /*表达式字符串*/ char stack[max]; /*运算符栈*/ char ch; /*当前字符*/ int sum,
2013-10-06 21:42:53
5101
2
转载 [数据结构]程杰《大话数据结构》链栈代码
#include "stdio.h"#include "stdlib.h"#include "math.h"#include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 20 /* 存储空间初始分配量 */typedef int Status;typedef in
2013-10-04 19:22:57
681
转载 [数据结构]程杰《大话数据结构》书中的顺序栈源码(
#include "stdio.h"#include "stdlib.h"#include "math.h"#include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 20 /* 存储空间初始分配量 */typedef int Status;typedef i
2013-10-04 12:46:28
965
转载 [数据结构]程杰《大话数据结构》静态链表代码(
#include "string.h"#include "ctype.h"#include "stdio.h"#include "stdlib.h"#include "math.h"#include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 1000 /* 存储
2013-10-03 23:35:05
2626
转载 用函数指针代替C++的引用参数 //严蔚敏《数据结构》(C语言版)课本源代码
/* f.c 用函数指针代替C++的引用参数 */ #include void fa(int a) /* 在函数中改变a,将不会带回主调函数(主调函数中的a仍是原值) */ { a=5; printf("在函数fa中:a=%d\n",a); } void fb(int *a) /* a为指针类型,在函数中改变*a,改变后的值将带回主调函数 */ { *a=5;
2013-10-03 22:44:10
2085
转载 [数据结构]程杰《大话数据结构》单链表代码
#include "stdio.h"#include "string.h"#include "ctype.h"#include "stdlib.h"#include "math.h"#include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 20 /*
2013-10-01 23:56:03
2725
转载 [数据结构]头插法与尾插法
#include "stdio.h"#include "stdlib.h"typedef struct List { int data; //数据域 struct List *next; //指针域} List;void TailCreatList(List *L) //尾插法建立链表{ List *s, *r;//s用来指向新生成的节点。r始终指向L的终端节点。 r = L;
2013-09-29 10:56:32
15798
转载 [数据结构]程杰《大话数据结构》书中的顺序表源码
#include#include#include#include#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define MAXSIZE 20 //存储空间初始分配量typedef int Status; //函数的类型typedef int ElemType;//顺序表中元素的类型typedef s
2013-09-29 10:09:45
1756
原创 C代码:使用概率的方法计算圆的面积
#include #include #include #include#include"myarea.h"int main(){ double radius = 100; //圆的半径 double area = 0; //圆的面积 area = myarea(radius);//计算圆的面积 printf("圆的面积是=%0.8f\n",
2013-09-28 20:39:56
2837
原创 看完一网友使用定义法计算定积分(速度与位移)的C代码而有所感
//有一质点,它的加速度为2m/s2,初速度为5m/s,计算质点在10~15s内所通过的路程。 #include #define DELTA 0.00001 int main() { double v0=5; //初速度 double t; //运动持续时间 double s = 0; //位移 doubl
2013-09-14 12:39:29
7638
转载 我的c语言复习笔记1-说说for循环
注1:这篇文章主要参考了http://www.cnblogs.com/lds85930/archive/2007/07/22/827453.html1、我们先来看最简单的for循环 int i; //i是变量 for(i=0;i //当for循环内只有一条语句的时候,可以省略{} {
2013-09-11 23:00:15
902
原创 简介一些黑盒测试的方法
黑盒测试仅需知道系统的【输入】和【输出】,不需要知道程序实现的内部细节。一、边界值测试经实践总结:大量的软件缺陷发生在输入域和输出域的边界上。所以在设计测试用例的时候,应该对边界给予足够的重视。例如只有一个输入条件时,可以这么选取测试用例。(以红点表示测试用例)例如当有两个输入条件的时候,可以这么选取测试用例。(以红点表示测试用例)ps:要测试健壮性的时候,可以
2013-07-05 22:09:01
35115
1
从视频中分离前景目标的Python & Matlab代码
2017-09-22
iOS delegate 简单小例子
2014-05-20
简单遗传算法的小例子
2013-08-08
Ruby语言入门(Introduction to Ruby and the Software Crisis)
2013-07-30
Windows搭建安卓开发环境的详细步骤(包你一下就配好)
2013-02-25
Java截屏【小】精灵
2013-02-16
跟着韩顺平老师视频做的坦克大战游戏(只做到了一半)
2013-02-11
用Java连接SQLSERVER2005(体验后的小总结,包括所需要的jar文件、驱动、和一份word文档)
2012-07-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人