Skip to content

Instantly share code, notes, and snippets.

View Sukhrobjon's full-sized avatar

Sukhrobjon Golibboev Sukhrobjon

View GitHub Profile
@Sukhrobjon
Sukhrobjon / markov_chain_with_pseudocode.md
Last active April 8, 2019 20:03
Pseudocode for SPD-1.4

Read the existing text file Convert the text file into dictionary Start with blank sentence Choose the starting word from the dictionary randomly Put that word in the sentence at the beginning Set the first counter to zero Specify the number of words to create a sentence Repeat the iteration until counter is less the number of words in a sentence specified create an empty list set the second counter to zero