All Questions
4 questions
1
vote
1
answer
123
views
Path Compression Algorithm in C#
Let's consider a simple graph represented by the following edges, where true indicates a visible node and false indicates a non-visible node:
...
5
votes
0
answers
187
views
Assembling and traversing a graph, given a list of items and parent pointers
I've written a function which takes input such as this:
...
5
votes
2
answers
13k
views
Constraint Programming: Map color problem
I've written some python code to solve the map coloring problem. In my code, I represent the problem using Territory and MapColor...
1
vote
1
answer
2k
views
Finding strongly connected components of directed graph, kosaraju
Given a graph in [[sourcevertex,targetvertex],...] format with all the directed edges of the graph I am trying to optimize the code here because it still hasn't ...