由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - HW Question: Bipartite Graphs
相关主题
binary graph是什么?good GUI for graph layout and flow?
这个题目能否半小时完成coding?面题:copy directed graph
How to detect cycle with minimum spaceA Problem on MST
Source code for graph algorithms?问问Boost library, 尤其是Boost Graph Library (BGL)
请问分析code的工具有什么好的软件可以创建call graph?
[合集] 问个算法问题An interview question
大侠们说说C(C++)或Fortran比较Matlab到底优点在哪儿?[合集] huge map怎么算最短路径?
define an adjacent matrix for a graph算法问题。
相关话题的讨论汇总
话题: bipartite话题: n1话题: n2话题: question话题: hw
进入Programming版参与讨论
1 (共1页)
s***i
发帖数: 49
1
How can I give algorithm that checks whether a graph is bipartite (a graph
whose nodes can be divided into two sets N1 and N2, and every edge is
between a member of N1 and N2)?
And since non-bipartite means there must be a cycle of odd length, how can I
check bipartite, and if false, prints a cycle of odd length?
Thanks in advance.
s******e
发帖数: 285
2
DFS

I

【在 s***i 的大作中提到】
: How can I give algorithm that checks whether a graph is bipartite (a graph
: whose nodes can be divided into two sets N1 and N2, and every edge is
: between a member of N1 and N2)?
: And since non-bipartite means there must be a cycle of odd length, how can I
: check bipartite, and if false, prints a cycle of odd length?
: Thanks in advance.

1 (共1页)
进入Programming版参与讨论
相关主题
算法问题。请问分析code的工具
data structure for set of path in a graph[合集] 问个算法问题
C++如何实现graph?大侠们说说C(C++)或Fortran比较Matlab到底优点在哪儿?
counting signed triad in a large-scale graph?define an adjacent matrix for a graph
binary graph是什么?good GUI for graph layout and flow?
这个题目能否半小时完成coding?面题:copy directed graph
How to detect cycle with minimum spaceA Problem on MST
Source code for graph algorithms?问问Boost library, 尤其是Boost Graph Library (BGL)
相关话题的讨论汇总
话题: bipartite话题: n1话题: n2话题: question话题: hw