摘要: 即使AC,但此算法仍有不足之处,不能正确处理行最小、列最大+相等的矩阵情况。如22 23应为A[1][1]、A[2][1] 1 #include 2 #define MAX_SIZE 100+1 3 using namespace std; 4 int array[MAX_SIZE][MAX_SI... 阅读全文
posted @ 2015-02-13 21:18 swanGooseMan 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #define MAX_SIZE 100+1 3 using namespace std; 5 int array[MAX_SIZE][MAX_SIZE]; 6 int creatScrewMatrix(int n) 7 { 8 int upBound=0,do... 阅读全文
posted @ 2015-02-13 17:59 swanGooseMan 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 1 //稀疏矩阵乘法 行逻辑链接的三元组顺序表 2 // 3 4 3 // 6 4 // 1 1 3 5 // 1 2 2 6 // 1 3 3 7 // 1 4 5 8 // 2 2 -1 9 // 3 1 210 // 4 211 // 512 // 1 2 213 // 2 1 114 //... 阅读全文
posted @ 2015-02-13 12:00 swanGooseMan 阅读(253) 评论(0) 推荐(0) 编辑