![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
a_Mao2016
这个作者很懒,什么都没留下…
展开
-
各种常见排序算法的C++实现
冒泡排序冒泡排序是大多数人学到的第一个排序,其基本思想把最小的元素像冒泡一样浮到顶端,时间复杂度为O(n^2)//BubleSort//Each iteration, the least element buble up.void BubleSort(int *P, int n){ for(int i=0;i<n;i++){ for(int j=n-1...原创 2017-10-27 11:45:16 · 395 阅读 · 0 评论 -
dijkastra算法实践poj2387
poj2387题目链接Dijkstra算法入门题目描述:找出图G中从点1到N得最短路径InputLine 1: Two integers: T and N Lines 2..T+1: Each line describes a trail as three space-separated integers. The first two integers are the landmarks bet原创 2017-11-04 21:25:19 · 339 阅读 · 0 评论