摘要: Graph Coloring POJ - 1419 You are to write a program that tries to find an optimal coloring for a given graph. Colors are applied to the nodes of the 阅读全文
posted @ 2018-10-15 23:01 *starry* 阅读(504) 评论(0) 推荐(0) 编辑
摘要: Swap HDU - 2819 Given an N*N matrix with each entry equal to 0 or 1. You can swap any two rows or any two columns. Can you find a way to make all the 阅读全文
posted @ 2018-10-15 22:50 *starry* 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 二分图的最小顶点覆盖 定义:假如选了一个点就相当于覆盖了以它为端点的所有边。最小顶点覆盖就是选择最少的点来覆盖所有的边。 方法:最小顶点覆盖等于二分图的最大匹配。 我们用二分图来构造最小顶点覆盖。 对于上面这个二分图,顶点分为左右两个集合,X集合包含1,2,3,4,Y集合包含5,6,7,8,9.假如 阅读全文
posted @ 2018-10-15 18:19 *starry* 阅读(398) 评论(0) 推荐(0) 编辑