自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(83)
  • 资源 (13)
  • 收藏
  • 关注

原创 软件工程名词解释

软件  软件是计算机系统中与硬件相互依存的部分,它是包括程序、数据及相关文档的完整集合。软件危机  软件危机是指在计算机软件的开发和维护过程中所遇到的一系列严重问题。软件工程  软件工程是研究和应用如何以系统化的、规范的、可度量的方法去开发、运行和维护软件,即把工程化应用到软件上。软件生存周期  软件生存周期是指软件产品从考虑其概念开始到该软件产品交付使用,直至最终退...

2019-11-06 16:25:07 12053

原创 SHA-1算法【代码实现】

C#include <stdio.h>#include <stdlib.h>#include <string.h>#include <openssl/sha.h> int main(){ int i; unsigned char result[SHA_DIGEST_LENGTH]; const char *string = ...

2019-09-13 15:39:47 9274 3

原创 SHA-256算法【代码实现】

C#include <stdio.h>#include <string.h>#include <openssl/sha.h> int main (void) { const char *s = "Rosetta code"; unsigned char *d = SHA256(s, strlen(s), 0); int i; for (i ...

2019-09-13 15:39:23 9703

原创 android studio报错Error: Gradle project sync failed. Please fix your project and try again.

从报错信息看得出时Gradle的问题,不过具体的问题需要具体分析。报错信息如上图所示。尝试Rebuild工程(Build-> Rebuild Project)出现错误信息,如下图找到问题原因,是当前Gradle的版本太低,所以需要更新至最低要求的gradle版本以上。修改\gradle\wrapper\gradle-wrapper.properties里的版本至所需版本,再次re...

2019-09-12 13:56:30 37071

原创 K-d tree【代码实现】

C#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#include <time.h> #define MAX_DIM 3struct kd_node_t{ double x[MAX_DIM]; struct k...

2019-09-12 08:34:12 1696 1

原创 毕达哥拉斯树(Pythagoras tree)【代码实现】

C#include<graphics.h>#include<stdlib.h>#include<stdio.h>#include<time.h> typedef struct{ double x,y;}point; void pythagorasTree(point a,point b,int times){ point c...

2019-09-12 08:30:06 4217

原创 MD5算法【代码实现】

C#include <stdio.h>#include <stdlib.h>#include <string.h>#include <openssl/md5.h> const char *string = "The quick brown fox jumped over the lazy dog's back"; int main()...

2019-09-11 11:10:49 10487

原创 分形树(Fractal tree)【代码实现】

C#include <SDL/SDL.h>#ifdef WITH_CAIRO#include <cairo.h>#else#include <SDL/sge.h>#endif#include <cairo.h>#include <stdlib.h>#include <time.h>#include <...

2019-09-11 09:33:00 7160

原创 Flutter中的延时方法

使用Timer示例代码:class AnimatedFlutterLogo extends StatefulWidget { @override State<StatefulWidget> createState() => new _AnimatedFlutterLogoState();}class _AnimatedFlutterLogoState ext...

2019-09-10 11:59:05 20521 3

原创 Flutter报错The argument type 'Future< String>' can't be assigned to the parameter type 'String'.

返回值的类型错误,解决办法主要有两种,第一种使用async和await,第二种时直接使用futures,第一种示例Future<Void> printDailyNewsDigest() async { String news = await gatherNewsReports(); print(news);}第二种只需要指定回调,在回调中进行处理void print...

2019-09-08 15:35:24 36769

原创 多语言实现电子邮件发送功能

C#include <curl/curl.h>#include <string.h>#include <stdio.h> #define from "<sender@duniya.com>"#define to "<addressee@gmail.com>"#define cc "<info@...

2019-09-02 16:32:03 7218

原创 哲学家用餐问题(Dining philosophers)【代码实现】

C#include <pthread.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <stdarg.h> #define N 5const char *names[N] = { "Aristotle", "Kant", "Spinoza...

2019-09-02 15:21:23 7077

原创 Base64 解码【代码实现】

C++#include <algorithm>#include <iostream>#include <string>#include <vector> typedef unsigned char ubyte;const auto BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq...

2019-08-06 16:16:38 3532

原创 Base64 编码【代码实现】

C#include <stdio.h>#include <stdlib.h>#include <resolv.h>#include <fcntl.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <...

2019-08-06 16:16:19 8790

原创 平衡二叉树【代码实现】

C{ struct node *n = calloc(1, sizeof *n); *n = (struct node) { value, 1, {nnil, nnil} }; return n;} int max(int a, int b) { return a > b ? a : b; }inline void set_height(struct node *n) {...

2019-08-03 18:48:59 5822

原创 查找算法——二分查找【代码实现】

伪代码递归 // initially called with low = 0, high = N-1 BinarySearch(A[0..N-1], value, low, high) { // invariants: value > A[i] for all i < low value < A[i] for al...

2019-07-31 12:29:52 8039

原创 布朗树(Brownian tree)【代码实现】

C#include <string.h>#include <stdlib.h>#include <time.h>#include <math.h>#include <FreeImage.h> #define NUM_PARTICLES 1000#define SIZE 800 void draw_...

2019-07-26 18:49:59 3394

原创 报错Duplicate classes in commons-collections and commons-beanutils

错误信息简述:引入依赖’net.sf.json-lib:json-lib:2.4:jdk15后报错。org.apache.commons.collections.ArrayStackorg.apache.commons.collections.Bufferorg.apache.commons.collections.BufferUnderflowExceptionorg.apache.c...

2019-07-24 01:40:19 7775 3

原创 排序算法——希尔排序

希尔排序是直接插入排序改进后更高效的一个版本,也称为缩小增量排序。希尔排序是把记录按下标的一定增量分组,对每组使用直接插入排序算法排序;随着增量逐渐减少,每组包含的关键词越来越多,当增量减至1时,整个文件恰被分成一组,算法便终止。希尔排序是基于插入排序的以下两点性质而提出改进方法的:插入排序在对几乎已经排好序的数据操作时,效率高,即可以达到线性排序的效率但插入排序一般来说是低效的,因为插...

2019-07-23 16:01:09 2187

原创 排序算法——堆排序

在介绍堆排序之前我们首先应该弄清楚堆排序可以解决什么问题,答案是显而易见的:排序。说得通俗点儿就是对一组无序的数字进行调整,使其按照从大到小或者从小大到的顺序有序排列。既然知道了堆排序的作用了,那么有的同学就会有疑问了,为什么“排序”前面加了“堆”呢?究竟什么是堆呢?这一节我们就详细了解什么是堆?如何利用堆进行排序?定义堆排序定义堆排序(Heapsort)是指利用堆这种数据结构所设计的一种...

2019-07-22 14:48:18 10757

原创 N皇后问题【代码实现】

C#include <stdio.h>#include <stdlib.h> int count = 0;void solve(int n, int col, int *hist){ if (col == n) { printf("\nNo. %d\n-----\n", ++count); for (int i = 0; i < n; i++, p...

2019-07-19 20:26:20 6432

原创 0-1背包【代码实现】

C#include <stdio.h>#include <stdlib.h> typedef struct { char *name; int weight; int value;} item_t; item_t items[] = { {"map", 9, 150}, {"...

2019-07-18 19:58:38 3828

原创 排序算法——希尔排序(Shell sort)【代码实现】

ActionScriptfunction shellSort(data:Array):Array{ var inc:uint = data.length/2; while(inc > 0) { for(var i:uint = inc; i< data.length; i++) { var tmp:Object = data[i]; for(var j:u...

2019-07-18 19:41:19 3361

原创 排序算法——睡眠排序(Sleep sort)【代码实现】

Bashfunction sleep_and_echo { sleep "$1" echo "$1"} for val in "$@"; do sleep_and_echo "$val" &done waitC#include <stdlib.h>#include <unistd.h>#include <sys/types....

2019-07-18 19:40:55 4919 1

原创 排序算法——基数排序(Radix sort)【代码实现】

C#include <stdio.h>#include <limits.h>#include <stdlib.h>#include <time.h> // Get size of statically allocated array#define ARR_LEN(ARR) (sizeof ARR / sizeof *ARR)// Ge...

2019-06-21 21:04:14 3452

原创 排序算法——耐心排序(Patience sort)【代码实现】

C#include<stdlib.h>#include<stdio.h> int* patienceSort(int* arr,int size){ int decks[size][size],i,j,min,pickedRow; int *count = (int*)calloc(sizeof(int),size),*sortedArr = (int*)m...

2019-06-17 22:24:55 4185

原创 排序算法——煎饼排序(Pancake sort)【代码实现】

Cint pancake_sort(int *list, unsigned int length){ //If it's less than 2 long, just return it as sorting isn't really needed... if(length<2) return 0; int i,a,max_num_pos,mo...

2019-06-16 22:23:31 3134

原创 排序算法——全排序(Permutation sort)【代码实现】

ActionScript//recursively builds the permutations of permutable, appended to front, and returns the first sorted permutation it encountersfunction permutations(front:Array, permutable:Array):Array {...

2019-06-16 15:45:47 8887

原创 排序算法——堆排序【代码实现】

伪代码function heapSort(a, count) is input: an unordered array a of length count (first place a in max-heap order) heapify(a, count) end := count - 1 while end > 0 do (swap t...

2019-06-15 20:15:55 2403

原创 排序算法——计数排序【代码实现】

伪代码function countingSort(array, min, max): count: array of (max - min + 1) elements initialize count with 0 for each number in array do count[number - min] := count[number - min] ...

2019-06-15 13:46:05 6881

原创 排序算法——侏儒排序(Gnome sort)【代码实现】

伪代码function gnomeSort(a[0..size-1]) i := 1 j := 2 while i < size do if a[i-1] <= a[i] then // for descending sort, use >= for comparison i := j ...

2019-06-14 11:06:30 2368

原创 排序算法——梳排序(Comb sort)【代码实现】

伪代码function combsort(array input) gap := input.size //initialize gap size loop until gap = 1 and swaps = 0 //update the gap value for a next comb. Below is an example gap := i...

2019-06-13 21:45:35 3470

原创 排序算法——鸡尾酒排序(Cocktail sort)【代码实现】

伪代码function cocktailSort( A : list of sortable items ) do swapped := false for each i in 0 to length( A ) - 2 do if A[ i ] > A[ i+1 ] then // test whether the two ...

2019-06-11 16:06:36 3826

原创 排序算法——圆形排序(Circle Sort)【代码实现】

伪代码function circlesort (index lo, index hi, swaps) { if lo == hi return (swaps) high := hi low := lo mid := int((hi-lo)/2) while lo < hi { if (value at lo) > (value at hi)...

2019-06-11 10:27:25 8718

原创 排序算法——猴子排序(Bogosort)【代码实现】

伪代码while not InOrder(list) do Shuffle(list)done

2019-06-10 11:24:02 8415

原创 flutter项目报错Error retrieving device properties for ro.product.cpu.abi

时间:2019.06.10基本信息:Flutter 1.5.4 • channel stable • https://github.com/flutter/flutter.gitFramework • revision b593f5167b (7 weeks ago) • 2019-04-22 07:51:33 -0700Engine • revision ca31a7c57bTools...

2019-06-10 11:23:26 6229 2

原创 排序算法——选择排序【代码实现】

ActionScriptfunction selectionSort(input: Array):Array { //find the i'th element for (var i:uint = 0; i < input.length; i++) { //set minIndex to an arbitrary value var minIndex:uint=i; //f...

2019-06-09 11:23:32 10966

原创 排序算法——珠排序(Bead sort)【代码实现】

C#include <stdio.h>#include <stdlib.h> void bead_sort(int *a, int len){ int i, j, max, sum; unsigned char *beads;# define BEAD(i, j) beads[i * max + j] for (i = 1, max = a[0]; i...

2019-06-09 10:46:54 6369 1

原创 排序算法——快速排序【代码实现】

伪代码function quicksort(array) less, equal, greater := three empty arrays if length(array) > 1 pivot := select any element of array for each x in array if x &lt...

2019-06-09 10:25:37 8783

原创 排序算法——插入排序【代码实现】

伪代码function insertionSort(array A) for i from 1 to length[A]-1 do value := A[i] j := i-1 while j >= 0 and A[j] > value do A[j+1] := A[j] j :...

2019-06-08 19:54:01 6247

Ganache-2.3.0-win-setup.exe

以太坊可视化GUI——Ganache-2.3.0 Win版本,该版本可创建workplace。快速启动个人以太坊区块链,您可以使用它来运行测试,执行命令和检查状态,同时控制链的运行方式。

2020-04-17

gradle-6.2.2-all.zip

Gradle是一个基于Apache Ant和Apache Maven概念的项目自动化构建开源工具。 此资源为gradle-6.2.2压缩包,用于下载共享,release官方下载地址http://services.gradle.org/distributions/

2020-03-09

gradle-6.2.1-all.zip

Gradle是一个基于Apache Ant和Apache Maven概念的项目自动化构建开源工具。 此资源为gradle-6.2.1压缩包,用于下载共享,release官方下载地址http://services.gradle.org/distributions/

2020-03-09

go-ipfs_v0.4.22_windows-amd64.zip

go-ipfs_v0.4.22的Windows版本,方便下载。官方下载地址:https://dist.ipfs.io/#go-ipfs

2019-11-09

gradle-5.6.4-all.zip

Gradle是一个基于Apache Ant和Apache Maven概念的项目自动化构建开源工具。 此资源为gradle-5.6.4压缩包,用于下载共享,release官方下载地址http://services.gradle.org/distributions/

2019-11-02

gradle-5.6.2-all.zip

Gradle是一个基于Apache Ant和Apache Maven概念的项目自动化构建开源工具。 此资源为gradle-5.6.2压缩包,用于下载共享,release官方下载地址http://services.gradle.org/distributions/

2019-09-12

gradle-5.6.1-all.zip

Gradle是一个基于Apache Ant和Apache Maven概念的项目自动化构建开源工具。 此资源为gradle-5.6.1压缩包,用于下载共享,release官方下载地址http://services.gradle.org/distributions/

2019-09-12

apache-maven-3.6.1-src.zip

Maven项目对象模型(POM),可以通过一小段描述信息来管理项目的构建、报告和文档的软件项目管理工具。 Maven 除了以程序构建能力为特色之外,还提供高级项目管理工具。

2019-08-08

gradle-5.5.1-all.zip

Gradle是一个基于Apache Ant和Apache Maven概念的项目自动化构建开源工具。 此资源为gradle-5.5.1压缩包,用于下载共享,release官方下载地址http://services.gradle.org/distributions/

2019-07-14

Ganache-2.0.1 mac安装包

以太坊可视化GUI——Ganache-2.0.1 mac版本,该版本可创建workplace。快速启动个人以太坊区块链,您可以使用它来运行测试,执行命令和检查状态,同时控制链的运行方式。

2019-06-08

Winnowing数字指纹算法的Java实现

Winnowing文件指纹算法的java实现,论文原文链接https://theory.stanford.edu/~aiken/publications/papers/sigmod03.pdf

2019-06-07

Ganache-2.0.1-setup.exe

以太坊可视化GUI——Ganache-2.0.1 Windows版本,该版本可创建workplace。快速启动个人以太坊区块链,您可以使用它来运行测试,执行命令和检查状态,同时控制链的运行方式。

2019-06-07

gradle-5.5-rc-1-all.zip

Gradle是一个基于Apache Ant和Apache Maven概念的项目自动化构建开源工具。 此资源为gradle-5.5-rc压缩包,用于下载共享,release官方下载地址http://services.gradle.org/distributions/

2019-06-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除