# Re: Markov Chains (#74)

**URL:** <https://www.ruby-forum.com/t/re-markov-chains-74/57157>\
**Category:** Ruby\
**Created:** [April 7, 2006, 4:24pm UTC](https://www.ruby-forum.com/t/re-markov-chains-74/57157 "2006-04-07T16:24:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KroegerS\_Simon\_Sext](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Post date:** [April 7, 2006, 4:24pm UTC](https://www.ruby-forum.com/t/re-markov-chains-74/57157/1 "2006-04-07T16:24:22Z")

</div>

“moby dick - but it was that inscrutable ahab said to have two  
harpoons and lances, and feel thus intolerably old? close!  
stand by for it. it is a witchery of social czarship which there  
was a wilderness of ropes and hawsers chained down to ringbolts”

_rofl_ this is realy a good one James!

Do you have any preferernces for the command line parameters?

cheers

Simon

---

<div class="post-metadata">

**Author:** ![KroegerS\_Simon\_Sext](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Post date:** [April 7, 2006, 4:55pm UTC](https://www.ruby-forum.com/t/re-markov-chains-74/57157/2 "2006-04-07T16:55:05Z")

</div>

On Apr 7, 2006, at 9:21 AM, Kroeger, Simon (ext) wrote:

> “moby dick - but it was that inscrutable ahab said to have two  
> harpoons and lances, and feel thus intolerably old? close!  
> stand by for it. it is a witchery of social czarship which there  
> was a wilderness of ropes and hawsers chained down to ringbolts”
> 
> _rofl_ this is realy a good one James!

I should actually mention this idea was not mine. Eric H. gave it  
to me. I just wrote it up. Thanks Eric!

> Do you have any preferernces for the command line parameters?

Na. Just document what you use please, so I can figure out how to  
run it. 🙂

James Edward G. II

---

<div class="post-metadata">

**Author:** ![KroegerS\_Simon\_Sext](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Post date:** [April 7, 2006, 6:48pm UTC](https://www.ruby-forum.com/t/re-markov-chains-74/57157/3 "2006-04-07T18:48:23Z")

</div>

> I should actually mention this idea was not mine. Eric H. gave it  
> to me. I just wrote it up. Thanks Eric!

🙂 So how about running the solutions over the solutions, and seeing if  
the result will execute? 🙂

---

<div class="post-metadata">

**Author:** ![KroegerS\_Simon\_Sext](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Post date:** [April 7, 2006, 6:54pm UTC](https://www.ruby-forum.com/t/re-markov-chains-74/57157/4 "2006-04-07T18:54:28Z")

</div>

On Apr 7, 2006, at 11:45 AM, removed\_email\_address@domain.invalid wrote:

> > I should actually mention this idea was not mine. Eric H. gave it  
> > to me. I just wrote it up. Thanks Eric!
> 
> 🙂 So how about running the solutions over the solutions, and  
> seeing if  
> the result will execute? 🙂

You are welcome to try it and find out… 😉

James Edward G. II

---

<div class="post-metadata">

**Author:** ![KroegerS\_Simon\_Sext](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Post date:** [April 7, 2006, 10:31pm UTC](https://www.ruby-forum.com/t/re-markov-chains-74/57157/5 "2006-04-07T22:31:31Z")

</div>

On Apr 7, 2006, at 7:52 AM, James Edward G. II wrote:

> I should actually mention this idea was not mine. Eric H. gave  
> it to me. I just wrote it up. Thanks Eric!

The real trick is being space efficient. Markov text generation is a  
very simple algorithm, but being more english-like requires a larger  
corpus of input text.

The best-reading solutions will use the largest input text corpus  
stored the smallest space.

> > Do you have any preferernces for the command line parameters?
> 
> Na. Just document what you use please, so I can figure out how to  
> run it. 🙂

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)

---

<div class="post-metadata">

**Author:** ![KroegerS\_Simon\_Sext](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/57b2e6/32.png) [@KroegerS\_Simon\_Sext](https://www.ruby-forum.com/u/KroegerS_Simon_Sext)\
**Post date:** [April 7, 2006, 10:40pm UTC](https://www.ruby-forum.com/t/re-markov-chains-74/57157/6 "2006-04-07T22:40:36Z")

</div>

Eric H. schrieb:

> > I should actually mention this idea was not mine. Eric H. gave it  
> > to me. I just wrote it up. Thanks Eric!
> 
> The real trick is being space efficient. Markov text generation is a  
> very simple algorithm, but being more english-like requires a larger  
> corpus of input text.
> 
> The best-reading solutions will use the largest input text corpus stored  
> the smallest space.

If the text corpus is very small i tend to get complete sentences from  
the original - so very english-like.  
But in the more general case i guess you are right.

cheers

Simon
