拓扑排序
whiskey_wei
这个作者很懒,什么都没留下…
展开
-
poj1294拓扑排序
Sorting It All Out Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 24933 Accepted: 8662 Description An ascending sorted sequence of distinct values is one in w转载 2017-08-10 16:19:45 · 395 阅读 · 0 评论 -
poj1270拓扑排序
给出一组字母和他们的偏序关系,输出所有可能的排序结果; #include #include #include #include using namespace std; bool vis[30]; string s1,s2; int cnt[30],len1,len2; void dfs(int n,string s) { if(n==(len1+1)/2)原创 2017-08-10 16:24:13 · 242 阅读 · 0 评论 -
hdu4109拓扑Instrction Arrangement
Problem Description Ali has taken the Computer Organization and Architecture course this term. He learned that there may be dependence between instructions, like WAR (write after read), WAW, RAW. If原创 2017-09-06 20:43:32 · 241 阅读 · 0 评论