Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate Markov Chain in C#

I want to create this Markov Chain in C#. I need to know if there is any other structure other than adjacency list which can work better in this situation. Also how can I use the existing .Net collection type to implement this.

enter image description here

like image 609
Nabeel Avatar asked May 06 '10 14:05

Nabeel


People also ask

What is a Markov chain text generator?

Generating Text in Shakespearean English with Markov Chains Markovify is a python library that brands itself as “A simple, extensible Markov chain generator. Uses include generating random semi-plausible sentences based on an existing text.”. And I must admit, it is incredibly easy and fast to use.


1 Answers

QuickGraph is really good general purpose graph library. It has some implementations for walking Markov Chains. I recommend checking out the source code.

like image 78
Eric Hauser Avatar answered Oct 04 '22 18:10

Eric Hauser