- 博客(28)
- 资源 (23)
- 收藏
- 关注
原创 个人所得税计算代码
#includeint main(void){ int d=0; float tax=0,r=0; int s; printf("enter s:"); scanf("%d",&s); //printf("%d\n",s); if(s<=3500){r=0,d=0;} else if(s>3500&s<=5000){r=0.03;d=0;} else if(50
2013-10-22 21:54:57 3907 1
原创 Evaluation:正确率P、召回率R、F值、P@4和平均正确率AP,MAP值等
Chp.7 Evaluation (10.22)假设现在有2个检索系统S1和S2,它们在文档集上分别执行查询Q1和Q2,均返回了5个结果,如下表所示:系统&查询12345S1,Q1d3 d5 d8d10d11
2013-10-21 20:50:46 4047
原创 tf-idf权值的向量表示、余弦相似度
PB10210016 徐波-第五次作业Chp.6 Ranking (10.15)假定已知文档d1和d2和查询q的词项以及词频如下:d1:(,世博会,3>,中国,1>,举行,1>) d2:(,世博会,2>,,日本,1>,举行,1>)q:(,世博会,2>)请给出文档d1、d2以及查询q的基于tf-idf权值的向量表示,然后分别计算q和d1、d2的余弦相似度,并说明q和哪个文档更相
2013-10-21 20:48:59 3559 2
原创 Rocchio 1971算法进行相关性反馈题目
PB10210016 徐波-第四次作业Chp.5 Queries (10.8)1.假定初始查询Q为“extremly cheap DVDs cheap CDs”。文档d1包含词项“cheap CDs cheap software cheap DVDs”,文档d2包含“cheap thrills DVDs”。用户标记d1为相关文档,d2为不相关文档。假定我们直接使用词项频率作为文档向量中词项的
2013-10-21 20:48:01 2807
原创 倒排索引和term-document关联矩阵
Web信息处理第三次作业PB10210016徐波考虑下面的文档: Doc 1 new home sales top forecasts Doc 2 home sales rise in july Doc 3 increase in home sales in july Doc 4 july new home sales
2013-10-21 20:47:10 3929
原创 FMM和BMM分词题目
题目:假设词典中包括词{的确,王公,实在,在理,公子}以及所有单字集合,请分别给出句子“王公子说的确实在理”的FMM和BMM分词结果。 FMM分词结果:王公/子/说/的确/实在/理BMM分词结果:王/公子/说/的/确实/在理 PB10210016_徐波_第二题分词
2013-10-21 20:45:58 3269 1
原创 调研目前主要的开源网络爬虫,并且说明各自的特点、局限性以及相互之间的区别
PB10210016徐波-第一次作业Chp.2 Web Crawling调研目前主要的开源网络爬虫,并且说明各自的特点、局限性以及相互之间的区别。提交方式:word打印稿。答:网络蜘蛛(Web spider)也叫网络机器人,指的是“自动化浏览网络”的程式。这样的电脑程式是为了自动从网络撷取特定的资料,或为了组织网络上的资料,所设计的自动浏览网络的程式。Spider只是个别爬虫的名称。业
2013-10-21 20:45:10 10959
原创 Web信息处理--Web Information Processing and Applications
Web Information Processing and Applications Instructor Jin Pei-Quan(金培权) Xu Lin-Li (徐林莉)Email: jpq@ustc.edu.cn Email:linlixu@ustc.edu.cn Teaching Assistant
2013-10-21 20:44:07 1789 2
原创 从1到任意数的平方根
从1到任意数的平方根:最大数可超过百万。 #include#include int main(void){ double x, y; printf("请输入需要开方到的数:"); scanf("%lf",&x); for(y=1;y<=x;y=y+1){ printf("%lf的平方根是%lf\n", y, pow(y,0.5)); } r
2013-10-21 15:57:12 2786 1
原创 2的任意次方
2的任意次方,能计算到2的1023次方。但在2的57次方后就不精确。 #include#include int main(void){ double x, y; printf("请输入需要计算2的次方:"); scanf("%lf",&x); for(y=1;y<=x;y=y+1){ printf("2的%.0lf次方是%.0lf\n", y, pow(2,y
2013-10-21 15:45:38 10448 2
原创 任意数开根号的代码
任意数开根号的代码。开方。高中必修。 #include#include int main(void){ double x, y; printf("请输入被开方数:"); scanf("%lf",&x); printf("\n%lf的开根号是%lf\n\n\n", x, pow(x,0.5)); return 0;}测试:9测试结果:
2013-10-21 15:29:11 11179
原创 高中必修一根式的处理(包括开方)
高中必修一根式的处理(包括开方)。指数函数。幂函数 #include#include int main(void){ double x, y; printf("请输入被开方数:"); scanf("%lf",&x); printf("请输入根指数:"); scanf("%lf",&y); printf("\n%lf的%lf次方根是%lf
2013-10-21 15:24:10 1404
原创 高中必修的指数函数代码
任意指数函数、幂函数的处理。高中必修的指数函数代码,处理范围广: #include#include int main(void){ double x, y; printf("请输入底数:"); scanf("%lf",&x); printf("请输入幂:"); scanf("%lf",&y); printf("\n%lf的%lf次幂是%lf\n\n\n",
2013-10-21 15:17:23 1678
原创 集合:求A、B两个集合的交集、并集和补集的代码(C语言)
集合:求A、B两个集合的交集、并集和补集的代码(C语言) #include #define N 100main(){ int a[N],b[N],c[N],d[N]; int aa[N],bb[N]; int i,j,k=1; int x=1,y=1,z; int m,n; int flag; printf("please input Number of A:\n"
2013-10-21 14:59:18 51457 1
原创 一元二次方程求解
一元二次方程求解,输入a、b、c,即可判断一元二次方程是否有实数解,如果有,会输出解。 # include # include void main(){ float a,b,c; printf("请输入3个值\n"); scanf("%f%f%f",&a,&b,&c); float delta; float x1; float x2; de
2013-10-20 23:21:58 2009
原创 用*显示一个菱形改进版--可输出任意奇数大小的菱形
用*显示一个菱形改进版--可输出任意奇数大小的菱形源代码:#include#includevoid main(){ int n=7; int o=(n/2); int t=1; int step=2; for(int i=0;i<n;i++) { for(int j=0;j<abs(o);j++)
2013-10-20 17:26:14 1771
原创 字符串转换,将其中的大写字母变小写字母,小写字母变大写字母,并输出 。
从键盘输入一个字符串,将其中的大写字母变小写字母,小写字母变大写字母,并输出 。【要求】 (1)用字符数组表示存储字符串(字符串最大为100)。 (2)使用scanf函数逐个输入字符保存在字符数组中 (3)使用printf函数逐个输出字符数组中的字符//输入会自动判断。#includevoid main(){ int i=0; char a[1
2013-10-20 17:16:18 22270 1
原创 N的阶乘解法(C语言简单的代码)
正整数阶乘指从1乘以2乘以3乘以4一直乘到所要求的数。例如所要求的数是4,则阶乘式是1×2×3×4,得到的积是24,24就是4的阶乘。 例如所要求的数是6,则阶乘式是1×2×3×……×6,得到的积是720,720就是6的阶乘。例如所要求的数是n,则阶乘式是1×2×3×……×n,设得到的积是x,x就是n的阶乘。 N的阶乘解法(C语言简单的代码) #include int m
2013-10-19 23:51:43 12051 2
原创 八数码问题高效算法(人工智能实验)
人工智能第一次实验\八数码问题、八数码问题(人工智能实验)迭代深入A*搜索(IDA*)、递归最佳优先搜索RBFS解八数码问题、人工智能实验) #include #include #include #include #define IN1 0x7FFFFFFF/***********************************************************
2013-10-19 23:46:12 5858
原创 皇后问题最快的解法(C语言)八皇后、十六皇后时间在毫秒级
//皇后问题最快的解法(C语言)八皇后、十六皇后时间在毫秒级#include # include# include# include#define O 134775813// TODO (xubo18056052430#1#): PB10210016 徐波LARGE_INTEGER lv,lv1,lv2,lv3,lv4;double totaltime,secondsPer
2013-10-19 23:41:08 3637
原创 C语言求素数的不同解法
C语言求素数的不同解法,不同编码。不同的编码对应不同的效率。1、求a到b之间的素数:(1)一般的:#include "stdio.h"void main(){ int a,b; int i,n; int flag=1; printf("请输入下限:"); scanf("%d",&a); printf("请输入上限:"); scanf("%d",&b); prin
2013-10-19 23:26:26 2689 1
原创 ASCII 码表
ASCII 码表下面的 ASCII 码表包含数值在0-127之间的字符的十进制、八进制以及十六进制表示.十进制八进制十六进制字符描述0000NUL 1101SOHstart of header2202STXstart of text3303ETXend
2013-10-18 14:21:07 1115
原创 常量转义字符
常量转义字符以下的转义字符使普通字符表示不同的意义. 转义字符描述\'单引号\"双引号\\反斜杠\0空字符\a响铃\b后退\f走纸\n换行\r回车\t水平制表符\v垂直制表符\xnnn
2013-10-18 14:20:18 1297
原创 C++ 操作符优先级
C、C++ 操作符优先级 优先级 操作符1()[]->. :: !~++--2- (unary)* (dereference) & (address of)sizeof3->*.* 4
2013-10-18 14:19:41 725
原创 include <stdio.h>
//此文档为include 中头函数stdio的代码/* * stdio.h * This file has no copyright assigned and is placed in the Public Domain. * This file is a part of the mingw-runtime package. * No warranty is given; r
2013-10-18 14:17:51 2731
原创 a字母开头的C语言函数
目录函数名: abort功 能: 异常终止一个进程用 法: void abort(void);程序例:#include stdio.h> //头函数#include stdlib.h> //头函数int main(void){ printf("Calling abort()\n"); //输出 abort();
2013-10-18 14:09:28 1264
原创 C语言关键词C/C++ Keywords
cppreference.com -> C/C++ KeywordsC/C++ Keywordsasm插入一个汇编指令.auto声明一个本地变量.bool声明一个布尔型变量.break结束一个循环.case一个switch语句的一部分.catch处理 thrown 产生的异常.
2013-10-18 01:46:14 1717
原创 小题目大学问--C语言输出问题
原题:C语言输出问题#includeint main(void){ int a=5,b=5,q,p; //q=(a++)+(a++)+(a++); p=(++b)+(++b)+(++b); printf("q:%d\n",q); printf("p:%d\n",p); getchar(); return 0;} 图解: 反汇编代码:v
2013-10-15 22:38:02 1370
opencv 3.4.1 jar
2018-05-16
JDK.API.7_English.chm
2015-08-24
Java 2 SE 6 Documentation.chm
2015-08-24
JavaSE中文API.chm
2015-08-24
jdk api 1.7英文版-带索引
2015-08-24
isrgb.m,matlab
2014-03-27
计算方法实验Gauss_Seidel法和Runge_Kutta法
2013-10-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人