| |

VerySource

 Forgot password?
 Register
Search
View: 2996|Reply: 19

Ask a graph theory algorithm

[Copy link]

1

Threads

9

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-3-4 19:00:01
| Show all posts |Read mode
In an undirected graph, given two points u and v, and there are no edges between u and v, find the number of simple paths that do not intersect between these two points?
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-5-21 00:15:01
| Show all posts
Network streaming
Reply

Use magic Report

0

Threads

10

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-5-21 12:15:01
| Show all posts
I think it ’s easy to use breadth search
Reply

Use magic Report

1

Threads

9

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-5-21 16:30:01
| Show all posts
菜鸟级高手: I have also considered breadth search, but there is no better way to solve the two constraints of "disjoint" and optimization? Can you say something specific?
Reply

Use magic Report

0

Threads

10

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-5-24 15:30:01
| Show all posts
Each time an element is traversed, a mark is added. It is no longer accessed before the mark is cleared, which can avoid "intersection"
 What do you mean by optimization?
Reply

Use magic Report

1

Threads

9

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-5-27 19:30:01
| Show all posts
Optimization refers to that the number of the last disjoint paths is the largest.

If you follow your method, the complexity of the algorithm is very high
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-11 17:15:01
| Show all posts
Maximum flow
Reply

Use magic Report

0

Threads

7

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Invalid IP Address

Post time: 2020-8-13 11:00:01
| Show all posts
If this problem is solved well, then
The google topic is simple

May I ask whether there is a path (it can be repeated) that passes through K-1 nodes between u and v.
Reply

Use magic Report

0

Threads

7

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Invalid IP Address

Post time: 2020-8-13 11:15:01
| Show all posts
Friends who think using network streaming, what do you think?
Reply

Use magic Report

1

Threads

9

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-8-14 14:00:01
| Show all posts
bigc: Is there a path through K-1 nodes between u and v: Google's questions can be calculated by matrix operations, and by the method of passing closure
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list