Skip to content

Homework1  #5

Description

@amraabazifeta

Hi Professor,

For the excersise 3.2 , for the example which is abcabcda after I found the probabilities and put them in dictionary  dic_prob= {bcd : 0.5 , bca:0.5}  ,
the text can be for example bcdad  right?

And last thing when I use loop to add either 'a'with probability 0.5 or 'c' with probability 0.5 , how can I attach this adding character based on the probability , I mean is there something out of the box , or should I invent a new algorithm my self?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions