topological-sort Questions

1

Solved

For undirected graphs , if we need to find a cycle , we use depth-first search as described in this older question,which is a well known method and also optimal . But for directed graph, this othe...
Penninite asked 27/5, 2013 at 19:51

1

Solved

Does anyone know of a random algorithm for generating a topological sort of a DAG, where each invocation of the algorithm has a non-zero probability of generating every valid topological sort of th...

2

Solved

I am resolving dependency between some objects in a table. I have to do something with objects in order their dependency. For example, the first object doesn't depend on any object. The second and ...
Polyhedron asked 24/3, 2011 at 10:28

2

Solved

Some programming languages (like haskell) allow cyclic dependencies between modules. Since the compiler needs to know all definitions of all modules imported while compiling one module, it usually ...
Aristaeus asked 15/5, 2012 at 19:54

1

Solved

Happy easters, everyone. I am currently learning topological sort and having a question about what topological sort tries to really sort. The Algorithm Design Manual describes topological sort i...

4

Solved

What is the difference between sorting and topological-sorting? Are they same or different thing?
Learning asked 2/2, 2012 at 10:10

4

Solved

I am looking for real world applications where topological sorting is performed on large graph sizes. Some fields where I image you could find such instances would be bioinformatics, dependency re...

1

I'm trying to compute a partial "topological sort" of a dependency graph, which is actually a DAG (Directed Acyclic Graph) to be precise; so as to execute tasks without conflicting dependencies in ...
Incontrovertible asked 15/2, 2011 at 14:38

4

I'm trying to write topological sorting in ocaml, but I'm a beginner (in OCaml & graphs algorithms) and I can't do this by myself. It's easier for me to think about topological sorting in, for...
Memorial asked 11/1, 2011 at 3:27

2

I wrote a source-removal algorithm to sort some dependencies between tables in our database, and it turns out we have a cycle. For simplicity, let's say we have tables A, B, C, and D. The edges are...
Keffiyeh asked 2/4, 2010 at 17:58

4

Solved

My girlfriend got this question in an interview, and I liked it so much I thought I'd share it... Write an algorithm that receives a dictionary (Array of words). The array is sorted lexicogra...
Talithatalk asked 26/6, 2010 at 10:41

3

Solved

Probably best illustrated with a small example. Given the relations A < B < C A < P < Q Correct outputs would be ABCPQ or APQBC or APBCQ ... etc. In other words, any ordering is ...

© 2022 - 2024 — McMap. All rights reserved.