Home > Mobile >  How can I create random tree or graph dataset for competitive problems using C ?
How can I create random tree or graph dataset for competitive problems using C ?

Time:01-16

I have to create some large tree and graph dataset. Preferably with C . Any help will be appreciated! Thank you.

I have tried to find a way to generate random graphs, but couldn't find any easy solution.

CodePudding user response:

Good day to you! You can learn and use Random Tree Generator Using Prüfer Sequence. If you just want to generate trees, you can use the code given in GeekForGeeks. But if you seek to learn more about this topic, check forthright48's blog.

  • Related