自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 问答 (1)
  • 收藏
  • 关注

原创 Radix Sort

Radix sort is effective when the size of elements are short. and it’s steady.#include<bits/stdc++.h> using namespace std;int L[] = {3321,1,10,9680,577,9420,7,5622,4793,2030,3138,82,2599,743,4127}; int

2016-07-31 16:46:48 360

原创 Counting Sort

As for counting sort,we need to know the range of value of the array.It can not be too large. Than we count how many times the element comes. At last, we start from 0 to max value as i, if count[i] is

2016-07-28 00:49:14 266

原创 c++ tips

重点内容 数组做形参,则退化为指针 *

2016-07-27 22:02:20 387

原创 Quick sort

#include<bits/stdc++.h> using namespace std;int L[] = {3,44,38,5,47,15,36,26,27,2,46,4,19,50,48};void QuickSort(int left,int right){ int l = left; int r = right; if(left>=right){ re

2016-07-27 15:45:47 508

原创 network干货

典型的路由有两种,动态路由和静态路由,如果两种都存在,静态路由优先,因为cost小 *

2016-07-26 21:41:06 216

原创 insertion sort

For each time, extract the next unsorted element from 1,2,…n,if current sorted element bigger than unsorted element, move sorted element to the right by 1, or insert the extracted element/* insertio

2016-07-25 22:55:21 182

原创 Sort Algorithm-->Select Sort

Each traversal find the minimal element start from 1 to n,than compare with the index of i,i+1…n-1,if smaller than swap them or next traversal"""select sort languate:python3.5 author:zhoutonglx"""#orig

2016-07-24 23:38:50 213

原创 Sort Algorithm-->Bubble Sort

Bubble sort:Everytime index start from left,compare two elements,if left element bigger then right element,than swap them, or index move to next. After a traverse, the max element of the rest will floa

2016-07-24 20:16:45 296

空空如也

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

TA关注的人

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