
算法与数据结构
masterjames
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
完全背包问题(贪婪法)
// Knap.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #define N 100 #define MAX_WEIGHT 100 typedef struct { int weight;转载 2013-10-30 14:13:35 · 1582 阅读 · 0 评论 -
矩阵乘法(动态规划)
// DynamicProgram-MatrixParenthesized.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #include using namespace std; #define random(x) (rand()%x) void MatrixChainOrder(int* plist,转载 2013-11-10 08:28:42 · 1065 阅读 · 0 评论 -
算法设计与分析--01背包问题(动态规划法解决)
问题分析:令V(i,j)表示在前i(1 (1) V(i,0)=V(0,j)=0 (2) V(i,j)=V(i-1,j) ji V(i,j)=max{V(i-1,j) ,V(i-1,j-wi)+vi) } j>wi (1)式表明:如果第i个物品的重量大于背包的容量,则装人前i个物品得到的最大价值和装入前i-1个物品得到的最大价是相同的,即物品i不能装入背包;第(转载 2013-10-30 14:09:49 · 1377 阅读 · 0 评论 -
用tensorflow实现VGG网络,训练mnist数据集
本文主要用TENSORFLOW通过使用VGG网络模型训练mnist数据集合。原创 2017-11-13 21:04:39 · 11574 阅读 · 13 评论