码迷,mamicode.com
首页 >  
搜索关键字:algorithm    ( 11758个结果)
P2330 繁忙的城市(krusal最小生成树)
直接干 1 #include<iostream> 2 #include<algorithm> 3 #include<climits> 4 using namespace std; 5 struct edge 6 { 7 int from,to,weight; 8 }a[100010];//存边 9 ...
分类:其他好文   时间:2020-01-26 12:58:41    阅读次数:56
P1546 最短网络(kruscal+并查集)
从邻接矩阵中提取出边,然后跑一边kruscal 1 #include<iostream> 2 #include<algorithm> 3 using namespace std; 4 struct node 5 { 6 int x,y,w; 7 }; 8 int cnt=0;//记录边数 9 nod ...
分类:其他好文   时间:2020-01-26 11:44:12    阅读次数:105
UVA10085-不知错在何处
1 #include<cstdio> 2 #include<cstring> 3 #include<iostream> 4 #include<algorithm> 5 #include<map> 6 #include<queue> 7 #include<string> 8 using namespa ...
分类:其他好文   时间:2020-01-26 11:40:42    阅读次数:72
paper reading(4) - LIME: Low-light Image Enhancement via Illumination Map Estimation
LIME: Low light Image Enhancement via Illumination Map Estimation [toc] 1. approach Retinex theory In this paper, A method enhancing low light image i ...
分类:其他好文   时间:2020-01-25 20:47:44    阅读次数:157
迷宫问题
之前写的东西因为断网没了(心态爆炸。。。) 总之用宽搜解决迷宫问题就是用队列先进先出的特点,一旦找到了结果一定是最短的(结合树状图自己理解) 代码如下 #include <iostream> #include <queue> #include <algorithm> #include <cstrin ...
分类:其他好文   时间:2020-01-25 15:37:12    阅读次数:78
STL学习之mismatch();
std::mismatch 定义于头文件 <algorithm> 一、定义:(共八种定义方式,一开始先了解两种即可) 1. template< class InputIt1, class InputIt2 > constexpr std::pair<InputIt1,InputIt2> mismat ...
分类:其他好文   时间:2020-01-24 00:35:39    阅读次数:102
JPEG compression
The JPEG compression algorithm split the image into 8x8 blocksMy thinking is that if we split an image into 8x8 blocks, feed each block to libjpeg and ...
分类:其他好文   时间:2020-01-23 15:29:21    阅读次数:99
PAT Advanced 1101 Quick Sort (25分)
There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then th ...
分类:其他好文   时间:2020-01-23 13:55:58    阅读次数:81
1028 List Sorting (25point(s)) Easy only once
基本思想: 没什么难的,水题,重点在于审题; 关键点: 无; #include<iostream> #include<stdlib.h> #include<stdio.h> #include<vector> #include<string> #include<math.h> #include<alg ...
分类:其他好文   时间:2020-01-23 12:39:56    阅读次数:82
题解 Codeforces Round #615 (Div. 3) (CF1294)
A:判断一下和是不是3的倍数,由于只加不减,所以还要判断有没有大于和的1/3。 1 #include<stdio.h> 2 #include<string.h> 3 #include<algorithm> 4 #define it register int 5 #define ct const in ...
分类:其他好文   时间:2020-01-23 09:39:49    阅读次数:70
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!