
算法
coursera斯坦福大学algorithm系列课程
闭门即深山
SLAMer
展开
-
(基于堆排序的中位数提取 C++实现) Coursera 斯坦福大学 算法课程 Programming Assignment #7
Graph Search, Shortest Paths, and Data Structures题目程序坑爹的地方题目第 1 个问题Download the following text file:Median.txtThe goal of this problem is to implement the “Median Maintenance” algorithm (covered in the Week 3 lecture on heap applications). The text原创 2020-10-26 21:21:21 · 342 阅读 · 0 评论 -
Graph Search, Shortest Paths, and Data Structures(3)- Heap and Balanced Binary Tree
HeapHeap Property可以被当作tree,也可以被看作array。 其中array的父子关系如图Media Maintanence通过维护两个堆,上堆能够提取最小值,下堆能够提取最大值。只要维持每个堆都只具有一半的元素个数即可。当新加入元素导致上下堆不平衡时,最大或最小值会被交换到另一个堆里去,因此在插入新元素且调整完堆性质后,只需要对min max进行操作就可以实现中间元素的查找了。日期 2020年10月11日...原创 2020-10-12 21:56:01 · 261 阅读 · 0 评论 -
(基于堆排序的Dijkstra算法 C++实现) Coursera 斯坦福大学 算法课程 Programming Assignment #6
Graph Search, Shortest Paths, and Data Structures题目程序坑爹的地方题目第 1 个问题In this programming problem you’ll code up Dijkstra’s shortest-path algorithm.Download the following text file:dijkstraData.txtThe file contains an adjacency list representation of原创 2020-10-06 10:49:18 · 424 阅读 · 0 评论 -
Graph Search, Shortest Paths, and Data Structures(2)- Dijkstra‘s Shortest-Path Algorithm
Dijkstra's Shortest-Path Algorithm原创 2020-09-15 15:20:29 · 226 阅读 · 0 评论 -
(SCC基于深度优先搜索DFS的强连通分量检索 C++实现) Coursera 斯坦福大学 算法课程 Programming Assignment #5
Divide and Conquer, Sorting and Searching, and Randomized Algorithms题目程序坑爹的地方题目第 1 个问题Download the following text file:SCC.txtThe file contains the edges of a directed graph. Vertices are labeled as positive integers from 1 to 875714. Every row ind原创 2020-09-14 21:43:27 · 453 阅读 · 0 评论 -
Graph Search, Shortest Paths, and Data Structures(1)- Graph Search
Graph SearchGraph SearchGraph Search原创 2020-08-31 11:08:46 · 362 阅读 · 0 评论 -
(MinCut最小切的 C++实现) Coursera 斯坦福大学 算法课程 Programming Assignment #4
Divide and Conquer, Sorting and Searching, and Randomized Algorithms题目程序坑爹的地方题目第 1 个问题Download the following text file:kargerMinCut.txtThe file contains the adjacency list representation of a simple undirected graph. There are 200 vertices labeled原创 2020-08-21 16:42:13 · 359 阅读 · 0 评论 -
(快速排序Quick Sort的 C++实现) Coursera 斯坦福大学 算法课程 Programming Assignment #3
Divide and Conquer, Sorting and Searching, and Randomized Algorithms题目程序坑爹的地方题目第 1 个问题GENERAL DIRECTIONS:Download the following text file:QuickSort.txtThe file contains all of the integers between 1 and 10,000 (inclusive, with no repeats) in unsor原创 2020-08-20 11:11:18 · 487 阅读 · 2 评论 -
(逆序计算的递归 C++实现) Coursera 斯坦福大学 算法课程 Programming Assignment #2
Divide and Conquer, Sorting and Searching, and Randomized Algorithms题目程序坑爹的地方题目第 1 个问题Download the following text file:IntegerArray.txtThis file contains all of the 100,000 integers between 1 and 100,000 (inclusive) in some order, with no integer r原创 2020-08-17 12:42:24 · 325 阅读 · 0 评论 -
(Karatsuba算法的 C++实现) Coursera 斯坦福大学 算法课程 Programming Assignment #1
Divide and Conquer, Sorting and Searching, and Randomized Algorithms题目程序坑爹的地方题目In this programming assignment you will implement one or more of the integer multiplication algorithms described in lecture.To get the most out of this assignment, your progr原创 2020-08-04 11:32:59 · 2047 阅读 · 0 评论